www

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

commit 2a9119801c79e152c0cf94fbdc37f0c682d3528e
parent d3c46899735d00e4f9cee43fd1af566add5c59d8
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 13 Sep 2015 23:26:41 -0400

Merge pull request #834 from Juris-M/z4.0-bib-export-fix

Fix bug in Create Bibliography from Item w/Notes
Diffstat:
Mchrome/content/zotero/xpcom/cite.js | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js @@ -81,8 +81,15 @@ Zotero.Cite = { } var styleClass = cslEngine.opt.class; - var citations = [cslEngine.appendCitationCluster({"citationItems":[{"id":item.id}], "properties":{}}, true)[0][1] - for each(item in items)]; + var citations=[]; + for (var i=0, ilen=items.length; i<ilen; i++) { + var item = items[i]; + var outList = cslEngine.appendCitationCluster({"citationItems":[{"id":item.id}], "properties":{}}, true); + for (var j=0, jlen=outList.length; j<jlen; j++) { + var citationPos = outList[j][0]; + citations[citationPos] = outList[j][1]; + } + } if(styleClass == "note") { if(format == "html") { @@ -566,4 +573,4 @@ Zotero.Cite.System.prototype = { converterStream.close(); return str.value; } -}; -\ No newline at end of file +};