[open-ils-commits] [GIT] Evergreen ILS branch rel_2_10 updated. b969b551afc8253f97c3a85b1b7783e857f70dc8

Evergreen Git git at git.evergreen-ils.org
Sat Mar 4 07:18:42 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_10 has been updated
       via  b969b551afc8253f97c3a85b1b7783e857f70dc8 (commit)
       via  0d68ad7807620f6040b9dc5a644ad94a2e8c0ed2 (commit)
      from  5cd40451fab07c436957aac5cbc103630d8a2afe (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 b969b551afc8253f97c3a85b1b7783e857f70dc8
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 0d68ad7807620f6040b9dc5a644ad94a2e8c0ed2
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 03f9dfa..d9fcc6d 100644
--- a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js
+++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js
@@ -332,8 +332,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