function en7_characterData in Bibliography Module 6
File
- ./
endnote7_parser.inc, line 77
Code
function en7_characterData($parser, $data) {
global $node, $element, $auth_count, $keyword_count;
if (trim($data)) {
switch ($element) {
case 'REFERENCE_TYPE':
$node['biblio_type'] = en7_type_map($data);
break;
case 'AUTHOR':
$node['biblio_contributors'][1][$auth_count]['name'] .= $data;
break;
case 'SECONDARY_AUTHOR':
$node['biblio_contributors'][2][$auth_count]['name'] .= $data;
break;
case 'TERTIARY_AUTHOR':
$node['biblio_contributors'][3][$auth_count]['name'] .= $data;
break;
case 'SUBSIDIARY_AUTHOR':
$node['biblio_contributors'][4][$auth_count]['name'] .= $data;
break;
case 'KEYWORD':
$node['biblio_keywords'][$keyword_count] .= $data;
break;
case 'TITLE':
$node['title'] .= $data;
break;
default:
if ($field = en7_field_map(trim($element))) {
$node[$field] .= $data;
}
}
}
}