﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1854	XML mode import issues	ajlyon	ajlyon	"Running the MODS.js translator (new one from ticket #1825 or the old one) in Scaffold (latest Bitbucket) with Zotero Multilingual (but trunk is probably the same), I get:

{{{
16:32:42 Detect using MODS failed: 
         message => Zotero.getXML is not a function
         fileName => chrome://zotero/content/xpcom/translation/translate_firefox.js
         lineNumber => 133
         stack => detectImport()@chrome://zotero/content/xpcom/translation/translate_firefox.js:133
         @:0
}}}

This is easily fixed by manually inserting the Zotero.getXML(..) definition from translate.js:

{{{
Zotero.getXML = function() {
   var xml = Zotero._getXML();
   if(typeof xml == 'string') return new XML(xml);
 };
}}}

But then I get the error:

{{{
16:29:43 Translation using MODS failed: 
         message => reference to undefined XML name @type
         fileName => chrome://zotero/content/xpcom/translation/translate_firefox.js
         lineNumber => 867
         stack => doImport()@chrome://zotero/content/xpcom/translation/translate_firefox.js:867
         @:0
}}}

I'm not sure what's causing this one, but it's preventing me from using MODS.js. It is not the case that E4X is completely broken, since I can still use CTX.js, which also uses E4X, albeit in much simpler ways."	defect	closed	critical		translators	2.1	fixed		simon
