You are here

function _add_types in Bibliography Module 5

2 calls to _add_types()
biblio_install in ./biblio.install
biblio_reset_types in ./biblio.install

File

./biblio.install, line 246

Code

function _add_types(&$result) {
  $result[] = db_query("CREATE TABLE {biblio_type_details} (\n        `tid` int(11) NOT NULL default '0',\n        `fid` int(11) NOT NULL default '0',\n        `title` varchar(100) NOT NULL default '',\n        `hint` varchar(100) default '',\n        `required` tinyint(1) NOT NULL default '0',\n        `weight` int(11) NOT NULL default '0',\n        PRIMARY KEY  (`tid`,`fid`),\n        KEY `tid` (`tid`)\n      ) /*!40100 ENGINE=MyISAM DEFAULT CHARACTER SET utf8 */;");
  $result[] = db_query("/*!40000 ALTER TABLE {biblio_type_details} DISABLE KEYS */;");
  $result[] = db_query("INSERT INTO {biblio_type_details} (`tid`,`fid`,`title`,`hint`,`required`,`weight`) VALUES\n       (100,5,'Series Title','',0,3),\n       (100,15,'Edition','',0,10),\n       (100,18,'Number of Pages','',0,9),\n       (100,12,'Publisher','',0,5),\n       (100,13,'City','',0,4),\n       (100,2,'Series Editor','',0,2),\n       (100,16,'Volume','',0,6),\n       (100,36,'Number of Volumes','',0,7),\n       (100,17,'Series Volume','',0,8),\n       (100,37,'Short Title','',0,11),\n       (100,41,'Reprint Edition','',0,12),\n       (101,36,'Number of Volumes','',0,7),\n       (101,16,'Volume','',0,6),\n       (101,17,'Series Volume','',0,8),\n       (101,18,'Pages','',0,9),\n       (101,42,'Chapter','',0,10),\n       (101,3,'Series Editor','',0,11),\n       (101,6,'Series Title','',0,12),\n       (101,15,'Edition','',0,13),\n       (101,37,'Short Title','',0,14),\n       (101,40,'Original Publication','',0,171),\n       (101,41,'Reprint Edition','',0,172),\n       (101,20,'Language','',0,23),\n       (101,12,'Publisher','',0,5),\n       (101,5,'Book Title','',0,3),\n       (101,2,'Editor','',0,2),\n       (101,13,'City','',0,4);");
  $result[] = db_query("INSERT INTO {biblio_type_details} (`tid`,`fid`,`title`,`hint`,`required`,`weight`) VALUES\n       (102,42,'Start Page','',0,6),\n       (102,37,'Short Title','',0,15),\n       (102,41,'Reprint Edition','',0,172),\n       (102,12,'Publisher','',0,19),\n       (102,16,'Volume','',0,3),\n       (102,19,'Journal Date','(mm/yyyy)',0,14),\n       (102,5,'Journal Title','',1,2),\n       (102,27,'Issue','',0,4),\n       (102,18,'Pages','',0,5),\n       (103,5,'Conference Name','',0,12),\n       (103,6,'Series Title','',0,13),\n       (103,16,'Volume','',0,14),\n       (103,15,'Edition','',0,15),\n       (103,18,'Pagination','',0,17),\n       (103,19,'Conference Start Date','(dd/mm/yyyy)',0,18),\n       (103,12,'Publisher','',0,19),\n       (103,13,'Conference Location','',0,20),\n       (103,2,'Editor','',0,21),\n       (104,5,'Conference Name','',0,12),\n       (104,6,'Series Title','',0,13),\n       (104,16,'Volume','',0,14),\n       (104,15,'Edition','',0,15),\n       (104,18,'Pagination','',0,17),\n       (104,19,'Conference Start Date','(dd/mm/yyyy)',0,18),\n       (104,12,'Publisher','',0,19),\n       (104,13,'Conference Location','',0,20),\n       (104,2,'Editor','',0,21);");
  $result[] = db_query("INSERT INTO {biblio_type_details} (`tid`,`fid`,`title`,`hint`,`required`,`weight`) VALUES\n       (108,5,'Academic Department','',0,12),\n       (108,18,'Number of Pages','',0,17),\n       (108,12,'University','',0,19),\n       (108,13,'City','',0,20),\n       (108,24,'Degree','Masters Thesis, PhD Thesis, etc.',0,22),\n       (109,19,'Date','(mm/yyyy)',0,18),\n       (109,18,'Pages','',0,17),\n       (109,5,'Prepared for','',0,12),\n       (109,12,'Institution','',0,19),\n       (109,13,'City','',0,20),\n       (119,12,'Assignee','',0,19),\n       (119,19,'Date','(mm/yyyy)',0,18),\n       (119,18,'Pages','',0,17),\n       (119,27,'Issue','',0,15),\n       (119,5,'Published Source','',0,12),\n       (119,13,'Country','',0,13),\n       (119,16,'Volume','',0,14),\n       (129,5,'Prepared for','',0,12);");
  $result[] = db_query("/*!40000 ALTER TABLE {biblio_type_details} ENABLE KEYS */;");
}