From 8b8eb3a5c47b7aa5605fa05b43d0d7e4e2d34043 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 3 Jun 2008 18:27:44 +0000 Subject: [PATCH] Output full content of notes in bibliography-mode Quick Copy if only copying notes; otherwise, exclude notes from generated bibliography --- chrome/content/zotero/xpcom/quickCopy.js | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js index 3a5ae1db1..74cb0f01a 100644 --- a/chrome/content/zotero/xpcom/quickCopy.js +++ b/chrome/content/zotero/xpcom/quickCopy.js @@ -145,6 +145,45 @@ Zotero.QuickCopy = new function() { return true; } else if (mode == 'bibliography') { + // Move notes to separate array + var allNotes = true; + var notes = []; + for (var i=0; i; + var firstp = true; + for (var i=0; i{content[i]}

; + p.@style = 'white-space: pre-wrap'; + html.p += p; + } + + html = html.toXMLString(); + + var content = { + text: contentType == "html" ? html : content.join('\n\n'), + html: html + }; + + return content; + } + var csl = Zotero.Cite.getStyle(format); var itemSet = csl.createItemSet(items); var bibliography = {