commit 855d0b7fba4755dea1b0becc7543457ef4567630
parent 127cb259c12d13e9f5f3d3cabf5d41e569b0e207
Author: Frank Bennett <biercenator@gmail.com>
Date: Fri, 19 Apr 2013 10:55:11 +0900
Use rebuildProcessorState() in RTF Scan. Fixes AGM SIG-CHI Proceedings (numeric style, bib sorted by author), and possibly others.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/rtfScan.js b/chrome/content/zotero/rtfScan.js
@@ -531,11 +531,14 @@ var Zotero_RTFScan = new function() {
Zotero.debug(itemIDs);
style.updateItems(itemIDs);
+ // prepare the list of rendered citations
+ var citationResults = style.rebuildProcessorState(cslCitations, "rtf");
+
// format citations
var contentArray = [];
var lastEnd = 0;
for(var i=0; i<citations.length; i++) {
- var citation = style.appendCitationCluster(cslCitations[i], true)[0][1];
+ var citation = citationResults[i][2];
Zotero.debug("Formatted "+citation);
// if using notes, we might have to move the note after the punctuation