You are here

function _save_marc_maps in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/marcParse/biblio_marc.install \_save_marc_maps()
  2. 7.2 modules/marcParse/biblio_marc.install \_save_marc_maps()
1 call to _save_marc_maps()
biblio_marc_install in modules/marcParse/biblio_marc.install
Implementation of hook_install().

File

modules/marcParse/biblio_marc.install, line 46
Database table creation for biblio_marc module.

Code

function _save_marc_maps() {
  $maps['type_map'] = serialize(array(
    // Journal Article.
    'ab' => 102,
    // Journal Article.
    'as' => 102,
    // Book.
    'am' => 100,
    // Thesis.
    2 => 108,
    // Conference Proceedings.
    3 => 103,
    // Personal Communication.
    4 => 120,
    // NewsPaper Article.
    5 => 105,
    // Computer Program.
    6 => 113,
    // Book Section.
    'aa' => 101,
    // Magazine Article.
    8 => 106,
    // Edited Book.
    9 => 100,
    // Report.
    10 => 109,
    // Map.
    'em' => 122,
    // Audiovisual Material.
    12 => 114,
    // Artwork.
    13 => 112,
    // Patent.
    15 => 119,
    // Electronic Source.
    16 => 107,
    // Bill.
    17 => 117,
    // Case.
    18 => 116,
    // Hearing.
    19 => 115,
    // Manuscript.
    20 => 121,
    // Film or Broadcast.
    21 => 110,
    // Statute.
    22 => 118,
    // Chart or Table.
    26 => 123,
    // Generic.
    31 => 129,
  ));
  $maps['type_names'] = serialize(array());
  $maps['field_map'] = serialize(array());
  $maps['format'] = 'marc';
  biblio_save_map($maps);
}