Fix JS strict warning from MODS detectImport()
This commit is contained in:
parent
af36412a11
commit
2e4dc5e548
|
@ -1 +1 @@
|
|||
2010-01-25 08:05:00
|
||||
2010-02-04 02:38:25
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user