2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Example Template for remote xul -->
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
10 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!DOCTYPE window PUBLIC "" ""[
13 <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21 <window id="cat_z3950_win2"
22 onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
23 xmlns:html="http://www.w3.org/1999/xhtml"
24 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
26 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
28 <script type="text/javascript">
29 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
31 <scripts id="openils_util_scripts"/>
33 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
36 function $(id) { return document.getElementById(id); }
40 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
41 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
42 JSAN.errorLevel = "die"; // none, warn, or die
43 JSAN.addRepository('/xul/server/');
44 JSAN.use('util.error'); g.error = new util.error();
45 g.error.sdump('D_TRACE','my_init() for cat_z3950.xul');
47 JSAN.use('cat.z3950'); g.z3950 = new cat.z3950();
51 /* this guy grabs most things through the DOM, but I want to move JSAN libraries away from that,
52 or at the very least, push node ID's in through here. */
56 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
57 try { window.xulG.set_tab_name('Z39.50'); } catch(E) { alert(E); }
61 var err_msg = $("commonStrings").getFormattedString('common.exception', ['cat/z3950.xul', E]);
62 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
67 function handle_enter(ev) {
68 g.z3950.handle_enter(ev);
71 function default_focus() {
72 setTimeout( function() { try { g.z3950.focus(); } catch(E) { alert(E); } }, 0 );
78 <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
79 <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" />
81 <commandset id="cat_z3950_cmds">
82 <command id="cmd_broken" />
83 <command id="sel_clip" disabled="true" />
84 <command id="cmd_z3950_csv_to_printer" disabled="true" />
85 <command id="cmd_z3950_csv_to_clipboard" disabled="true" />
86 <command id="cmd_z3950_csv_to_file" disabled="true" />
87 <command id="save_columns" />
88 <command id="toggle_form" />
89 <command id="marc_view" />
93 <caption label="&staff.cat.z3950.marc_import.label;"/>
94 <hbox id="top_pane" oils_persist="height" flex="1">
95 <groupbox id="x_splitter1" oils_persist="width" flex="1">
96 <caption label="&staff.cat.z3950.query.label;"/>
100 &staff.cat.z3950.query.description;
105 <columns><column /><column flex="1" /></columns>
106 <rows id="query_inputs" class="my_overflow">
108 <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"/>
109 <menulist id="item_type_input" mytype="search_class" search_class="item_type">
111 <menuitem label="&staff.z39_50.search_class.item_type.all;" value=""/>
112 <menuitem label="&staff.z39_50.search_class.item_type.bks;" value="bks"/>
113 <menuitem label="&staff.z39_50.search_class.item_type.ser;" value="ser"/>
114 <menuitem label="&staff.z39_50.search_class.item_type.vis;" value="vis"/>
115 <menuitem label="&staff.z39_50.search_class.item_type.rec;" value="rec"/>
116 <menuitem label="&staff.z39_50.search_class.item_type.sco;" value="sco"/>
117 <menuitem label="&staff.z39_50.search_class.item_type.map;" value="map"/>
118 <menuitem label="&staff.z39_50.search_class.item_type.com;" value="com"/>
119 <menuitem label="&staff.z39_50.search_class.item_type.mix;" value="mix"/>
120 <menuitem label="&staff.z39_50.search_class.item_type.url;" value="url"/>
121 <menuitem label="&staff.z39_50.search_class.item_type.art;" value="art"/>
128 <button id="raw_search" label="&staff.cat.z3950.raw_search.label;" accesskey="&staff.cat.z3950.raw_search.accesskey;" disabled="true"/>
130 <button id="clear" label="&staff.cat.z3950.clear.label;" accesskey="&staff.cat.z3950.clear.accesskey;"/>
131 <button id="search" label="&staff.cat.z3950.search.label;" accesskey="&staff.cat.z3950.search.accesskey;" disabled="true"/>
134 <splitter id="x_splitter" collapse="after" oils_persist="state hidden" oils_persist_peers="x_splitter1 x_splitter2"><grippy id="splitter_grippy1"/></splitter>
135 <groupbox id="x_splitter2" oils_persist="width" flex="1">
136 <caption label="&staff.cat.z3950.service_credentials.label;"/>
143 <rows id="service_rows" class="my_overflow">
145 <label value="&staff.cat.z3950.service.label;"/>
146 <label value="&staff.cat.z3950.username.label;"/>
147 <label value="&staff.cat.z3950.password.label;"/>
150 <checkbox id="native-evergreen-catalog_service" mytype="service_class" service="native-evergreen-catalog" label="&staff.cat.z3950.catalog_service.label;" tooltiptext="&staff.cat.z3950.catalog_service.tooltiptext;" />
151 <textbox id="native-evergreen-catalog_username" hidden="true" context="clipboard"/>
152 <textbox id="native-evergreen-catalog_password" type="password" hidden="true" context="clipboard"/>
157 <button id="save_creds" label="&staff.cat.z3950.save_creds.label;" accesskey="&staff.cat.z3950.save_creds.accesskey;"/>
162 <splitter id="z_splitter" collapse="before" oils_persist="state hidden" oils_persist_peers="top_pane z_splitter2"><grippy id="splitter_grippy2"/></splitter>
163 <groupbox id="z_splitter2" oils_persist="height" flex="1">
164 <caption label="&staff.cat.z3950.results_caption.label;"/>
166 <hbox id="result_message" />
168 <label id="overlay_tcn_indicator"/>
171 <button id="page_next" label="&staff.cat.z3950.page_next.label;" accesskey="&staff.cat.z3950.page_next.accesskey;" disabled="true"/>
172 <button id="z3950_list_actions" oncommand="this.firstChild.showPopup();"
173 label="&staff.cat.z3950.list_actions.label;"
174 accesskey="&staff.cat.z3950.list_actions.accesskey;"
175 type="menu" allowevents="true">
176 <menupopup id="z3950_list_actions_popup">
177 <menuitem command="sel_clip" label="&staff.cat.z3950.menuitem.copy_to_clipboard.label;" disabled="true" />
178 <menuitem command="cmd_z3950_csv_to_printer" label="&staff.cat.z3950.menuitem.csv_to_printer.label;" />
179 <menuitem command="cmd_z3950_csv_to_clipboard" label="&staff.cat.z3950.menuitem.csv_to_clipboard.label;" />
180 <menuitem command="cmd_z3950_csv_to_file" label="&staff.cat.z3950.menuitem.csv_to_file.label;" />
181 <menuitem command="save_columns" label="&staff.cat.z3950.menuitem.save_columns.label;" />
185 <button id="marc_view_btn" command="marc_view" disabled="true"/>
186 <button id="marc_import_overlay" label="&staff.cat.z3950.marc_import_overlay.label;" accesskey="&staff.cat.z3950.marc_import_overlay.accesskey;" disabled="true"/>
187 <button id="marc_import" label="&staff.cat.z3950.result_message.marc_import.label;" accesskey="&staff.cat.z3950.result_message.marc_import.accesskey;" disabled="true"/>
188 <button id="toggle_form_btn" command="toggle_form"/>
191 <image id="jacket_image" oils_persist="width"/>
192 <splitter id="jacket_splitter" collapse="before" oils_persist="state hidden" oils_persist_peers="jacket_image deck"><grippy id="jacket_splitter_grippy" /></splitter>
193 <deck id="deck" flex="1" oils_persist="width">
194 <tree id="results" flex="1" enableColumnDrag="true" seltype="single"/>
195 <iframe id="marc_frame" src="/xul/server/cat/marc_view.html" flex="1"/>