2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Patron Display -->
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"?>
10 <?xml-stylesheet href="/xul/server/skin/patron_display.css" type="text/css"?>
12 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
14 <!DOCTYPE window PUBLIC "" ""[
15 <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
22 <window id="patron_bill" title="&staff.patron.bill_check_info.title;"
23 orient="vertical" style="overflow: auto"
24 onload="try{info_init(); font_helper();}catch(E){alert(E);}"
25 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
27 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
29 <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
30 <scripts id="openils_util_scripts"/>
32 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
36 function $(id) { return document.getElementById(id); }
38 function info_init() {
39 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
40 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
41 JSAN.errorLevel = "die"; // none, warn, or die
42 JSAN.addRepository('/xul/server/');
43 JSAN.use('util.error'); g.error = new util.error();
44 g.error.sdump('D_TRACE','my_init() for patron_display.xul');
45 g.OpenILS = {}; JSAN.use('OpenILS.data'); g.OpenILS.data = new OpenILS.data();
46 g.OpenILS.data.init({'via':'stash'});
47 g.payment_blob = { 'cancelled' : true };
48 g.OpenILS.data.temp = js2JSON( g.payment_blob );
49 g.OpenILS.data.stash('temp');
51 document.getElementById('check_number').focus();
54 function info_finish() {
55 /* FIXME -- need unique temp space name */
56 delete( g.payment_blob.cancelled );
57 g.OpenILS.data.temp = js2JSON( g.payment_blob );
58 g.OpenILS.data.stash('temp');
64 <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties" />
67 <caption label="&staff.patron.bill_check_info.check_info.label;"/>
69 <columns> <column flex="0" /> <column flex="0" /> </columns>
72 <label value="&staff.patron.bill_check_info.check_number.value;"/>
73 <textbox id="check_number" onchange="g.payment_blob.check_number = event.target.value"/>
76 <label value="&staff.patron.bill_check_info.note.value;"/>
77 <textbox id="note" onchange="g.payment_blob.note = event.target.value" multiline="true"/>
83 <button label="&staff.patron.bill_check_info.cancel.label;" oncommand="window.close()" accesskey="&staff.patron.bill_check_info.cancel.accesskey;"/>
84 <button label="&staff.patron.bill_check_info.submit.label;" oncommand="info_finish(); window.close();" accesskey="&staff.patron.bill_check_info.submit.accesskey;"/>