function _add_publication_types in Bibliography Module 7
Same name and namespace in other branches
- 6 biblio.install \_add_publication_types()
2 calls to _add_publication_types()
- biblio_admin_types_reset in includes/
biblio.admin.inc - biblio_install in ./
biblio.install
File
- ./
biblio.install, line 1477
Code
function _add_publication_types() {
$types[] = array(
100,
'Book',
NULL,
1,
);
$types[] = array(
101,
'Book Chapter',
NULL,
2,
);
$types[] = array(
102,
'Journal Article',
NULL,
3,
);
$types[] = array(
131,
'Journal',
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(
132,
'Website',
NULL,
8,
);
$types[] = array(
133,
'Web service',
NULL,
8,
);
$types[] = array(
134,
'Web project page',
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,
);
$types[] = array(
135,
'Presentation',
NULL,
8,
);
foreach ($types as $record) {
db_insert('biblio_types')
->fields(array(
'tid' => $record[0],
'name' => $record[1],
'description' => $record[2],
'weight' => $record[3],
))
->execute();
}
return;
}