Addresses #1691, Update Zotero.QuickCopy.getContentFromItems() for new citation API
Frank's latest patch, but drag-and-drop is still broken for me on OS X. Need to see if this is just my working copy.
This commit is contained in:
parent
970c317095
commit
77ecfce0fe
|
@ -396,18 +396,8 @@ Zotero.QuickCopy = new function() {
|
||||||
// Copy citations if shift key pressed
|
// Copy citations if shift key pressed
|
||||||
if (modified) {
|
if (modified) {
|
||||||
var citation = {citationItems:[{id:item.id} for each(item in items)], properties:{}};
|
var citation = {citationItems:[{id:item.id} for each(item in items)], properties:{}};
|
||||||
this.session.style.setOutputFormat("html");
|
var html = csl.previewCitationCluster(citation, [], [], "html");
|
||||||
var html = csl.processCitationCluster(
|
var text = csl.previewCitationCluster(citation, [], [], "text");
|
||||||
citation,
|
|
||||||
[], [],
|
|
||||||
CSL.ASSUME_ALL_ITEMS_REGISTERED
|
|
||||||
)[1][0][1];
|
|
||||||
this.session.style.setOutputFormat("text");
|
|
||||||
var text = csl.processCitationCluster(
|
|
||||||
citation,
|
|
||||||
[], [],
|
|
||||||
CSL.ASSUME_ALL_ITEMS_REGISTERED
|
|
||||||
)[1][0][1];
|
|
||||||
} else {
|
} else {
|
||||||
var html = Zotero.Cite.makeFormattedBibliography(csl, "html");
|
var html = Zotero.Cite.makeFormattedBibliography(csl, "html");
|
||||||
var text = Zotero.Cite.makeFormattedBibliography(csl, "text");
|
var text = Zotero.Cite.makeFormattedBibliography(csl, "text");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user