You are here

public function BiblioStyleCiteProc::getMapping in Bibliography Module 7.3

@todo: Make abstract function?

Overrides BiblioStyleBase::getMapping

1 call to BiblioStyleCiteProc::getMapping()
BiblioStyleCiteProc::map in plugins/biblio_style/citeproc/BiblioStyleCiteProc.class.php
Map the fields from the Biblio entity to the ones known by CiteProc.

File

plugins/biblio_style/citeproc/BiblioStyleCiteProc.class.php, line 154
Chicago biblio style.

Class

BiblioStyleCiteProc
@file Chicago biblio style.

Code

public function getMapping() {
  return array(
    'biblio' => array(
      'text' => array(
        // Text variables.
        'title' => 'title',
        'container-title' => 'biblio_secondary_title',
        'collection-title' => 'biblio_secondary_title',
        'original-title' => 'biblio_alternate_title',
        'publisher' => 'biblio_publisher',
        'publisher-place' => 'biblio_place_published',
        'original-publisher' => 'original-publisher',
        'original-publisher-place' => 'original-publisher-place',
        'archive' => 'archive',
        'archive-place' => 'archive-place',
        'authority' => 'authority',
        'archive_location' => 'authority',
        'event' => 'biblio_date',
        'event-place' => 'event-place',
        'page' => 'biblio_pages',
        'page-first' => 'page',
        'locator' => 'locator',
        'version' => 'biblio_edition',
        'volume' => 'biblio_volume',
        'number-of-volumes' => 'biblio_number_of_volumes',
        'number-of-pages' => 'number-of-pages',
        'issue' => 'biblio_issue',
        'chapter-number' => 'biblio_section',
        'medium' => 'medium',
        'status' => 'status',
        'edition' => 'biblio_edition',
        'section' => 'biblio_section',
        'genre' => 'genre',
        'note' => 'biblio_note',
        'annote' => 'annote',
        'abstract' => 'biblio_abstract',
        'keyword' => 'keyword',
        'number' => 'biblio_number',
        'references' => 'references',
        'URL' => 'URL',
        'DOI' => 'biblio_doi',
        'ISBN' => 'biblio_isbn',
        'call-number' => 'biblio_call_number',
        'citation-number' => 'citation-number',
        'citation-label' => 'biblio_citekey',
        'first-reference-note-number' => 'first-reference-note-number',
        'year-suffix' => 'year-suffix',
        'jurisdiction' => 'jurisdiction',
      ),
      'date' => array(
        // Date Variables.
        'issued' => 'biblio_year',
        'event' => 'event',
        'accessed' => 'biblio_access_date',
        'container' => 'biblio_date',
        'original-date' => 'biblio_date',
      ),
      'contributor' => array(
        // Contributor Variables.
        'author' => 'author',
        'editor' => 'editor',
        'translator' => 'translator',
        'recipient' => 'recipient',
        'interviewer' => 'interviewer',
        'publisher' => 'publisher',
        'composer' => 'composer',
        'original-publisher' => 'original-publisher',
        'original-author' => 'original-author',
        'container-author' => 'container-author',
        'collection-editor' => 'collection-editor',
      ),
    ),
    'contributor' => array(
      'text' => array(
        'initials' => 'initials',
        'given' => 'firstname',
        'family' => 'lastname',
        'prefix' => 'prefix',
        'suffix' => 'suffix',
      ),
    ),
  );
}