Fix bug in Create Bibliography from Item w/Notes

This commit is contained in:
fbennett 2015-08-27 08:18:22 +09:00
parent 325635e8ec
commit 47ff4e79dc

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