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/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/global.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('User Scan for Advanced Edit'); } 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_REMOTE_BROWSER + '?url=' + window.escape(
87 + '?ses=' + window.escape( g.cgi.param('session') )
89 + '&barcode=' + window.escape( barcode )
92 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab == 'function') {
94 window.xulG.set_tab( loc, {}, { 'show_print_button' : true, } );
102 var err_msg = "!! This software has encountered an error. Please tell your friendly " +
103 "system administrator or software developer the following:\n" + E + '\n';
104 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
112 <vbox flex="1" class="my_overflow">
113 <groupbox orient="vertical" flex="1">
114 <caption label="Retrieve Patron" />
116 <label value="Barcode:" accesskey="B" control="barcode_tb"/>
117 <textbox id="barcode_tb" />
118 <button label="Submit" accesskey="S" oncommand="spawn();"/>