]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/items.xul
LP2042879 Shelving Location Groups Admin accessibility
[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="/xul/server/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/circ.css" type="text/css"?>
10
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!-- LOCALIZATION -->
13 <!DOCTYPE window PUBLIC "" ""[
14     <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
15 ]>
16
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
18 <!-- OVERLAYS -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
20 <?xul-overlay href="/xul/server/patron/items_overlay.xul"?>
21
22 <window id="items_win" active="true" 
23     onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
24     onunload="try { my_cleanup(); persist_helper_cleanup(); } 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/patron/items.js"/>
34     <script>
35     <![CDATA[
36         function my_init() {
37             try {
38                 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
39                 JSAN.errorLevel = "die"; // none, warn, or die
40                 JSAN.addRepository('/xul/server/');
41                 JSAN.use('util.error'); g.error = new util.error();
42                 try { g.error.sdump('D_TRACE','my_init() for items.xul'); } catch(E) { dump(E); }
43
44                 JSAN.use('patron.items'); g.items = new patron.items();
45                 g.items.init( 
46                     { 
47                         'patron_id' : xul_param('patron_id'), 
48                     } 
49                 );
50                 
51                 window.refresh = function (p) { g.items.retrieve(p); }
52
53                 default_focus();
54
55             } catch(E) {
56                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/items.xul', E]);
57                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
58                 alert(err_msg);
59             }
60         }
61
62         function my_cleanup() {
63             try {
64                 g.items.cleanup();
65             } catch(E) {
66                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/items.xul', E]);
67                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
68                 alert(err_msg);
69             }
70         }
71
72         function default_focus() { try { var x = document.getElementById('noncat'); x.focus(); } catch(E) { try { g.error.sdump('D_ERROR','item.xul, default_focus: ' + E); } catch(F) { dump(E); } } }
73
74     ]]>
75     </script>
76
77     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
78     <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale' -->/cat.properties"/>
79     <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
80
81     <commandset id="items_cmds" />
82     <popupset id="items_popupset"/>
83
84     <box id="items_main" />
85
86 </window>
87