function EndNoteXMLParser::endnote7_endElement in Bibliography Module 6.2
Same name and namespace in other branches
- 7 modules/endnote/endnote_xml_parser.inc \EndNoteXMLParser::endnote7_endElement()
- 7.2 modules/endnote/endnote_xml_parser.inc \EndNoteXMLParser::endnote7_endElement()
File
- modules/
endnote/ endnote_xml_parser.inc, line 345
Class
Code
function endnote7_endElement($parser, $name) {
switch ($name) {
case 'RECORD':
$this->node->biblio_xml_md5 = md5(serialize($this->node));
if (!($dup = $this
->biblio_xml_check_md5($this->node->biblio_xml_md5))) {
if (!empty($this->terms)) {
if (!isset($this->node->taxonomy)) {
$this->node->taxonomy = array();
}
$this->node->taxonomy = array_merge($this->terms, $this->node->taxonomy);
}
biblio_save_node($this->node, $this->batch_proc, $this->session_id);
if (!empty($this->node->nid)) {
$this->nids[] = $this->node->nid;
}
}
else {
$this->dups[] = $dup;
}
break;
case 'AUTHOR':
case 'SECONDARY_AUTHOR':
case 'TERTIARY_AUTHOR':
case 'SUBSIDIARY_AUTHOR':
$auth_category = $this
->field_map($name);
$this->node->biblio_contributors[$auth_category][$this->contrib_count]['auth_type'] = _biblio_get_auth_type($auth_category, $this->node->biblio_type);
$this->contrib_count++;
break;
case 'KEYWORD':
$this->keyword_count++;
break;
default:
}
$this->element = '';
}