Ticket #1691: quick-copy-fix2.patch
| File quick-copy-fix2.patch, 1.0 KB (added by fbennett, 6 years ago) |
|---|
-
chrome/content/zotero/xpcom/quickCopy.js
396 396 // Copy citations if shift key pressed 397 397 if (modified) { 398 398 var citation = {citationItems:[{id:item.id} for each(item in items)], properties:{}}; 399 this.session.style.setOutputFormat("html"); 400 var html = csl.processCitationCluster( 401 citation, 402 [], [], 403 CSL.ASSUME_ALL_ITEMS_REGISTERED 404 )[1][0][1]; 405 this.session.style.setOutputFormat("text"); 406 var text = csl.processCitationCluster( 407 citation, 408 [], [], 409 CSL.ASSUME_ALL_ITEMS_REGISTERED 410 )[1][0][1]; 399 var html = csl.previewCitationCluster(citation, [], [], "html"); 400 var text = csl.previewCitationCluster(citation, [], [], "text"); 411 401 } else { 412 402 var html = Zotero.Cite.makeFormattedBibliography(csl, "html"); 413 403 var text = Zotero.Cite.makeFormattedBibliography(csl, "text");