function EndNoteXMLParser::endnote8_characterData in Bibliography Module 6.2
Same name and namespace in other branches
- 7 modules/endnote/endnote_xml_parser.inc \EndNoteXMLParser::endnote8_characterData()
- 7.2 modules/endnote/endnote_xml_parser.inc \EndNoteXMLParser::endnote8_characterData()
2 calls to EndNoteXMLParser::endnote8_characterData()
- EndNoteXMLParser::endnote8_endElement in modules/
endnote/ endnote_xml_parser.inc - EndNoteXMLParser::endnote8_startElement in modules/
endnote/ endnote_xml_parser.inc
File
- modules/
endnote/ endnote_xml_parser.inc, line 243
Class
Code
function endnote8_characterData($parser, $data) {
// global $this->node, $this->element, $this->contributors, $this->contrib_count, $this->dates, $this->urls, $this->keyword_count;
if (trim($data)) {
switch ($this->element) {
//Author information
case 'author':
switch ($this->contributors) {
case 'authors':
$this->node->biblio_contributors[1][$this->contrib_count]['name'] .= $data;
$this->node->biblio_contributors[1][$this->contrib_count]['auth_type'] = _biblio_get_auth_type(1, $this->node->biblio_type);
break;
case 'secondary-authors':
$this->node->biblio_contributors[2][$this->contrib_count]['name'] .= $data;
$this->node->biblio_contributors[2][$this->contrib_count]['auth_type'] = _biblio_get_auth_type(2, $this->node->biblio_type);
break;
case 'tertiary-authors':
$this->node->biblio_contributors[3][$this->contrib_count]['name'] .= $data;
$this->node->biblio_contributors[3][$this->contrib_count]['auth_type'] = _biblio_get_auth_type(3, $this->node->biblio_type);
break;
case 'subsidiary-authors':
$this->node->biblio_contributors[4][$this->contrib_count]['name'] .= $data;
$this->node->biblio_contributors[4][$this->contrib_count]['auth_type'] = _biblio_get_auth_type(4, $this->node->biblio_type);
break;
case 'translated-authors':
$this->node->biblio_contributors[5][$this->contrib_count]['name'] .= $data;
$this->node->biblio_contributors[5][$this->contrib_count]['auth_type'] = _biblio_get_auth_type(5, $this->node->biblio_type);
break;
}
break;
case 'keyword':
$this->node->biblio_keywords[$this->keyword_count] .= $data;
break;
case 'dates':
switch ($this->dates) {
case 'year':
$this->node->biblio_year .= $data;
break;
}
break;
case 'date':
switch ($this->dates) {
case 'pub-dates':
$this->node->biblio_date .= $data;
break;
case 'copyright-dates':
break;
}
break;
case 'urls':
case 'url':
switch ($this->urls) {
case 'web-urls':
$this->node->biblio_url .= $data;
break;
case 'pdf-urls':
case 'text-urls':
case 'image-urls':
break;
case 'related-urls':
}
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;
}
}
}
}
}