Ensure fm_IDL.xml is loaded only when IDL2js has not been loaded.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
window._preload_fieldmapper_IDL = null;
}
- if(!fieldmapper.IDL.fmclasses || !fieldmapper.IDL.fmclasses.length || (classlist && classlist.length)) {
+ if(!fieldmapper.IDL.fmclasses ||
+ !Object.keys(fieldmapper.IDL.fmclasses).length ||
+ (classlist && classlist.length)) {
+
var idl_url = this._URL_PATH;
if (classlist.length && (classlist.length > 1 || classlist[0] != '*')) {