--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO config.settings_group (name, label) VALUES
+ ('vandelay', 'Vandelay');
+
+INSERT INTO config.org_unit_setting_type (name, grp, label, datatype, fm_class) VALUES
+ ('vandelay.default_match_set', 'vandelay', 'Vandelay: Default Record Match Set', 'link', 'vms');
+
+COMMIT;
var copyLocationCache = {};
var localeStrings;
+// org settings
+var orgSettings = {};
+const DEFAULT_MATCH_SET = 'vandelay.default_match_set';
+
/**
* Grab initial data
*/
}
);
+ orgSettings = fieldmapper.aou.fetchOrgSettingBatch(openils.User.user.ws_ou(), [
+ DEFAULT_MATCH_SET
+ ]);
+ for(k in orgSettings)
+ if(orgSettings[k])
+ orgSettings[k] = orgSettings[k].value;
+
vlAttrEditorInit();
vlExportInit();
}
type = (type.match(/bib/)) ? 'biblio' : 'authority';
vlUploadQueueMatchSet.store =
new dojo.data.ItemFileReadStore({data:vms.toStoreData(matchSets[type])});
+ // apply default match set
+ for (var i = 0; i < matchSets[type].length; i++) {
+ if (matchSets[type][i].id() == orgSettings[DEFAULT_MATCH_SET]) {
+ vlUploadQueueMatchSet.setValue(matchSets[type][i].id());
+ break;
+ }
+ }
}
function vlShowUploadForm() {