From 79d3122f58b9f225bb8d30227a22d6799aad6668 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 29 May 2010 23:17:50 +0000 Subject: [PATCH] Slightly modified version of Frank's BibTeX patch for "January" issue --- translators/BibTeX.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translators/BibTeX.js b/translators/BibTeX.js index 27754304c..b3c7b7382 100644 --- a/translators/BibTeX.js +++ b/translators/BibTeX.js @@ -1818,7 +1818,7 @@ function doImport() { // some fields are, in fact, macros. If that is the case then we should not put the // data in the braces as it will cause the macros to not expand properly function writeField(field, value, isMacro) { - if(!value) return; + if(!value && typeof value != "number") return; value = value + ""; // convert integers to strings Zotero.write(",\n\t"+field+" = "); if(!isMacro) Zotero.write("{"); @@ -2007,7 +2007,7 @@ function doExport() { if(item.date) { var date = Zotero.Utilities.strToDate(item.date); // need to use non-localized abbreviation - if(date.month) { + if(typeof date.month == "number") { writeField("month", months[date.month], true); } if(date.year) {