You are here

public function BiblioStyleEndNoteXML7::getMapping in Bibliography Module 7.3

@inheritdoc

Overrides BiblioStyleEndNoteXML8::getMapping

File

plugins/biblio_style/endnote/BiblioStyleEndNoteXML7.php, line 30
EndNote XML7 biblio style.

Class

BiblioStyleEndNoteXML7
@file EndNote XML7 biblio style.

Code

public function getMapping() {
  $return = array(
    'type' => array(
      0 => 'journal_article',
      1 => 'book',
      2 => 'thesis',
      3 => 'conference_proceedings',
      4 => 'personal',
      5 => 'newspaper_article',
      6 => 'software',
      7 => 'book_chapter',
      8 => 'magazine_article',
      9 => 'edited',
      10 => 'report',
      11 => 'map',
      12 => 'audiovisual',
      13 => 'artwork',
      15 => 'patent',
      16 => 'web_article',
      17 => 'bill',
      18 => 'case',
      19 => 'hearing',
      20 => 'manuscript',
      21 => 'film',
      22 => 'statute',
      26 => 'chart',
      31 => 'miscellaneous',
    ),
  );
  $parent_map = parent::getMapping();
  $info = array(
    'ABSTRACT' => 'abstract',
    'ACCESSION_NUMBER' => 'accession-num',
    'ALTERNATE_TITLE' => 'alt-title',
    'CALL_NUMBER' => 'call-num',
    'EDITION' => 'edition',
    'ISBN' => 'isbn',
    'ISSUE' => 'issue',
    'LABEL' => 'label',
    'NOTES' => 'notes',
    'NUMBER' => 'number',
    'NUMBER_OF_VOLUMES' => 'num-vols',
    'ORIGINAL_PUB' => 'orig-pub',
    'PAGES' => 'pages',
    'PLACE_PUBLISHED' => 'pub-location',
    'PUBLISHER' => 'publisher',
    'REPRINT_EDITION' => 'reprint-edition',
    'SECONDARY_TITLE' => 'secondary-title',
    'SECTION' => 'section',
    'SHORT_TITLE' => 'short-title',
    'TERTIARY_TITLE' => 'tertiary-title',
    'TYPE_OF_WORK' => 'work-type',
    'URL' => 'url',
    'VOLUME' => 'volume',
    'YEAR' => 'year',
  );
  foreach ($info as $xml7 => $xml8) {

    // Map the field info using the XML7 key but with the XML8 definitions.
    $return['field'][$xml7] = $parent_map['field'][$xml8];
  }
  return $return;
}