pull dojo into selfcheck since it relies on opac_utils.js. treat inactive patrons...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 23 Nov 2009 14:10:21 +0000 (14:10 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 23 Nov 2009 14:10:21 +0000 (14:10 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15001 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/extras/selfcheck/selfcheck.js
Open-ILS/web/opac/extras/selfcheck/selfcheck.xml

index 6549dbd..d8ab3de 100644 (file)
@@ -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'));
index 69c8761..fe28d1d 100644 (file)
@@ -30,6 +30,8 @@
 <html xmlns='http://www.w3.org/1999/xhtml'>
 
     <head>
+       <script type="text/javascript" src='/js/dojo/dojo/dojo.js'></script>
+
         <script language='javascript' type='text/javascript' 
             src='<!--#echo var="OILS_OPAC_JS_HOST"-->/common/js/utils.js'></script>
            <script language='javascript' type='text/javascript'