for barcode not set up
This fix allows a patron to log into the self-check interface with either
a barcode or a user name.
Written by: Bob Wicksall <bwicksall@pls-net.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
this.orgSettings[k] = settings[k].value;
}
- if(settings[SET_BARCODE_REGEX])
+ if(settings[SET_BARCODE_REGEX]) {
this.patronBarcodeRegex = new RegExp(settings[SET_BARCODE_REGEX].value);
+ } else {
+ this.patronBarcodeRegex = new RegExp(/^\d/);
+ // this assumes barcodes start with digits
+ }
// Subtract the timeout warning interval from the configured timeout
// so that when taken together they add up to the configured amount.