2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Retrieve Patron By Barcode -->
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/open_ils_staff_client.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/open_ils_staff_client.css" type="text/css"?>
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
15 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
17 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
19 <window id="patron_barcode_entry_win"
21 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
23 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
25 <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
26 <scripts id="openils_util_scripts"/>
28 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
33 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
34 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
35 JSAN.errorLevel = "die"; // none, warn, or die
36 JSAN.addRepository('/xul/server/');
37 JSAN.use('util.error'); g.error = new util.error();
38 g.error.sdump('D_TRACE','my_init() for patron/barcode_entry.xul');
41 var session = g.cgi.param('session');
43 g.error.sdump('D_ERROR','session = ' + session + '\n'
44 + 'g.cgi._keys = ' + g.cgi._keys + '\n'
45 + 'g.cgi.param("session") = ' + g.cgi.param('session') + '\n'
46 + 'location = ' + location + '\n'
47 + 'location.href = ' + location.href + '\n'
49 alert('pause. session is ' + session );
52 var tb = document.getElementById('barcode_tb');
56 if (ev.keyCode == 13 || ev.keyCode == 77) {
68 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
69 try { window.xulG.set_tab_name('Patron Scan'); } catch(E) { alert(E); }
73 var err_msg = "!! This software has encountered an error. Please tell your friendly " +
74 "system administrator or software developer the following:\n" + E + '\n';
75 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
82 var tb = document.getElementById('barcode_tb');
83 var barcode = tb.value;
85 var loc = urls.XUL_PATRON_DISPLAY + '?session=' +
86 window.escape(g.cgi.param('session')) + '&barcode=' + window.escape(barcode);
88 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab == 'function') {
90 window.xulG.set_tab( loc );
96 var err_msg = "!! This software has encountered an error. Please tell your friendly " +
97 "system administrator or software developer the following:\n" + E + '\n';
98 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
106 <vbox flex="1" class="my_overflow">
107 <groupbox orient="vertical" flex="1">
108 <caption label="Retrieve Patron" />
110 <label value="Barcode:" accesskey="B" control="barcode_tb"/>
111 <textbox id="barcode_tb" />
112 <button label="Submit" accesskey="S" oncommand="spawn();"/>