From 4037193f92c77ca1c6ef53c4e937a9f30f0d9414 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 1 Aug 2010 23:46:45 +0000 Subject: [PATCH] don't use deprecated Zotero.Utilities.isInt() function --- translators/MODS.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/translators/MODS.js b/translators/MODS.js index d9317bc87..a6c6c4980 100644 --- a/translators/MODS.js +++ b/translators/MODS.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":50, "inRepository":true, - "lastUpdated":"2010-07-26 03:29:21" + "lastUpdated":"2010-08-01 23:45:59" } Zotero.addOption("exportNotes", true); @@ -135,7 +135,7 @@ function doExport() { // XML tag detail; object field volume if(item.volume) { - if(Zotero.Utilities.isInt(item.volume)) { + if(parseInt(item.volume) == item.volume) { part += {item.volume}; } else { part += {item.volume}; @@ -144,7 +144,7 @@ function doExport() { // XML tag detail; object field number if(item.issue) { - if(Zotero.Utilities.isInt(item.issue)) { + if(parseInt(item.issue) == item.issue) { part += {item.issue}; } else { part += {item.issue}; @@ -153,7 +153,7 @@ function doExport() { // XML tag detail; object field section if(item.section) { - if(Zotero.Utilities.isInt(item.section)) { + if(parseInt(item.section) == item.section) { part += {item.section}; } else { part += {item.section};