function csl_name::init_formatting in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_name::init_formatting()
- 7 modules/CiteProc/CSL.inc \csl_name::init_formatting()
Overrides csl_format::init_formatting
File
- modules/
CiteProc/ CSL.inc, line 410
Class
Code
function init_formatting() {
$this->no_op = array();
$this->format = array();
$this->base = $this
->get_attributes();
$this->format['base'] = '';
$this->format['family'] = '';
$this->format['given'] = '';
$this->no_op['base'] = TRUE;
$this->no_op['family'] = TRUE;
$this->no_op['given'] = TRUE;
if (isset($this->prefix)) {
$this->no_op['base'] = FALSE;
}
if (isset($this->suffix)) {
$this->no_op['base'] = FALSE;
}
$this
->init_format($this->base);
if (!empty($this->name_parts)) {
foreach ($this->name_parts as $name => $formatting) {
$this
->init_format($formatting, $name);
}
}
}