Closes #1691, Update Zotero.QuickCopy.getContentFromItems() for new citation API
Thanks to Frank for the patch
This commit is contained in:
parent
953fa4a660
commit
37e1245aaf
1 changed files with 10 additions and 2 deletions
|
@ -397,9 +397,17 @@ Zotero.QuickCopy = new function() {
|
|||
if (modified) {
|
||||
var citation = {citationItems:[{id:item.id} for each(item in items)], properties:{}};
|
||||
this.session.style.setOutputFormat("html");
|
||||
var html = csl.appendCitationCluster(citation, true)[0][1];
|
||||
var html = csl.processCitationCluster(
|
||||
citation,
|
||||
[], [],
|
||||
CSL.ASSUME_ALL_ITEMS_REGISTERED
|
||||
)[1][0][1];
|
||||
this.session.style.setOutputFormat("text");
|
||||
var text = csl.appendCitationCluster(citation, true)[0][1];
|
||||
var text = csl.processCitationCluster(
|
||||
citation,
|
||||
[], [],
|
||||
CSL.ASSUME_ALL_ITEMS_REGISTERED
|
||||
)[1][0][1];
|
||||
} else {
|
||||
var html = Zotero.Cite.makeFormattedBibliography(csl, "html");
|
||||
var text = Zotero.Cite.makeFormattedBibliography(csl, "text");
|
||||
|
|
Loading…
Add table
Reference in a new issue