From 855d0b7fba4755dea1b0becc7543457ef4567630 Mon Sep 17 00:00:00 2001 From: Frank Bennett Date: Fri, 19 Apr 2013 10:55:11 +0900 Subject: [PATCH 1/2] Use rebuildProcessorState() in RTF Scan. Fixes AGM SIG-CHI Proceedings (numeric style, bib sorted by author), and possibly others. --- chrome/content/zotero/rtfScan.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/rtfScan.js b/chrome/content/zotero/rtfScan.js index e00f037c9f..fdcbf5911c 100644 --- 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 Date: Fri, 19 Apr 2013 11:13:49 +0900 Subject: [PATCH 2/2] Remove updateItems() --- chrome/content/zotero/rtfScan.js | 1 - 1 file changed, 1 deletion(-) diff --git a/chrome/content/zotero/rtfScan.js b/chrome/content/zotero/rtfScan.js index fdcbf5911c..bf4dc11cea 100644 --- a/chrome/content/zotero/rtfScan.js +++ b/chrome/content/zotero/rtfScan.js @@ -529,7 +529,6 @@ var Zotero_RTFScan = new function() { itemIDs = [itemID for(itemID in itemIDs)]; Zotero.debug(itemIDs); - style.updateItems(itemIDs); // prepare the list of rendered citations var citationResults = style.rebuildProcessorState(cslCitations, "rtf");