Update Quick Copy to new Cite API

This commit is contained in:
Dan Stillman 2007-08-14 06:47:45 +00:00
parent 27041dffb2
commit c548398dfa

View File

@ -126,11 +126,10 @@ Zotero.QuickCopy = new function() {
} }
else if (mode == 'bibliography') { else if (mode == 'bibliography') {
var csl = Zotero.Cite.getStyle(format); var csl = Zotero.Cite.getStyle(format);
Zotero.debug(items); var itemSet = csl.generateItemSet(items);
csl.preprocessItems(items);
var bibliography = { var bibliography = {
text: csl.createBibliography(items, "Text"), text: csl.createBibliography(itemSet, "Text"),
html: csl.createBibliography(items, "HTML") html: csl.createBibliography(itemSet, "HTML")
}; };
return bibliography; return bibliography;
} }