]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/hold_capture.xul
0beb608f01c192bb26bffe470791bde0f81cce2e
[Evergreen.git] / Open-ILS / xul / staff_client / server / circ / hold_capture.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/evergreen.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/circ.css" type="text/css"?>
10
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!-- LOCALIZATION -->
13 <!DOCTYPE window SYSTEM "chrome://evergreen/locale/lang.dtd">
14
15 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
16 <!-- OVERLAYS -->
17 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
18 <?xul-overlay href="/xul/server/circ/hold_capture_overlay.xul"?>
19
20 <window id="hold_capture_win" 
21         onload="my_init()"
22         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
23
24         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
25         <!-- BEHAVIOR -->
26         <script type="text/javascript">var myPackageDir = 'evergreen'; var IAMXUL = true; var g = {};</script>
27         <scripts id="openils_util_scripts"/>
28
29         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
30         <script>
31         <![CDATA[
32                 function my_init() {
33                         try {
34                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
35                                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
36                                 JSAN.errorLevel = "die"; // none, warn, or die
37                                 JSAN.addRepository('/xul/server/');
38                                 JSAN.use('util.error'); g.error = new util.error();
39                                 g.error.sdump('D_TRACE','my_init() for hold_capture.xul');
40
41                                 g.cgi = new CGI();
42
43                                 JSAN.use('circ.hold_capture'); g.hold_capture = new circ.hold_capture();
44                                 g.hold_capture.init( 
45                                         { 
46                                                 'session' : g.cgi.param('session') 
47                                         } 
48                                 );
49         
50                         } catch(E) {
51                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
52                                         "system administrator or software developer the following:\n" 
53                                         + 'circ.hold_capture.xul\n' + E + '\n';
54                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
55                                 alert(err_msg);
56                         }
57                 }
58
59         ]]>
60         </script>
61
62         <commandset id="hold_capture_cmds">
63                 <command id="cmd_hold_capture_submit_barcode" />
64                 <command id="cmd_hold_capture_print" />
65                 <command id="cmd_hold_capture_reprint" />
66                 <command id="cmd_hold_capture_done" />
67         </commandset>
68
69         <box id="hold_capture_main" />
70
71 </window>
72