]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/holds.xul
7ec7c4e4419ee15a4b64130ede002450b98d9c7f
[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>
34         <![CDATA[
35                 function $(id) { return document.getElementById(id); }
36                 
37                 function my_init() {
38                         try {
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 holds.xul');
45
46                                 JSAN.use('patron.holds'); g.holds = new patron.holds();
47                                 g.holds.init( 
48                                         { 
49                                                 'patron_id' : xul_param('patron_id'), 
50                                                 'docid' : xul_param('docid'),
51                                                 'shelf' : xul_param('shelf'),
52                                                 'pull' : xul_param('pull'),
53                                         } 
54                                 );
55                                 window.refresh = function(p) { g.holds.list.clear(); g.holds.retrieve(p); }
56
57                                 default_focus();
58
59                         } catch(E) {
60                                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/holds.xul', E]);
61                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
62                                 alert(err_msg);
63                         }
64                 }
65
66                 function default_focus() { try { document.getElementById('holds_print').focus(); } catch(E) { } }
67
68         ]]>
69         </script>
70
71         <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
72         <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale' -->/cat.properties"/>
73         <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
74
75         <commandset id="holds_cmds">
76                 <command id="sel_mark_items_damaged" disabled="true"/>
77                 <command id="sel_mark_items_missing" disabled="true"/>
78                 <command id="sel_copy_details" disabled="true"/>
79                 <command id="sel_patron" disabled="true"/>
80                 <command id="sel_clip" />
81         <command id="cmd_csv_to_clipboard" />
82                 <command id="cmd_csv_to_printer" />
83                 <command id="cmd_csv_to_file" />
84
85                 <command id="cmd_holds_print" />
86                 <command id="cmd_show_catalog" />
87                 <command id="cmd_retrieve_patron" />
88                 <command id="cmd_show_notifications" />
89                 <command id="cmd_holds_edit_pickup_lib" />
90                 <command id="cmd_holds_edit_phone_notify" />
91                 <command id="cmd_holds_edit_email_notify" />
92                 <command id="cmd_holds_edit_thaw_date" />
93                 <command id="cmd_holds_activate" />
94                 <command id="cmd_holds_suspend" />
95                 <command id="cmd_holds_edit_selection_depth" />
96                 <command id="cmd_broken" disabled="true" hidden="true"/>
97                 <command id="cmd_holds_retarget"/>
98                 <command id="cmd_holds_cancel" />
99                 <command id="save_columns" />
100         </commandset>
101
102         <popupset id="holds_popupset"/>
103
104         <box id="holds_main" />
105
106 </window>
107