diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 7c8299d2c..14bebe97a 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -866,6 +866,10 @@ Zotero.Schema = new function(){ if (i==26) { Zotero.DB.query("INSERT INTO itemData SELECT itemID, 114, valueID FROM itemData WHERE itemID IN (SELECT itemID FROM items WHERE itemTypeID=33) AND fieldID=84"); } + + if (i==27) { + Zotero.DB.query("UPDATE itemData SET fieldID=115 WHERE itemID IN (SELECT itemID FROM items WHERE itemTypeID=3) AND fieldID=12"); + } } _updateSchema('userdata'); diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 45a8d86b3..215733dd6 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -233,6 +233,8 @@ itemFields.caseName = Case Name itemFields.nameOfAct = Name of Act itemFields.subject = Subject itemFields.proceedingsTitle = Proceedings Title +itemFields.bookTitle = Book Title +itemFields.shortTitle = Short Title creatorTypes.author = Author creatorTypes.contributor = Contributor diff --git a/system.sql b/system.sql index e03a119b8..2d0d4c9f4 100644 --- a/system.sql +++ b/system.sql @@ -1,4 +1,4 @@ --- 16 +-- 17 -- This file creates system tables that can be safely wiped and reinitialized -- at any time, as long as existing ids are preserved. @@ -265,6 +265,7 @@ INSERT INTO fields VALUES (111,'caseName',NULL); INSERT INTO fields VALUES (112,'nameOfAct',NULL); INSERT INTO fields VALUES (113,'subject',NULL); INSERT INTO fields VALUES (114,'proceedingsTitle',NULL); +INSERT INTO fields VALUES (115,'bookTitle',NULL); INSERT INTO itemTypeFields VALUES (2, 110, NULL, 1); INSERT INTO itemTypeFields VALUES (2, 90, NULL, 2); @@ -288,7 +289,7 @@ INSERT INTO itemTypeFields VALUES (2, 2, NULL, 19); INSERT INTO itemTypeFields VALUES (2, 22, NULL, 20); INSERT INTO itemTypeFields VALUES (3, 110, NULL, 1); INSERT INTO itemTypeFields VALUES (3, 90, NULL, 2); -INSERT INTO itemTypeFields VALUES (3, 12, NULL, 3); +INSERT INTO itemTypeFields VALUES (3, 115, NULL, 3); INSERT INTO itemTypeFields VALUES (3, 3, NULL, 4); INSERT INTO itemTypeFields VALUES (3, 30, NULL, 5); INSERT INTO itemTypeFields VALUES (3, 4, NULL, 6); @@ -786,6 +787,7 @@ INSERT INTO itemTypeFields VALUES (36, 27, NULL, 19); INSERT INTO itemTypeFields VALUES (36, 2, NULL, 20); INSERT INTO itemTypeFields VALUES (36, 22, NULL, 21); + INSERT INTO baseFieldMappings VALUES (16, 4, 94); -- bill/volume/codeVolume INSERT INTO baseFieldMappings VALUES (17, 4, 97); -- case/volume/reporterVolume INSERT INTO baseFieldMappings VALUES (19, 7, 102); -- patent/place/country @@ -797,6 +799,7 @@ INSERT INTO baseFieldMappings VALUES (30, 8, 78); -- radioBroadcast/publisher/ne INSERT INTO baseFieldMappings VALUES (32, 8, 83); -- computerProgram/publisher/company INSERT INTO baseFieldMappings VALUES (16, 10, 95); -- bill/pages/codePages INSERT INTO baseFieldMappings VALUES (17, 10, 98); -- case/pages/firstPage +INSERT INTO baseFieldMappings VALUES (3, 12, 115); -- bookSection/publicationTitle/bookTitle INSERT INTO baseFieldMappings VALUES (33, 12, 114); -- conferencePaper/publicationTitle/proceedingsTitle INSERT INTO baseFieldMappings VALUES (13, 12, 91); -- webpage/publicationTitle/websiteTitle INSERT INTO baseFieldMappings VALUES (23, 12, 107); -- blogPost/publicationTitle/blogTitle diff --git a/userdata.sql b/userdata.sql index b28b86c4d..41efd9459 100644 --- a/userdata.sql +++ b/userdata.sql @@ -1,4 +1,4 @@ --- 26 +-- 27 -- This file creates tables containing user-specific data -- any changes -- to existing tables made here must be mirrored in transition steps in