www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5c677a3834c0e2bdbcf2808da8abeeb56883b614
parent 2b7837efd434165fd26e5e5303c08ced761dbc38
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 30 Mar 2011 19:53:30 +0000

fix upgrading of locator types


Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -1585,10 +1585,7 @@ 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) { - const locatorTypeTerms = ["page", "book", "chapter", "column", "figure", "folio", - "issue", "line", "note", "opus", "paragraph", "part", "section", "sub verbo", - "volume", "verse"]; - citationItem.label = locatorTypeTerms[citationItem.locatorType]; + citationItem.label = citationItem.locatorType; delete citationItem.locatorType; } else if(citationItem.suppressAuthor) { citationItem["suppress-author"] = citationItem["suppressAuthor"];