function EndNoteXMLParser::endnote7_characterData in Bibliography Module 6.2
Same name and namespace in other branches
- 7 modules/endnote/endnote_xml_parser.inc \EndNoteXMLParser::endnote7_characterData()
- 7.2 modules/endnote/endnote_xml_parser.inc \EndNoteXMLParser::endnote7_characterData()
File
- modules/
endnote/ endnote_xml_parser.inc, line 378
Class
Code
function endnote7_characterData($parser, $data) {
if (trim($data)) {
switch ($this->element) {
case 'REFERENCE_TYPE':
$this->node->biblio_type = $this
->type_map($data);
break;
case 'AUTHOR':
$this->node->biblio_contributors[1][$this->contrib_count]['name'] .= $data;
break;
case 'SECONDARY_AUTHOR':
$this->node->biblio_contributors[2][$this->contrib_count]['name'] .= $data;
break;
case 'TERTIARY_AUTHOR':
$this->node->biblio_contributors[3][$this->contrib_count]['name'] .= $data;
break;
case 'SUBSIDIARY_AUTHOR':
$this->node->biblio_contributors[4][$this->contrib_count]['name'] .= $data;
break;
case 'KEYWORD':
$this->node->biblio_keywords[$this->keyword_count] .= $data;
break;
case 'TITLE':
$this->node->title .= $data;
break;
default:
if ($field = $this
->field_map(trim($this->element))) {
$this->node->{$field} .= $data;
}
else {
if (!in_array($this->element, $this->unmapped)) {
$this->unmapped[] = $this->element;
}
}
}
}
}