www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit f74440902bea90bfa7acf550012607bcd28066b9
parent 81fcc72aabfeec308515bb45e55e5517a5ee1ba1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 14 Mar 2011 21:01:25 +0000

Switch to Zotero.Cite.makeFormattedBibliographyOrCitationList() from Zotero.Cite.makeFormattedBibliography() for Quick Copy bib copy, because that's what clipboard copying uses. Fixes 'false' from Bluebook style with makeFormattedBibliography()


Diffstat:
Mchrome/content/zotero/xpcom/quickCopy.js | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js @@ -385,17 +385,17 @@ Zotero.QuickCopy = new function() { return content; } - var csl = Zotero.Styles.get(format).csl; - csl.updateItems([item.id for each(item in items)]); - // Copy citations if shift key pressed if (modified) { + var csl = Zotero.Styles.get(format).csl; + csl.updateItems([item.id for each(item in items)]); var citation = {citationItems:[{id:item.id} for each(item in items)], properties:{}}; var html = csl.previewCitationCluster(citation, [], [], "html"); var text = csl.previewCitationCluster(citation, [], [], "text"); } else { - var html = Zotero.Cite.makeFormattedBibliography(csl, "html"); - var text = Zotero.Cite.makeFormattedBibliography(csl, "text"); + var style = Zotero.Styles.get(format); + var html = Zotero.Cite.makeFormattedBibliographyOrCitationList(style, items, "html"); + var text = Zotero.Cite.makeFormattedBibliographyOrCitationList(style, items, "text"); } return {text:(contentType == "html" ? html : text), html:html};