]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/items.xul
e51f5dad85168861039b791bf779e699674388f5
[Evergreen.git] / Open-ILS / xul / staff_client / server / patron / items.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/open_ils_staff_client.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/open_ils_staff_client.css" type="text/css"?>
10 <?xml-stylesheet href="/xul/server/skin/circ.css" type="text/css"?>
11
12 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!-- LOCALIZATION -->
14 <!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
15
16 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
17 <!-- OVERLAYS -->
18 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
19 <?xul-overlay href="/xul/server/patron/items_overlay.xul"?>
20
21 <window id="items_win" 
22         onload="my_init()"
23         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
24
25         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
26         <!-- BEHAVIOR -->
27         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
28         <scripts id="openils_util_scripts"/>
29
30         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
31         <script>
32         <![CDATA[
33                 function my_init() {
34                         try {
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('/xul/server/');
39                                 JSAN.use('util.error'); g.error = new util.error();
40                                 g.error.sdump('D_TRACE','my_init() for items.xul');
41
42                                 g.cgi = new CGI();
43
44                                 JSAN.use('patron.items'); g.items = new patron.items();
45                                 g.items.init( 
46                                         { 
47                                                 'patron_id' : g.cgi.param('patron_id'), 
48                                                 'session' : g.cgi.param('session') 
49                                         } 
50                                 );
51                                 
52                                 window.refresh = function () { g.items.list.clear(); g.items.retrieve(); }
53         
54                         } catch(E) {
55                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
56                                         "system administrator or software developer the following:\n" + E + '\n';
57                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
58                                 alert(err_msg);
59                         }
60                 }
61
62         ]]>
63         </script>
64
65         <commandset id="items_cmds">
66                 <command id="cmd_items_print" />
67                 <command id="cmd_items_renew" />
68                 <command id="cmd_items_claimed_returned" />
69                 <command id="cmd_items_checkin" />
70                 <command id="cmd_items_edit" />
71                 <command id="cmd_items_mark_missing" />
72                 <command id="cmd_show_catalog" />
73         </commandset>
74
75         <box id="items_main" />
76
77 </window>
78