www

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

commit 59817af546ea0554a1a455553245ebee1532ca40
parent 10cbc0ceeb088313175032df11928b82cc44c4f4
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue,  6 Jul 2010 07:55:07 +0000

references #1691, Update Zotero.QuickCopy.getContentFromItems() for new citation API
put a string in date.literal, instead of the whole date object, when passing to citeproc-js


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

diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js @@ -177,7 +177,7 @@ Zotero.Cite.System.retrieveItem = function(item){ date = Zotero.Date.strToDate(date); if(date.part && !date.month) { // if there's a part but no month, interpret literally - cslItem[variable] = {"literal": date}; + cslItem[variable] = {"literal": date.part}; } else { // otherwise, use date-parts var dateParts = [];