]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/z3950.xul
Clean up some long-standing i18n problems (duplicate keys)
[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 PUBLIC "" ""[
14         <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
15 ]>
16
17
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <!-- OVERLAYS -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21
22 <window id="cat_z3950_win" 
23         onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
24         xmlns:html="http://www.w3.org/1999/xhtml"
25         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
26
27         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
28         <!-- BEHAVIOR -->
29         <script type="text/javascript">
30                 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
31         </script>
32         <scripts id="openils_util_scripts"/>
33
34         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
35         <script>
36         <![CDATA[
37                 function $(id) { return document.getElementById(id); }
38                 
39                 function my_init() {
40                         try {
41                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
42                                 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
43                                 JSAN.errorLevel = "die"; // none, warn, or die
44                                 JSAN.addRepository('/xul/server/');
45                                 JSAN.use('util.error'); g.error = new util.error();
46                                 g.error.sdump('D_TRACE','my_init() for cat_z3950.xul');
47
48                                 JSAN.use('cat.z3950'); g.z3950 = new cat.z3950();
49
50                                 g.z3950.init( 
51                                         { 
52                                                 /* this guy grabs most things through the DOM, but I want to move JSAN libraries away from that,
53                                                 or at the very least, push node ID's in through here. */
54                                         } 
55                                 );
56
57                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
58                                         try { window.xulG.set_tab_name('Z39.50'); } catch(E) { alert(E); }
59                                 }
60
61                         } catch(E) {
62                                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['cat/z3950.xul', E]);
63                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
64                                 alert(err_msg);
65                         }
66                 }
67
68                 function handle_enter(ev) {
69                         g.z3950.handle_enter(ev);
70                 }
71
72                 function default_focus() {
73                         setTimeout( function() { try { document.getElementById("username").focus(); g.z3950.focus(g.service); } catch(E) { } }, 0 );
74                 }
75
76         ]]>
77         </script>
78
79     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
80      <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" />
81      <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
82
83         <commandset id="cat_z3950_cmds">
84                 <command id="cmd_broken" />
85                 <command id="cmd_export" />
86                 <command id="sel_clip" />
87                 <command id="save_columns" />
88         </commandset>
89
90         <groupbox flex="1">
91                 <caption label="&staff.cat.z3950.marc_import.label;"/>
92         <deck id="z3950_deck" flex="1">
93             <hbox id="top_pane" persist="height" flex="1">
94                 <vbox id="top_left_pane" persist="width" flex="1">
95                     <groupbox id="first_pane" flex="1" class="my_overflow">
96                         <caption id="c2" label="&staff.cat.z3950.service_credentials.label;" class="shrinkable_groupbox"/>
97                         <grid flex="1">
98                             <columns>
99                                 <column/>
100                                 <column/>
101                                 <column/>
102                             </columns>
103                             <rows id="service_rows">
104                                 <row>
105                                     <label value="&staff.cat.z3950.service.label;"/>
106                                     <label value="&staff.cat.z3950.username.label;"/>
107                                     <label value="&staff.cat.z3950.password.label;"/>
108                                 </row>
109                                 <row>
110                                     <checkbox id="native-evergreen-catalog_service" mytype="service_class" service="native-evergreen-catalog"
111                                         label="&staff.cat.z3950.catalog_service.label;" tooltiptext="&staff.cat.z3950.catalog_service.tooltiptext;" /> 
112                                     <textbox id="native-evergreen-catalog_username" hidden="true"/>
113                                     <textbox id="native-evergreen-catalog_password" type="password" hidden="true"/>
114                                 </row>
115                             </rows>
116                         </grid>
117                     </groupbox>
118                     <hbox>
119                         <button id="save_creds" label="&staff.cat.z3950.save_creds.label;" accesskey="&staff.cat.z3950.save_creds.accesskey;"/>
120                     </hbox>
121                 </vbox>
122                 <splitter collapse="before"><grippy/></splitter>
123                 <vbox id="top_right_pane" persist="width" flex="1">
124                     <groupbox id="second_pane" flex="1" class="my_overflow">
125                         <caption label="&staff.cat.z3950.query.label;" class="shrinkable_groupbox"/>
126                         <hbox>
127                             <spacer flex="1"/>
128                             <description>
129                                 &staff.cat.z3950.query.description;
130                             </description>
131                             <spacer flex="1"/>
132                         </hbox>
133                         <grid>
134                             <columns><column /><column flex="1" /></columns>
135                             <rows id="query_inputs">
136                             <!--
137                                 <row>
138                                     <label id="tcn_label" value="&staff.z39_50.search_class.tcn;" control="tcn_input" onclick="g.z3950.default_attr = 'tcn'" accesskey="0" style="-moz-user-focus: ignore"/>
139                                     <textbox id="tcn_input" mytype="search_class" search_class="tcn" onkeypress="handle_enter(event)"/>
140                                 </row><row>
141                                     <label id="isbn_label" value="&staff.z39_50.search_class.isbn;" control="isbn_input" onclick="g.z3950.default_attr = 'isbn'" style="-moz-user-focus: ignore"/>
142                                     <textbox id="isbn_input" mytype="search_class" search_class="isbn" onkeypress="handle_enter(event)"/>
143                                 </row><row>
144                                     <label id="issn_label" value="&staff.z39_50.search_class.issn;" control="issn_input" onclick="g.z3950.default_attr = 'issn'" style="-moz-user-focus: ignore"/>
145                                     <textbox id="issn_input" mytype="search_class" search_class="issn" onkeypress="handle_enter(event)"/>
146                                 </row><row>
147                                     <label id="title_label" value="&staff.z39_50.search_class.title;" control="title_input" onclick="g.z3950.default_attr = 'title'" style="-moz-user-focus: ignore"/>
148                                     <textbox id="title_input" mytype="search_class" search_class="title" onkeypress="handle_enter(event)"/>
149                                 </row><row>
150                                     <label id="author_label" value="&staff.z39_50.search_class.author;" control="author_input" onclick="g.z3950.default_attr = 'author'" style="-moz-user-focus: ignore"/>
151                                     <textbox id="author_input" mytype="search_class" search_class="author" onkeypress="handle_enter(event)"/>
152                                 </row><row>
153                                     <label id="lccn_label" value="&staff.z39_50.search_class.lccn;" control="lccn_input" onclick="g.z3950.default_attr = 'lccn'" style="-moz-user-focus: ignore"/>
154                                     <textbox id="lccn_input" mytype="search_class" search_class="lccn" onkeypress="handle_enter(event)"/>
155                                 </row><row>
156                                     <label id="pubdate_label" value="&staff.z39_50.search_class.pubdate;" control="pubdate_input" onclick="g.z3950.default_attr = 'pubdate'" style="-moz-user-focus: ignore"/>
157                                     <textbox id="pubdate_input" mytype="search_class" search_class="pubdate" onkeypress="handle_enter(event)"/>
158                                 </row><row>
159                                     <label id="publisher_label" value="&staff.z39_50.search_class.publisher;" control="publisher_input" onclick="g.z3950.default_attr = 'publisher'" style="-moz-user-focus: ignore"/>
160                                     <textbox id="publisher_input" mytype="search_class" search_class="publisher" onkeypress="handle_enter(event)"/>
161                                 </row>
162                             -->
163                                 <row>
164                                     <label id="item_type_label" value="&staff.z39_50.search_class.item_type;" control="item_type_input" onclick="g.z3950.default_attr = 'item_type'" style="-moz-user-focus: ignore"/>
165                                     <menulist id="item_type_input" mytype="search_class" search_class="item_type">
166                                         <menupopup>
167                                             <menuitem label="&staff.z39_50.search_class.item_type.all;" value=""/>
168                                             <menuitem label="&staff.z39_50.search_class.item_type.bks;" value="bks"/>
169                                             <menuitem label="&staff.z39_50.search_class.item_type.ser;" value="ser"/>
170                                             <menuitem label="&staff.z39_50.search_class.item_type.vis;" value="vis"/>
171                                             <menuitem label="&staff.z39_50.search_class.item_type.rec;" value="rec"/>
172                                             <menuitem label="&staff.z39_50.search_class.item_type.sco;" value="sco"/>
173                                             <menuitem label="&staff.z39_50.search_class.item_type.map;" value="map"/>
174                                             <menuitem label="&staff.z39_50.search_class.item_type.com;" value="com"/>
175                                             <menuitem label="&staff.z39_50.search_class.item_type.mix;" value="mix"/>
176                                             <menuitem label="&staff.z39_50.search_class.item_type.url;" value="url"/>
177                                             <menuitem label="&staff.z39_50.search_class.item_type.art;" value="art"/>
178                                         </menupopup>
179                                     </menulist>
180                                 </row>
181                             </rows>
182                         </grid>
183                     </groupbox>
184                     <hbox>
185                         <button id="clear" label="&staff.cat.z3950.clear.label;" accesskey="&staff.cat.z3950.clear.accesskey;"/>
186                         <button id="search" label="&staff.cat.z3950.search.label;" accesskey="&staff.cat.z3950.search.accesskey;"/>
187                         <spacer flex="1"/>
188                         <button id="results_page" label="&staff.cat.z3950.results_page.label;" accesskey="&staff.cat.z3950.results_page.accesskey;"/>
189                     </hbox>
190                 </vbox>
191             </hbox>
192             <groupbox flex="1" id="third_pane" persist="height">
193                 <caption label="&staff.cat.z3950.results_caption.label;"/>
194                 <hbox id="result_message" />
195                 <hbox>
196                     <button id="search_form" label="&staff.cat.z3950.search_form.label;" accesskey="&staff.cat.z3950.search_form.accesskey;"/>
197                     <button id="page_next" label="&staff.cat.z3950.page_next.label;" accesskey="&staff.cat.z3950.page_next.accesskey;" disabled="true"/>
198                     <button id="export" label="&staff.cat.z3950.export.label;" command="cmd_export" accesskey=""/>
199                     <button id="clip_button" command="sel_clip" label="&staff.cat.z3950.clip_button.label;" disabled="true"/>
200                     <button id="save_cols_btn" command="save_columns" label="&staff.cat.z3950.save_cols_btn.label;"/>
201                     <spacer flex="1"/>
202                     <button id="marc_view" label="&staff.cat.z3950.marc_view.label;" accesskey="&staff.cat.z3950.marc_view.accesskey;" disabled="true"/>
203                     <button id="marc_import_overlay" label="&staff.cat.z3950.marc_import_overlay.label;" accesskey="&staff.cat.z3950.marc_import_overlay.accesskey;" disabled="true"/>
204                     <button id="marc_import" label="&staff.cat.z3950.result_message.marc_import.label;" accesskey="&staff.cat.z3950.result_message.marc_import.accesskey;" disabled="true"/>
205                 </hbox>
206                 <deck id="deck" flex="1">
207                     <tree id="results" flex="1" enableColumnDrag="true" seltype="single"/>
208                     <iframe id="marc_frame" src="/xul/server/cat/marc_view.html" flex="1"/>
209                 </deck>
210             </groupbox>
211         </deck>
212     </groupbox>
213
214 </window>
215