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
This commit is contained in:
Simon Kornblith 2010-07-06 07:55:07 +00:00
parent 10cbc0ceeb
commit 59817af546

View file

@ -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 = [];