]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/holds.xul
swapped commandset from holds.xul to holds_overlay.xul and the commandset call from...
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / patron / holds.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Patron Display -->
4
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
6 <!-- STYLESHEETS -->
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/circ.css" type="text/css"?>
11
12 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!-- LOCALIZATION -->
14 <!DOCTYPE window PUBLIC "" ""[
15         <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
16 ]>
17
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <!-- OVERLAYS -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21 <?xul-overlay href="/xul/server/patron/holds_overlay.xul"?>
22
23 <window id="holds_win" 
24         onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
25         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
26
27         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
28         <!-- BEHAVIOR -->
29         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
30         <scripts id="openils_util_scripts"/>
31
32         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
33         <script type="text/javascript" src="/xul/server/util/network.js"/>
34         <script type="text/javascript" src="/xul/server/patron/holds.js"/>
35         <script>
36         <![CDATA[
37                 function $(id) { return document.getElementById(id); }
38                 
39                 function my_init() {
40                         try {
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 holds.xul');
47
48                                 JSAN.use('patron.holds'); g.holds = new patron.holds();
49                                 g.holds.init( 
50                                         { 
51                                                 'patron_id' : xul_param('patron_id'), 
52                                                 'patron_barcode' : xul_param('patron_barcode'), 
53                                                 'docid' : xul_param('docid'),
54                                                 'shelf' : xul_param('shelf'),
55                                                 'pull' : xul_param('pull'),
56                                         } 
57                                 );
58                                 window.refresh = function(p) { g.holds.list.clear(); g.holds.retrieve(p); }
59
60                                 default_focus();
61
62                         } catch(E) {
63                                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/holds.xul', E]);
64                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
65                                 alert(err_msg);
66                         }
67                 }
68
69                 function default_focus() { try { document.getElementById('holds_print').focus(); } catch(E) { } }
70
71         ]]>
72         </script>
73
74         <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
75         <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale' -->/cat.properties"/>
76         <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale' -->/patron.properties"/>
77
78         <commandset id="holds_cmds" />
79
80         <popupset id="holds_popupset"/>
81
82         <box id="holds_main" />
83
84 </window>
85