function en7_endElement in Bibliography Module 6
File
- ./
endnote7_parser.inc, line 47
Code
function en7_endElement($parser, $name) {
global $node, $element, $terms, $batch, $session_id, $nids, $auth_count, $keyword_count;
switch ($name) {
case 'RECORD':
if (!empty($terms)) {
if (!isset($node['taxonomy'])) {
$node['taxonomy'] = array();
}
$node['taxonomy'] = array_merge($terms, $node['taxonomy']);
}
$nid = biblio_save_node($node, $batch, $session_id);
if (isset($nid)) {
$nids[] = $nid;
}
break;
case 'AUTHOR':
case 'SECONDARY_AUTHOR':
case 'TERTIARY_AUTHOR':
case 'SUBSIDIARY_AUTHOR':
$auth_category = en7_field_map($name);
$node['biblio_contributors'][$auth_category][$auth_count]['auth_type'] = _biblio_get_auth_type($auth_category, $node['biblio_type']);
$auth_count++;
break;
case 'KEYWORD':
$keyword_count++;
break;
default:
}
$element = '';
}