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"?>
21 <?xul-overlay href="/xul/server/patron/display_horiz_overlay.xul"?>
23 <window id="patron_display_win"
24 onload="try { my_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">
30 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
32 <scripts id="openils_util_scripts"/>
34 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
37 function $(id) { return document.getElementById(id); }
41 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
42 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
43 JSAN.errorLevel = "die"; // none, warn, or die
44 JSAN.addRepository('/xul/server/');
45 JSAN.use('util.error'); g.error = new util.error();
46 g.error.sdump('D_TRACE','my_init() for patron_display.xul');
48 JSAN.use('patron.display'); g.patron = new patron.display();
50 'barcode' : xul_param('barcode'),
51 'id' : xul_param('id'),
52 'query' : xul_param('query'),
53 'doit' : xul_param('doit')
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 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
70 var node = g.patron.right_deck.node.selectedPanel;
71 if (node && get_contentWindow(node) && typeof get_contentWindow(node).default_focus == 'function') {
72 get_contentWindow(node).default_focus();
74 var node = g.patron.left_deck.node.selectedPanel;
75 if (node && get_contentWindow(node) && typeof get_contentWindow(node).default_focus == 'function') {
76 get_contentWindow(node).default_focus();
80 g.error.sdump('D_ERROR','default_focus(): ' + js2JSON(E));
89 <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
91 <commandset id="patron_display_cmds">
92 <command id="cmd_patron_refresh" />
93 <command id="cmd_patron_checkout" />
94 <command id="cmd_patron_items" />
95 <command id="cmd_patron_holds" />
96 <command id="cmd_patron_bills" />
97 <command id="cmd_patron_edit" />
98 <command id="cmd_patron_info_notes" />
99 <command id="cmd_patron_info_stats" />
100 <command id="cmd_patron_info_surveys" />
101 <command id="cmd_patron_info_groups" />
102 <command id="cmd_patron_other" />
103 <command id="cmd_patron_alert" />
104 <command id="cmd_patron_exit" />
105 <command id="cmd_patron_retrieve" />
106 <command id="cmd_patron_merge" />
107 <command id="cmd_search_form" />
108 <command id="cmd_verify_credentials" />
109 <command id="cmd_perm_editor" />
110 <command id="cmd_standing_penalties" />
113 <box id="patron_display_main" class="my_overflow" />