You are here

function EndNoteXMLParser::endnote7_startElement in Bibliography Module 6.2

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

File

modules/endnote/endnote_xml_parser.inc, line 321

Class

EndNoteXMLParser

Code

function endnote7_startElement($parser, $name, $attrs) {
  switch ($name) {
    case 'RECORD':
      $this->node = new stdClass();
      $this->node->biblio_contributors = array();
      $this->node->biblio_type = 102;

      // we set 102 here because the xml parser won't
      // process a value of 0 (ZERO) which is the
      // ref-type 102. if there is a non-zero value it will be overwritten
      $this->element = '';
      break;
    case 'AUTHORS':
    case 'SECONDARY_AUTHORS':
    case 'TERTIARY_AUTHORS':
    case 'SUBSIDIARY_AUTHORS':
      $this->contrib_count = 0;
      break;
    case 'KEYWORDS':
      $this->keyword_count = 0;
      break;
    default:
      $this->element = $name;
  }
}