From 4a01723695c08e19f50b862fe74198ba7f57787f Mon Sep 17 00:00:00 2001
From: erickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Mon, 23 Nov 2009 14:10:21 +0000
Subject: [PATCH] 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
---
 Open-ILS/web/opac/extras/selfcheck/selfcheck.js  | 7 +++++++
 Open-ILS/web/opac/extras/selfcheck/selfcheck.xml | 2 ++
 2 files changed, 9 insertions(+)

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 @@
 <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' 
-- 
2.11.0