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

Fix bug in Create Bibliography from Item w/Notes
This commit is contained in:
Dan Stillman 2015-09-13 23:26:41 -04:00
commit 2a9119801c

View file

@ -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") {