2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Patron Display -->
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/patron_display.css" type="text/css"?>
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!DOCTYPE window PUBLIC "" ""[
14 <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21 <window id="patron_bill" title="&staff.patron.bill_check_info.title;"
22 orient="vertical" style="overflow: auto" oils_persist="height width sizemode"
23 onload="try{info_init(); font_helper(); persist_helper(); }catch(E){alert(E);}"
24 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
26 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
28 <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
29 <scripts id="openils_util_scripts"/>
31 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
35 function $(id) { return document.getElementById(id); }
37 function info_init() {
38 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
39 JSAN.errorLevel = "die"; // none, warn, or die
40 JSAN.addRepository('/xul/server/');
41 JSAN.use('util.error'); g.error = new util.error();
42 g.error.sdump('D_TRACE','my_init() for patron_display.xul');
43 g.OpenILS = {}; JSAN.use('OpenILS.data'); g.OpenILS.data = new OpenILS.data();
44 g.OpenILS.data.init({'via':'stash'});
45 g.payment_blob = { 'cancelled' : true };
46 g.OpenILS.data.temp = js2JSON( g.payment_blob );
47 g.OpenILS.data.stash('temp');
49 document.getElementById('check_number').focus();
52 function info_finish() {
53 /* FIXME -- need unique temp space name */
54 delete( g.payment_blob.cancelled );
55 g.OpenILS.data.temp = js2JSON( g.payment_blob );
56 g.OpenILS.data.stash('temp');
62 <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties" />
65 <caption label="&staff.patron.bill_check_info.check_info.label;"/>
67 <columns> <column flex="0" /> <column flex="0" /> </columns>
70 <label value="&staff.patron.bill_check_info.check_number.value;"/>
71 <textbox id="check_number" onchange="g.payment_blob.check_number = event.target.value" context="clipboard"/>
74 <label value="&staff.patron.bill_check_info.note.value;"/>
75 <textbox id="note" onchange="g.payment_blob.note = event.target.value" multiline="true" context="clipboard"/>
81 <button label="&staff.patron.bill_check_info.cancel.label;" oncommand="window.close()" accesskey="&staff.patron.bill_check_info.cancel.accesskey;"/>
82 <button label="&staff.patron.bill_check_info.submit.label;" oncommand="info_finish(); window.close();" accesskey="&staff.patron.bill_check_info.submit.accesskey;"/>