commit 2e4dc5e54872bda18b27bc8cdb27b64858c4be8b
parent af36412a117cfb844b6431f58eaeec4167d61147
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 4 Feb 2010 02:40:52 +0000
Fix JS strict warning from MODS detectImport()
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/repotime.txt b/repotime.txt
@@ -1 +1 @@
-2010-01-25 08:05:00
+2010-02-04 02:38:25
diff --git a/translators/MODS.js b/translators/MODS.js
@@ -8,7 +8,7 @@
"maxVersion":"",
"priority":50,
"inRepository":true,
- "lastUpdated":"2009-07-04 05:00:00"
+ "lastUpdated":"2010-02-04 02:38:25"
}
Zotero.addOption("exportNotes", true);
@@ -16,6 +16,9 @@ Zotero.configure("dataMode", "xml/e4x");
function detectImport() {
var name = Zotero.getXML().name();
+ if (!name) {
+ return false;
+ }
return name.uri == "http://www.loc.gov/mods/v3" && (name.localName == "modsCollection" || name.localName == "mods");
}