You are here

public function BiblioStyleEndNoteXML8::endElement in Bibliography Module 7.3

File

plugins/biblio_style/endnote/BiblioStyleEndNoteXML8.php, line 102
EndNote XML8 biblio style.

Class

BiblioStyleEndNoteXML8
@file EndNote XML8 biblio style.

Code

public function endElement($parser, $name) {
  if ($name == 'style') {
    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 = '';
  }
}