www

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

commit 5688acbdc9c69456937abb3eb4594490ee708a73
parent d2118dc5fc90e4ee6e48deb2608e028f4c31da4d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 25 Oct 2008 10:51:01 +0000

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


Diffstat:
Mchrome/content/zotero/xpcom/csl.js | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/csl.js b/chrome/content/zotero/xpcom/csl.js @@ -1485,11 +1485,10 @@ Zotero.CSL.Global = new function() { for(var i in Zotero.CSL.Global._defaultTerms) { termArray[i] = new Object(); for(var j in Zotero.CSL.Global._defaultTerms[i]) { - if(typeof(Zotero.CSL.Global._defaultTerms[i]) == "object") { - termArray[i][j] = [Zotero.CSL.Global._defaultTerms[i][j][0], - Zotero.CSL.Global._defaultTerms[i][j][1]]; + if(typeof(Zotero.CSL.Global._defaultTerms[i][j]) == "object") { + termArray[i][j] = Zotero.CSL.Global._defaultTerms[i][j].concat(); } else { - termArray[i][j] = Zotero.CSL.Global_defaultTerms[i][j]; + termArray[i][j] = Zotero.CSL.Global._defaultTerms[i][j]; } } }