www

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

commit 53a838c3d676d0ddc949a586cb930e63c4b19198
parent 8b51c3e06976fb70572bc0e9e19343c309d3da98
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 21 Aug 2011 21:24:26 +0000

Properly serialize page number to document


Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -1262,6 +1262,7 @@ Zotero.Integration.Session.prototype.reselectItem = function(exception) { * Generates a field from a citation object */ Zotero.Integration.Session.prototype.getCitationField = function(citation) { + Zotero.debug(citation); const saveProperties = ["custom", "unsorted", "formattedCitation", "plainCitation", "dontUpdate"]; const saveCitationItemKeys = ["locator", "label", "suppress-author", "author-only", "prefix", "suffix"]; @@ -1310,7 +1311,7 @@ Zotero.Integration.Session.prototype.getCitationField = function(citation) { // copy saveCitationItemKeys for(var i=0, n=saveCitationItemKeys.length; i<n; i++) { - if((value = serializeCitationItem[(key = saveCitationItemKeys[i])])) { + if((value = citationItem[(key = saveCitationItemKeys[i])])) { serializeCitationItem[key] = value; } }