public function BiblioStyleEndNoteXML8::startElement in Bibliography Module 7.3
File
- plugins/
biblio_style/ endnote/ BiblioStyleEndNoteXML8.php, line 62 - EndNote XML8 biblio style.
Class
- BiblioStyleEndNoteXML8
- @file EndNote XML8 biblio style.
Code
public function startElement($parser, $name, $attrs) {
if ($name == 'style') {
$this->font_attr = explode(' ', $attrs['face']);
foreach ($this->font_attr as $font_attr) {
switch ($font_attr) {
case 'normal':
// Do nothing.
break;
case 'bold':
$this
->characterData(NULL, '<b>');
break;
case 'italic':
$this
->characterData(NULL, '<i>');
break;
case 'underline':
$this
->characterData(NULL, '<u>');
break;
case 'superscript':
$this
->characterData(NULL, '<sup>');
break;
case 'subscript':
$this
->characterData(NULL, '<sub>');
break;
}
}
}
else {
$this->element = $name;
if (strpos($name, 'authors') !== FALSE) {
// Add the role of the contributor.
$this->role = $name;
}
}
}