fix upgrading of locator types

This commit is contained in:
Simon Kornblith 2011-03-30 19:53:30 +00:00
parent 2b7837efd4
commit 5c677a3834

View file

@ -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"];