2 <!-- Application: Evergreen Staff Client -->
6 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
7 <?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
9 <window id="patron_barcode_entry_win"
10 onload="try { my_init(); } catch(E) { alert(E); }"
11 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
13 <script>mw.sdump('D_TRACE','Loading patron_barcode_entry.xul\n');</script>
19 var tb = document.getElementById('barcode_tb');
23 if (ev.keyCode == 13 || ev.keyCode == 77) {
33 var tb = document.getElementById('barcode_tb');
34 var barcode = tb.value;
35 var patron = mw.retrieve_patron_by_barcode( barcode );
36 if (mw.instanceOf(patron,mw.au)) {
37 mw.spawn_patron_display(
39 'replace_tab', 'main_tabbox', { 'patron' : patron }
43 var label = document.getElementById('status');
44 label.value = 'Patron not found.';
45 tb.select(); tb.focus();
52 <vbox flex="1" class="my_overflow">
53 <groupbox orient="vertical" flex="1">
54 <caption label="Enter Patron Barcode" />
56 <label value="Patron Barcode:" accesskey="B" control="barcode_tb"/>
57 <textbox id="barcode_tb" />
58 <button label="Submit" accesskey="S" oncommand="spawn();"/>