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"?>
20 <?xul-overlay href="/xul/server/patron/display_overlay.xul"?>
22 <window id="patron_display_win"
23 onload="try { my_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">
29 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
31 <scripts id="openils_util_scripts"/>
33 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
34 <script type="text/javascript" src="/xul/server/patron/display.js"/>
37 function $(id) { return document.getElementById(id); }
41 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
42 JSAN.errorLevel = "die"; // none, warn, or die
43 JSAN.addRepository('/xul/server/');
44 JSAN.use('util.error'); g.error = new util.error();
45 g.error.sdump('D_TRACE','my_init() for patron_display.xul');
47 JSAN.use('patron.display'); g.patron = new patron.display();
49 'barcode' : xul_param('barcode'),
50 'id' : xul_param('id'),
51 'query' : xul_param('query'),
52 'doit' : xul_param('doit'),
53 'show' : xul_param('show')
56 //document.documentElement.style.setProperty('font-size-adjust','1','important');
59 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/display.xul', E]);
60 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
65 function default_focus() {
69 var node = g.patron.right_deck.node.selectedPanel;
70 if (node && get_contentWindow(node) && typeof get_contentWindow(node).default_focus == 'function') {
71 get_contentWindow(node).default_focus();
73 var node = g.patron.left_deck.node.selectedPanel;
74 if (node && get_contentWindow(node) && typeof get_contentWindow(node).default_focus == 'function') {
75 get_contentWindow(node).default_focus();
79 g.error.sdump('D_ERROR','default_focus(): ' + js2JSON(E));
88 <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
90 <commandset id="patron_display_cmds">
91 <command id="cmd_patron_refresh" />
92 <command id="cmd_patron_checkout" />
93 <command id="cmd_patron_items" />
94 <command id="cmd_patron_holds" />
95 <command id="cmd_patron_bills" />
96 <command id="cmd_patron_edit" />
97 <command id="cmd_patron_info_notes" />
98 <command id="cmd_patron_info_triggered_events" />
99 <command id="cmd_patron_info_stats" />
100 <command id="cmd_patron_info_surveys" />
101 <command id="cmd_patron_info_acq_requests" />
102 <command id="cmd_patron_info_groups" />
103 <command id="cmd_patron_other" />
104 <command id="cmd_patron_alert" />
105 <command id="cmd_patron_reservation" />
106 <command id="cmd_patron_reservation_pickup" />
107 <command id="cmd_patron_reservation_return" />
108 <command id="cmd_patron_exit" />
109 <command id="cmd_patron_retrieve" />
110 <command id="cmd_patron_merge" />
111 <command id="cmd_patron_toggle_summary" />
112 <command id="cmd_patron_delete" />
113 <command id="cmd_search_form" />
114 <command id="cmd_verify_credentials" />
115 <command id="cmd_perm_editor" />
116 <command id="cmd_standing_penalties" />
119 <box id="patron_display_main" class="my_overflow" />