You are here

function biblio_get_type_names in Bibliography Module 6

2 calls to biblio_get_type_names()
biblio_admin_type_mapper_form in ./biblio.admin.inc
biblio_admin_type_mapper_form_submit in ./biblio.admin.inc

File

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

Code

function biblio_get_type_names($file_format, $default = FALSE) {
  if ($default) {
    switch ($file_format) {
      case 'bibtex':
        return array(
          'article' => 'An article from a journal',
          'book' => 'A book with an explicit publisher',
          'booklet' => 'A work that is printed and bound, but without a named publisher or sponsoring institution',
          'conference' => 'An article in a conference proceedings',
          'inbook' => 'A part of a book, usually untitled. May be a chapter (or section or whatever) and/or a range of pages',
          'incollection' => 'A part of a book having its own title',
          'inproceedings' => 'An article in a conference proceedings',
          'manual' => 'Technical documentation',
          'mastersthesis' => 'A Master\'s thesis',
          'misc' => 'For use when nothing else fits',
          'phdthesis' => 'A Ph.D. thesis',
          'proceedings' => 'The proceedings of a conference',
          'techreport' => 'A report published by a school or other institution, usually numbered within a series',
          'unpublished' => 'A document having an author and title, but not formally published',
        );
      case 'tagged':
        return array(
          "Journal Article" => "Journal Article",
          "Conference Paper" => "Conference Paper",
          "Conference Proceedings" => "Conference Proceedings",
          "Report" => "Report",
          "Book" => "Book",
          "Edited Book" => "Edited Book",
          "Book Section" => "Book Section",
          "Thesis" => "Thesis",
          "Patent" => "Patent",
          "Generic" => "Generic",
          "Newspaper Article" => "Newspaper Article",
          "Magazine Article" => "Magazine Article",
          "Web Page" => "Web Page",
          "Film or Broadcast" => "Film or Broadcast",
          "Artwork" => "Artwork",
          "Audiovisual Material" => "Audiovisual Material",
          "Hearing" => "Hearing",
          "Case" => "Case",
          "Bill" => "Bill",
          "Statute" => "Statute",
          "Personal Communication" => "Personal Communication",
          "Manuscript" => "Manuscript",
          "Map" => "Map",
          "Chart or Table" => "Chart or Table",
          "Unpublished Work" => "Unpublished Work",
          "Online Database" => "Online Database",
          "Government Document" => "Government Document",
          "Classical Work" => "Classical Work",
          "Legal Rule or Regulation" => "Legal Rule or Regulation",
        );
      case 'ris':
        return array(
          'ABST' => 'Abstract',
          'ADVS' => 'Audiovisual material',
          'ART' => 'Art Work',
          'BILL' => 'Bill/Resolution',
          'BOOK' => 'Book, Whole',
          'CASE' => 'Case',
          'CHAP' => 'Book chapter',
          'COMP' => 'Computer program',
          'CONF' => 'Conference proceeding',
          'CTLG' => 'Catalog',
          'DATA' => 'Data file',
          'ELEC' => 'Electronic Citation',
          'GEN' => 'Generic',
          'HEAR' => 'Hearing',
          'ICOMM' => 'Internet Communication',
          'INPR' => 'In Press',
          'JFULL' => 'Journal (full)',
          'JOUR' => 'Journal',
          'MAP' => 'Map',
          'MGZN' => 'Magazine article',
          'MPCT' => 'Motion picture',
          'MUSIC' => 'Music score',
          'NEWS' => 'Newspaper',
          'PAMP' => 'Pamphlet',
          'PAT' => 'Patent',
          'PCOMM' => 'Personal communication',
          'RPRT' => 'Report',
          'SER' => 'Serial (Book, Monograph)',
          'SLIDE' => 'Slide',
          'SOUND' => 'Sound recording',
          'STAT' => 'Statute',
          'THES' => 'Thesis/Dissertation',
          'UNBILl' => 'Unenacted bill/resolution',
          'UNPB' => 'Unpublished work',
          'VIDEO' => 'Video recording',
        );
      case 'endnote7':
        return array(
          0 => 'Journal Article',
          1 => 'Book',
          2 => 'Thesis',
          3 => 'Conference Proceedings',
          4 => 'Personal Communication',
          5 => 'NewsPaper Article',
          6 => 'Computer Program',
          7 => 'Book Section',
          8 => 'Magazine Article',
          9 => 'Edited Book',
          10 => 'Report',
          11 => 'Map',
          12 => 'Audiovisual Material',
          13 => 'Artwork',
          15 => 'Patent',
          16 => 'Electronic Source',
          17 => 'Bill',
          18 => 'Case',
          19 => 'Hearing',
          20 => 'Manuscript',
          21 => 'Film or Broadcast',
          22 => 'Statute',
          26 => 'Chart or Table',
          31 => 'Generic',
        );
      case 'endnote8':
        return array(
          2 => 'Artwork',
          3 => 'Audio Visual',
          4 => 'Bill',
          5 => 'Book Section',
          6 => 'Book',
          7 => 'Case',
          9 => 'Software',
          17 => 'Journal Article',
          10 => 'Conference Proceeding',
          12 => 'Web page',
          13 => 'Generic',
          14 => 'Hearing',
          19 => 'Magazine Article',
          20 => 'Map',
          21 => 'Film',
          21 => 'Broadcast',
          23 => 'Newspaper Article',
          25 => 'Patent',
          26 => 'Personal Communication',
          27 => 'Report',
          28 => 'Edited Book',
          31 => 'Statute',
          32 => 'Thesis',
          34 => 'Unpublished',
          36 => 'Manuscript',
          37 => 'Figure',
          38 => 'Chart',
          39 => 'Equation',
          43 => 'Electronic Article',
          44 => 'Electronic Book',
          45 => 'Online Database',
          46 => 'Government Document',
          47 => 'Conference Paper',
          48 => 'Online Multimedia',
          49 => 'Classical Work',
          50 => 'Legal Ruling',
          52 => 'Dictionary',
          53 => 'Encyclopedia',
          54 => 'Grant',
        );
      case 'unixref':
        return array(
          'error' => 'Error',
          'book' => 'Book',
          'journal' => 'Journal Article',
          'standard' => 'Generic',
          'conference' => 'Conference Paper',
          'report-paper' => 'Report',
          'dissertation' => 'Thesis',
          'database' => 'Online database',
          'sa_component' => 'SA Component',
        );
    }
  }
  else {
    $names = variable_get('biblio_' . $file_format . '_type_names', array());
    if (empty($names)) {
      $names = biblio_get_type_names($file_format, TRUE);
    }
    return $names;
  }
}