diff --git a/chrome/content/zotero/xpcom/jurismMapExtensions.js b/chrome/content/zotero/xpcom/jurismMapExtensions.js index 2069df23e27..c9683115e5e 100644 --- a/chrome/content/zotero/xpcom/jurismMapExtensions.js +++ b/chrome/content/zotero/xpcom/jurismMapExtensions.js @@ -167,19 +167,19 @@ Zotero.Jurism.MapTools = { }, getEncodeField: function(zField, cslMap) { - for (var cField in cslMap) { - if ("string" === typeof cslMap[cField]) { - if (cslMap[cField] === zField) { - return cField; + for (var mapField in cslMap) { + if ("string" === typeof cslMap[mapField]) { + if (cslMap[mapField] === zField) { + return mapField; } } else { - if (cField === "shortTitle") { + if (mapField === "shortTitle") { continue; } - for (var i=0,ilen=cslMap[cField].length; i