From: erickson Date: Mon, 23 Nov 2009 14:10:21 +0000 (+0000) Subject: pull dojo into selfcheck since it relies on opac_utils.js. treat inactive patrons... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4a01723695c08e19f50b862fe74198ba7f57787f;p=evergreen%2Fpines.git pull dojo into selfcheck since it relies on opac_utils.js. treat inactive patrons as not-found git-svn-id: svn://svn.open-ils.org/ILS/trunk@15001 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/extras/selfcheck/selfcheck.js b/Open-ILS/web/opac/extras/selfcheck/selfcheck.js index 6549dbdc05..d8ab3de700 100644 --- a/Open-ILS/web/opac/extras/selfcheck/selfcheck.js +++ b/Open-ILS/web/opac/extras/selfcheck/selfcheck.js @@ -218,6 +218,13 @@ function selfckPatronLogin(barcode) { return alert(patron.textcode); } + + if(!isTrue(patron.active())) { + unHideMe($('selfck-patron-not-found')); + $('selfck-patron-login-input').select(); + return; + } + $('selfck-patron-login-input').value = ''; // reset the input hideMe($('selfck-patron-login-container')); unHideMe($('selfck-patron-checkout-container')); diff --git a/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml b/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml index 69c8761f3d..fe28d1df64 100644 --- a/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml +++ b/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml @@ -30,6 +30,8 @@ + +