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>
agent : 'opac'
};
- 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;