commit d587b57dbfd4b7552bacd37c1858841f3dd2827c
parent 2748cf77a83740bb1be44d61df2ff12830b119df
Author: Simon Kornblith <simon@simonster.com>
Date: Fri, 8 Apr 2011 14:30:59 +0000
Fix for improper upgrade of locator types in Zotero <2.1.5
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -1592,6 +1592,14 @@ Zotero.Integration.Session.prototype.unserializeCitation = function(arg, index)
} else if(citationItem.suppressAuthor) {
citationItem["suppress-author"] = citationItem["suppressAuthor"];
delete citationItem.suppressAuthor;
+ }
+
+ // fix for improper upgrade from Zotero 2.1 in <2.1.5
+ if(parseInt(citationItem.label) == citationItem.label) {
+ const locatorTypeTerms = ["page", "book", "chapter", "column", "figure", "folio",
+ "issue", "line", "note", "opus", "paragraph", "part", "section", "sub verbo",
+ "volume", "verse"];
+ citationItem.label = locatorTypeTerms[parseInt(citationItem.label)];
}
}
if(citation.sort) {