Revert "LP#1528647 Self-check only accepts user name value if regex"
authorChris Sharp <csharp@georgialibraries.org>
Sat, 4 Jun 2016 12:37:37 +0000 (08:37 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 10 Oct 2016 12:43:32 +0000 (08:43 -0400)
Terran reports this not working as expected.

This reverts commit 0eb3a73c2fba4f609c0dab015a843a550e03516e.

Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js

index 0b52b92..b8d0bc4 100644 (file)
@@ -332,12 +332,8 @@ SelfCheckManager.prototype.loadOrgSettings = function() {
             this.orgSettings[k] = settings[k].value;
     }
 
-    if(settings[SET_BARCODE_REGEX]) {
-        this.patronBarcodeRegex = new RegExp(settings[SET_BARCODE_REGEX].value)
-    } else {
-        this.patronBarcodeRegex = newRegExp(/^\d/); 
-        // this assumes barcodes start with digits
-    }
+    if(settings[SET_BARCODE_REGEX]) 
+        this.patronBarcodeRegex = new RegExp(settings[SET_BARCODE_REGEX].value);
 
     // Subtract the timeout warning interval from the configured timeout 
     // so that when taken together they add up to the configured amount.