]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/holds.xul
pass the patron barcode into the opac when embedded in the patron display, and use...
[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                 <command id="sel_mark_items_damaged" disabled="true"/>
80                 <command id="sel_mark_items_missing" disabled="true"/>
81                 <command id="sel_copy_details" disabled="true"/>
82                 <command id="sel_patron" disabled="true"/>
83                 <command id="sel_clip" />
84         <command id="cmd_csv_to_clipboard" />
85                 <command id="cmd_csv_to_printer" />
86                 <command id="cmd_csv_to_file" />
87
88                 <command id="cmd_holds_print" />
89                 <command id="cmd_show_catalog" />
90                 <command id="cmd_retrieve_patron" />
91                 <command id="cmd_show_notifications" />
92                 <command id="cmd_holds_edit_pickup_lib" />
93                 <command id="cmd_holds_edit_phone_notify" />
94                 <command id="cmd_holds_edit_email_notify" />
95                 <command id="cmd_holds_edit_thaw_date" />
96                 <command id="cmd_holds_edit_expire_time" />
97                 <command id="cmd_holds_activate" />
98                 <command id="cmd_holds_suspend" />
99                 <command id="cmd_holds_edit_selection_depth" />
100                 <command id="cmd_broken" disabled="true" hidden="true"/>
101                 <command id="cmd_holds_retarget"/>
102                 <command id="cmd_holds_cancel" />
103                 <command id="cmd_search_opac" />
104                 <command id="save_columns" />
105         </commandset>
106
107         <popupset id="holds_popupset"/>
108
109         <box id="holds_main" />
110
111 </window>
112