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/open_ils_staff_client.css" type="text/css"?>
10 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
14 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
16 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay.xul"?>
18 <window id="util_browser_win"
20 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
22 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
24 <script type="text/javascript">
25 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
26 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
28 <scripts id="openils_util_scripts"/>
30 <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
35 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
36 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
37 JSAN.errorLevel = "die"; // none, warn, or die
38 JSAN.addRepository('..');
39 JSAN.use('util.error'); g.error = new util.error();
40 g.error.sdump('D_TRACE','my_init() for util_browser.xul');
43 var name = g.cgi.param('name') || 'Browser';
44 var session = g.cgi.param('session');
45 var url; try { url = g.cgi.param('url') || xulG.url } catch(E) { dump(E + '\n'); };
46 if (!url) url = urls.browser;
48 JSAN.use('util.browser'); g.browser = new util.browser();
57 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
58 try { window.xulG.set_tab_name(name); } catch(E) { alert(E); }
60 if (typeof window.xulG && window.xulG.show_nav_buttons) {
61 document.getElementById('back').hidden = false;
62 document.getElementById('forward').hidden = false;
64 if (typeof window.xulG && window.xulG.show_print_button) {
65 document.getElementById('browser_print').hidden = false;
69 var err_msg = "!! This software has encountered an error. Please tell your friendly " +
70 "system administrator or software developer the following:\n" + E + '\n';
71 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
79 <commandset id="util_browser_cmds">
80 <command id="cmd_broken" />
81 <command id="cmd_print" />
82 <command id="cmd_back" />
83 <command id="cmd_forward" />
88 <button id="back" label="Go Back" command="cmd_back" accesskey="b" disabled="true" hidden="true"/>
89 <button id="forward" label="Go Forward" command="cmd_forward" accesskey="d" disabled="true" hidden="true"/>
91 <button id="browser_print" label="Print Page" command="cmd_print" hidden="true"/>
93 <browser id="browser_browser" flex="1" type="content"/>