Instead of fetching the opac.barcode_regex setting based on
globalOrgTree.id(), use the value of getLocation().
This is useful in situations where a system within a consortium
uses a different barcode regex than the rest of the consortium.
Signed-off-by: Jeff Godin <jgodin@tadl.org>
org : getOrigLocation()
};
- r = fetchOrgSettingDefault(globalOrgTree.id(), 'opac.barcode_regex');
+ r = fetchOrgSettingDefault(getLocation(), 'opac.barcode_regex');
if(r) REGEX_BARCODE = new RegExp(r);
if( uname.match(REGEX_BARCODE) ) args.barcode = uname;
return;
}
- r = fetchOrgSettingDefault(globalOrgTree.id(), 'opac.barcode_regex');
+ r = fetchOrgSettingDefault(getLocation(), 'opac.barcode_regex');
if(r) REGEX_BARCODE = new RegExp(r);
if(username.match(REGEX_BARCODE)) {