Fix truncated default terms when using custom <terms> element (http://forums.zotero.org/discussion/4384/)

This commit is contained in:
Dan Stillman 2008-10-25 10:51:01 +00:00
parent d2118dc5fc
commit 5688acbdc9

View file

@ -1485,11 +1485,10 @@ Zotero.CSL.Global = new function() {
for(var i in Zotero.CSL.Global._defaultTerms) { for(var i in Zotero.CSL.Global._defaultTerms) {
termArray[i] = new Object(); termArray[i] = new Object();
for(var j in Zotero.CSL.Global._defaultTerms[i]) { for(var j in Zotero.CSL.Global._defaultTerms[i]) {
if(typeof(Zotero.CSL.Global._defaultTerms[i]) == "object") { if(typeof(Zotero.CSL.Global._defaultTerms[i][j]) == "object") {
termArray[i][j] = [Zotero.CSL.Global._defaultTerms[i][j][0], termArray[i][j] = Zotero.CSL.Global._defaultTerms[i][j].concat();
Zotero.CSL.Global._defaultTerms[i][j][1]];
} else { } else {
termArray[i][j] = Zotero.CSL.Global_defaultTerms[i][j]; termArray[i][j] = Zotero.CSL.Global._defaultTerms[i][j];
} }
} }
} }