[open-ils-commits] [GIT] Evergreen ILS branch rel_2_11 updated. 7dc4a09e8cb1f358f9a010ae8e0e4019693ee51b

Evergreen Git git at git.evergreen-ils.org
Sat Mar 4 07:17:40 EST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_11 has been updated
       via  7dc4a09e8cb1f358f9a010ae8e0e4019693ee51b (commit)
       via  495a640fd9762d2d263216ff50f242cb1023c237 (commit)
      from  5e5a396a2689caf2a0b8d5c44acbf96e76281bf4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7dc4a09e8cb1f358f9a010ae8e0e4019693ee51b
Author: Terran McCanna <tmccanna at georgialibraries.org>
Date:   Mon Jun 6 13:38:32 2016 -0400

    LP#1528647 Self-check only accepts user name value if regex for barcode
    not set up
    
    The original fix only worked if password was not required for self-check.
    This fix allows it to work when password is required as well.
    
    Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/web/js/dojo/openils/User.js b/Open-ILS/web/js/dojo/openils/User.js
index ef17bf8..93a1212 100644
--- a/Open-ILS/web/js/dojo/openils/User.js
+++ b/Open-ILS/web/js/dojo/openils/User.js
@@ -124,8 +124,12 @@ if(!dojo._hasResource["openils.User"]) {
             if (!args.passwd) args.passwd = _u.passwd;
             if (!args.agent) args.agent = _u.login_agent;
             if (!args.type) args.type = _u.type;
-
-            var initReq = OpenSRF.CachedClientSession('open-ils.auth').request('open-ils.auth.authenticate.init', args.username);
+            
+            if (args.username) {
+                var initReq = OpenSRF.CachedClientSession('open-ils.auth').request('open-ils.auth.authenticate.init', args.username);
+            } else {
+                var initReq = OpenSRF.CachedClientSession('open-ils.auth').request('open-ils.auth.authenticate.init', args.barcode);
+            }
     
             initReq.oncomplete = function(r) {
                 var seed = r.recv().content(); 

commit 495a640fd9762d2d263216ff50f242cb1023c237
Author: Bob Wicksall <bwicksall at pls-net.org>
Date:   Mon Jun 6 13:35:28 2016 -0400

    LP#1528647 Self-check only accepts user name value if regex
    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 at pls-net.org>
    
    Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js
index 3959fbc..9182e44 100644
--- a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js
+++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js
@@ -331,8 +331,12 @@ SelfCheckManager.prototype.loadOrgSettings = function() {
             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.

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/dojo/openils/User.js               |    8 ++++++--
 .../web/js/ui/default/circ/selfcheck/selfcheck.js  |    6 +++++-
 2 files changed, 11 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list