You are here

function EndNoteXMLParser::endnote7_characterData in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 modules/endnote/endnote_xml_parser.inc \EndNoteXMLParser::endnote7_characterData()
  2. 7.2 modules/endnote/endnote_xml_parser.inc \EndNoteXMLParser::endnote7_characterData()

File

modules/endnote/endnote_xml_parser.inc, line 378

Class

EndNoteXMLParser

Code

function endnote7_characterData($parser, $data) {
  if (trim($data)) {
    switch ($this->element) {
      case 'REFERENCE_TYPE':
        $this->node->biblio_type = $this
          ->type_map($data);
        break;
      case 'AUTHOR':
        $this->node->biblio_contributors[1][$this->contrib_count]['name'] .= $data;
        break;
      case 'SECONDARY_AUTHOR':
        $this->node->biblio_contributors[2][$this->contrib_count]['name'] .= $data;
        break;
      case 'TERTIARY_AUTHOR':
        $this->node->biblio_contributors[3][$this->contrib_count]['name'] .= $data;
        break;
      case 'SUBSIDIARY_AUTHOR':
        $this->node->biblio_contributors[4][$this->contrib_count]['name'] .= $data;
        break;
      case 'KEYWORD':
        $this->node->biblio_keywords[$this->keyword_count] .= $data;
        break;
      case 'TITLE':
        $this->node->title .= $data;
        break;
      default:
        if ($field = $this
          ->field_map(trim($this->element))) {
          $this->node->{$field} .= $data;
        }
        else {
          if (!in_array($this->element, $this->unmapped)) {
            $this->unmapped[] = $this->element;
          }
        }
    }
  }
}