You are here

function biblio_get_type_map in Bibliography Module 6

12 calls to biblio_get_type_map()
biblio_admin_type_mapper_form in ./biblio.admin.inc
en7_type_map in ./endnote7_parser.inc
en8_parser_type_map in ./endnote8_parser.inc
marc_type_map in ./biblio.import.export.inc
PARSEENTRIES::bibtex_type_map in bibtexParse/PARSEENTRIES.php

... See full list

File

./biblio.type.mapper.inc, line 2

Code

function biblio_get_type_map($file_format, $default = FALSE) {
  if ($default) {
    switch ($file_format) {
      case 'bibtex':
        return array(
          'article' => 102,
          'book' => 100,
          'booklet' => 129,
          'conference' => 103,
          'inbook' => 101,
          'incollection' => 101,
          'inproceedings' => 103,
          'manual' => 129,
          'mastersthesis' => 108,
          'misc' => 129,
          'phdthesis' => 108,
          'proceedings' => 104,
          'techreport' => 129,
          'unpublished' => 124,
        );
      case 'tagged':
        return array(
          "Journal Article" => 102,
          "Conference Paper" => 103,
          "Conference Proceedings" => 104,
          "Report" => 109,
          "Book" => 100,
          "Edited Book" => 100,
          "Book Section" => 101,
          "Thesis" => 108,
          "Patent" => 119,
          "Generic" => 129,
          "Newspaper Article" => 105,
          "Magazine Article" => 106,
          "Web Page" => 107,
          "Film or Broadcast" => 110,
          "Artwork" => 112,
          "Audiovisual Material" => 114,
          "Hearing" => 115,
          "Case" => 116,
          "Bill" => 117,
          "Statute" => 118,
          "Personal Communication" => 120,
          "Manuscript" => 121,
          "Map" => 122,
          "Chart or Table" => 123,
          "Unpublished Work" => 124,
          "Online Database" => 125,
          "Government Document" => 126,
          "Classical Work" => 127,
          "Legal Rule or Regulation" => 128,
        );
      case 'ris':
        return array(
          'ABST' => 129,
          'ADVS' => 114,
          'ART' => 112,
          'BILL' => 117,
          'BOOK' => 100,
          'CASE' => 116,
          'CHAP' => 101,
          'COMP' => 113,
          'CONF' => 103,
          'CTLG' => 129,
          'DATA' => 125,
          'ELEC' => 129,
          'GEN' => 129,
          'HEAR' => 115,
          'ICOMM' => 107,
          'INPR' => 129,
          'JFULL' => 129,
          'JOUR' => 102,
          'MAP' => 122,
          'MGZN' => 106,
          'MPCT' => 110,
          'MUSIC' => 129,
          'NEWS' => 105,
          'PAMP' => 129,
          'PAT' => 119,
          'PCOMM' => 120,
          'RPRT' => 109,
          'SER' => 100,
          'SLIDE' => 129,
          'SOUND' => 129,
          'STAT' => 125,
          'THES' => 108,
          'UNBILl' => 129,
          'UNPB' => 124,
          'VIDEO' => 129,
        );
      case 'endnote7':
        return array(
          0 => 102,
          // Journal Article
          1 => 100,
          // Book
          2 => 108,
          // Thesis
          3 => 103,
          // Conference Proceedings
          4 => 120,
          // Personal Communication
          5 => 105,
          // NewsPaper Article
          6 => 113,
          // Computer Program
          7 => 101,
          // Book Section
          8 => 106,
          // Magazine Article
          9 => 100,
          // Edited Book
          10 => 109,
          // Report
          11 => 122,
          // Map
          12 => 114,
          // Audiovisual Material
          13 => 112,
          // Artwork
          15 => 119,
          // Patent
          16 => 107,
          // Electronic Source
          17 => 117,
          // Bill
          18 => 116,
          // Case
          19 => 115,
          // Hearing
          20 => 121,
          // Manuscript
          21 => 110,
          // Film or Broadcast
          22 => 118,
          // Statute
          26 => 123,
          // Chart or Table
          31 => 129,
        );
      case 'endnote8':
        return array(
          2 => 112,
          // artwork
          3 => 114,
          // Audio Visual
          4 => 117,
          // bill
          5 => 101,
          // Book Section
          6 => 100,
          // Book
          7 => 116,
          // case
          9 => 113,
          // software
          17 => 102,
          // Journal Article
          10 => 104,
          // Conference Proceeding
          12 => 107,
          // web page
          13 => 129,
          // Generic
          14 => 115,
          // hearing
          19 => 106,
          // magazine_article
          20 => 122,
          // map
          21 => 110,
          // film
          21 => 111,
          // broadcast
          23 => 105,
          // newspaper_article
          25 => 119,
          // patent
          26 => 120,
          // personal communication
          27 => 109,
          // Report
          28 => 129,
          // Edited Book
          31 => 118,
          // statute
          32 => 108,
          // Thesis
          34 => 124,
          // unpublished
          36 => 121,
          // manuscript
          37 => 129,
          // figure
          38 => 123,
          // chart
          39 => 129,
          // equation
          43 => 129,
          // electronic article
          44 => 129,
          // electronic book
          45 => 125,
          // online database
          46 => 126,
          // government_document
          47 => 103,
          // conference_paper
          48 => 129,
          // online multimedia
          49 => 127,
          // Classical Work
          50 => 128,
          // legal_ruling
          52 => 129,
          // Dictionary
          53 => 129,
          // Encyclopedia
          54 => 129,
        );
      case 'unixref':
        return array(
          'error' => 0,
          'book' => 100,
          // Book
          'journal' => 102,
          // Journal Article
          'standard' => 129,
          // Generic
          'conference' => 103,
          // conference_paper
          'report-paper' => 109,
          // Report
          'dissertation' => 108,
          // Thesis
          'database' => 125,
          // online database
          'sa_component' => 129,
        );
      case 'marc':
        return array(
          'ab' => 102,
          // Journal Article
          'as' => 102,
          // Journal Article
          'am' => 100,
          // Book
          2 => 108,
          // Thesis
          3 => 103,
          // Conference Proceedings
          4 => 120,
          // Personal Communication
          5 => 105,
          // NewsPaper Article
          6 => 113,
          // Computer Program
          'aa' => 101,
          // Book Section
          8 => 106,
          // Magazine Article
          9 => 100,
          // Edited Book
          10 => 109,
          // Report
          'em' => 122,
          // Map
          12 => 114,
          // Audiovisual Material
          13 => 112,
          // Artwork
          15 => 119,
          // Patent
          16 => 107,
          // Electronic Source
          17 => 117,
          // Bill
          18 => 116,
          // Case
          19 => 115,
          // Hearing
          20 => 121,
          // Manuscript
          21 => 110,
          // Film or Broadcast
          22 => 118,
          // Statute
          26 => 123,
          // Chart or Table
          31 => 129,
        );
    }
  }
  else {
    $map = variable_get('biblio_' . $file_format . '_type_map', array());
    if (empty($map)) {
      $map = biblio_get_type_map($file_format, TRUE);
    }
    return $map;
  }
}