]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/z3950.xul
nasty bug. wasn't filtering the stat_cat_entries correctly before sending to Bill
[Evergreen.git] / Open-ILS / xul / staff_client / server / cat / z3950.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Example Template for remote xul -->
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
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!-- LOCALIZATION -->
13 <!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
14
15 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
16 <!-- OVERLAYS -->
17 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
18
19 <window id="cat_z3950_win" 
20         onload="try { my_init(); } catch(E) { alert(E); }"
21         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
22
23         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
24         <!-- BEHAVIOR -->
25         <script type="text/javascript">
26                 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
27         </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 cat_z3950.xul');
41
42                                 g.cgi = new CGI();
43                                 var session = g.cgi.param('session');
44
45                                 JSAN.use('cat.z3950'); g.z3950 = new cat.z3950();
46
47                                 g.z3950.init( 
48                                         { 
49                                                 'session' : session,
50                                         } 
51                                 );
52
53                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
54                                         try { window.xulG.set_tab_name('Z39.50'); } catch(E) { alert(E); }
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:\ncat/z3950.xul\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_z3950_cmds">
69                 <command id="cmd_broken" />
70         </commandset>
71
72         <groupbox flex="1">
73                 <caption label="MARC Import via Z39.50"/>
74                 <description>This interface is very minimal at the moment, but may evolve into a federated z39.50 search client.</description>
75                 <hbox>
76                         <groupbox>
77                                 <caption id="c1" label="Sessions" class="shrinkable_groupbox"/>
78                                 <hbox id="menu_placeholder">
79                                 </hbox>
80                                 <hbox>
81                                         <button id="new_menu_option" label="New" command="cmd_broken"/>
82                                         <button id="save_menu_option" label="Save" command="cmd_broken"/>
83                                 </hbox>
84                         </groupbox>
85                         <groupbox>
86                                 <caption id="c2" label="Server Details" class="shrinkable_groupbox"/>
87                                 <grid>
88                                         <columns><column /><column flex="1" /><column /><column flex="1"/></columns>
89                                         <rows>
90                                                 <row>
91                                                         <label value="Server:" control="server"/><textbox id="server" value="" disabled="false"/>
92                                                         <label value="Username:" control="username"/><textbox id="username" value="" disabled="false"/>
93                                                 </row>
94                                                 <row>
95                                                         <label value="Database:" control="database"/><textbox id="database" value="" disabled="false"/>
96                                                         <label value="Password:" control="password"/><textbox id="password" value="" disabled="false"/>
97                                                 </row>
98                                                 <row>
99                                                         <label value="Port:" control="port"/><textbox id="port" value="" disabled="false"/>
100                                                 </row>
101                                         </rows>
102                                 </grid>
103                         </groupbox>
104                 </hbox>
105                 <groupbox>
106                         <caption label="Query" />
107                         <grid>
108                                 <columns><column /><column flex="1" /><column /></columns>
109                                 <rows>
110                                         <row>
111                                                 <label value="Accession ID:" control="asc_id" accesskey="A"/>
112                                                 <textbox id="asc_id"/>
113                                                 <button id="asc_search" label="Submit" accesskey="S"/>
114                                         </row>
115                                         <row>
116                                                 <label value="Raw Z39.50:" control="raw_string" accesskey="R"/>
117                                                 <textbox id="raw_string"/>
118                                                 <button id="raw_search" label="Submit" />
119                                         </row>
120                                 </rows>
121                         </grid>
122                 </groupbox>
123                 <groupbox flex="1">
124                         <caption label="Results" />
125                         <description id="result_message" />
126                         <hbox><spacer flex="1"/><button id="marc_import" label="Import" disabled="true"/></hbox>
127                         <tree id="results" flex="1" enableColumnDrag="true" seltype="single"/>
128                 </groupbox>
129         </groupbox>
130
131 </window>
132