From 09ff9ec08356791c15c561dd3c241c96d6fc88ea Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 16 Aug 2010 08:19:12 +0000 Subject: [PATCH] fix upgrading of documents with non-page locatorType --- chrome/content/zotero/xpcom/integration.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 9a96984b8..c75fcc0ae 100644 --- 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"];