public function csl_mapper::map_field in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_mapper::map_field()
- 7.2 modules/CiteProc/CSL.inc \csl_mapper::map_field()
File
- modules/
CiteProc/ CSL.inc, line 2250 - CiteProc-PHP.
Class
Code
public function map_field($field) {
if (!isset($this->field_map)) {
$this->field_map = biblio_get_map('field_map', 'csl');
}
$vars = explode(' ', $field);
foreach ($vars as $key => $value) {
$vars[$key] = !empty($this->field_map[$value]) ? $this->field_map[$value] : '';
}
return implode(' ', $vars);
}