www

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

commit 79d3122f58b9f225bb8d30227a22d6799aad6668
parent eb52e48913d03e544ff3eb3ac75cb8675c83f5a9
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 29 May 2010 23:17:50 +0000

Slightly modified version of Frank's BibTeX patch for "January" issue


Diffstat:
Mtranslators/BibTeX.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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) {