You are here

function _add_publication_types in Bibliography Module 6

Same name and namespace in other branches
  1. 7 biblio.install \_add_publication_types()
1 call to _add_publication_types()
biblio_install in ./biblio.install
@file Install file for biblio module

File

./biblio.install, line 1077
Install file for biblio module

Code

function _add_publication_types() {
  $types[] = array(
    -1,
    'Select Type...',
    NULL,
    -10,
  );
  $types[] = array(
    100,
    'Book',
    NULL,
    1,
  );
  $types[] = array(
    101,
    'Book Chapter',
    NULL,
    2,
  );
  $types[] = array(
    102,
    'Journal Article',
    NULL,
    3,
  );
  $types[] = array(
    103,
    'Conference Paper',
    NULL,
    4,
  );
  $types[] = array(
    104,
    'Conference Proceedings',
    NULL,
    5,
  );
  $types[] = array(
    105,
    'Newspaper Article',
    NULL,
    6,
  );
  $types[] = array(
    106,
    'Magazine Article',
    NULL,
    7,
  );
  $types[] = array(
    107,
    'Web Article',
    NULL,
    8,
  );
  $types[] = array(
    108,
    'Thesis',
    NULL,
    9,
  );
  $types[] = array(
    109,
    'Report',
    NULL,
    10,
  );
  $types[] = array(
    110,
    'Film',
    NULL,
    11,
  );
  $types[] = array(
    111,
    'Broadcast',
    NULL,
    12,
  );
  $types[] = array(
    112,
    'Artwork',
    NULL,
    13,
  );
  $types[] = array(
    113,
    'Software',
    NULL,
    14,
  );
  $types[] = array(
    114,
    'Audiovisual',
    NULL,
    15,
  );
  $types[] = array(
    115,
    'Hearing',
    NULL,
    16,
  );
  $types[] = array(
    116,
    'Case',
    NULL,
    17,
  );
  $types[] = array(
    117,
    'Bill',
    NULL,
    18,
  );
  $types[] = array(
    118,
    'Statute',
    NULL,
    19,
  );
  $types[] = array(
    119,
    'Patent',
    NULL,
    20,
  );
  $types[] = array(
    120,
    'Personal',
    NULL,
    21,
  );
  $types[] = array(
    121,
    'Manuscript',
    NULL,
    22,
  );
  $types[] = array(
    122,
    'Map',
    NULL,
    23,
  );
  $types[] = array(
    123,
    'Chart',
    NULL,
    24,
  );
  $types[] = array(
    124,
    'Unpublished',
    NULL,
    25,
  );
  $types[] = array(
    125,
    'Database',
    NULL,
    26,
  );
  $types[] = array(
    126,
    'Government Report',
    NULL,
    27,
  );
  $types[] = array(
    127,
    'Classical',
    NULL,
    28,
  );
  $types[] = array(
    128,
    'Legal Ruling',
    NULL,
    29,
  );
  $types[] = array(
    129,
    'Miscellaneous',
    NULL,
    30,
  );
  $types[] = array(
    130,
    'Miscellaneous Section',
    NULL,
    31,
  );
  foreach ($types as $record) {
    $result[] = update_sql("INSERT INTO {biblio_types} (tid, name, description, weight) VALUES ('" . implode("', '", $record) . "')");
  }
  return $result;
}