From 59817af546ea0554a1a455553245ebee1532ca40 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 6 Jul 2010 07:55:07 +0000 Subject: [PATCH] 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 --- chrome/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 index 385ab6838c..c04a31248e 100644 --- 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 = [];