1d4fba2ea6b90f2669ba90cd9338fa2f0c889aa3
[Evergreen.git] / Open-ILS / xul / staff_client / server / cat / opac.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
10 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
11 <!-- LOCALIZATION -->
12 <!DOCTYPE window SYSTEM "chrome://evergreen/locale/lang.dtd">
13
14 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
15 <!-- OVERLAYS -->
16 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
17
18 <window id="cat_opac_win" 
19         onload="my_init()"
20         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
21
22         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
23         <!-- BEHAVIOR -->
24         <script type="text/javascript">var myPackageDir = 'evergreen'; var IAMXUL = true; var g = {};</script>
25         <scripts id="openils_util_scripts"/>
26
27         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
28
29         <script>
30         <![CDATA[
31                 function my_init() {
32                         try {
33
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 cat_opac.xul');
40
41                                 g.cgi = new CGI();
42
43                                 var session = g.cgi.param('session');
44                                 var url = g.cgi.param('url');
45                                 if (!url) url = urls.opac;
46
47                                 JSAN.use('cat.opac'); g.opac = new cat.opac();
48
49                                 g.opac.init( 
50                                         { 
51                                                 'url' : url,
52                                                 'session' : session,
53                                         } 
54                                 );
55
56         
57                         } catch(E) {
58                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
59                                         "system administrator or software developer the following:\n" + E + '\n';
60                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
61                                 alert(err_msg);
62                         }
63                 }
64
65         ]]>
66         </script>
67
68         <commandset id="cat_opac_cmds">
69                 <command id="cmd_broken" />
70         </commandset>
71
72         <browser id="opac_browser" />
73
74 </window>
75