commit 09ff9ec08356791c15c561dd3c241c96d6fc88ea
parent ecd6309fbc2b3ca9efa22212ad55d4c73590d58e
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 16 Aug 2010 08:19:12 +0000
fix upgrading of documents with non-page locatorType
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -1260,7 +1260,10 @@ Zotero.Integration.Session.prototype.unserializeCitation = function(arg, index)
// for upgrade from Zotero 2.0 or earlier
for each(var citationItem in citation.citationItems) {
if(citationItem.locatorType) {
- citationItem.label = citationItem.locatorType;
+ const locatorTypeTerms = ["page", "book", "chapter", "column", "figure", "folio",
+ "issue", "line", "note", "opus", "paragraph", "part", "section", "sub verbo",
+ "volume", "verse"];
+ citationItem.label = locatorTypeTerms[citationItem.locatorType];
delete citationItem.locatorType;
} else if(citationItem.suppressAuthor) {
citationItem["suppress-author"] = citationItem["suppressAuthor"];