]> git.evergreen-ils.org Git - Evergreen.git/blob - Evergreen/staff_client/chrome/content/evergreen/cat/cat_overlay.xul
more ripping of legacy code. seems to work :)
[Evergreen.git] / Evergreen / staff_client / chrome / content / evergreen / cat / cat_overlay.xul
1 <?xml version="1.0"?>
2 <!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/cat.dtd">
3 <overlay id="cat_overlay" 
4         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
5
6 <!-- The javascript logic for the staff client -->
7 <Evergreen id="cat_js">
8         <script>var ses;</script>
9         <util id="util_js"/>
10         <script src="cat.js" />
11 </Evergreen>
12
13 <!-- Some logic abstracted a bit.  Sort of like an API list -->
14 <commandset id="cat_cmds">
15         <command id="cmd_search" oncommand="
16                 search(
17                         'search-type-menu',
18                         'search-copy-count-menu',
19                         'search-format-menu',
20                         'search-order-menu',
21                         'search-entry-box'
22                 );
23         "/>
24         <command id="cmd_test" oncommand="
25                 /*spawn_copy_browser( document.getElementById('search-entry-box').value );*/
26                 spawn_marc_editor( document.getElementById('search-entry-box').value );
27         "/>
28         <command id="cmd_alert" oncommand="
29                 alert('Not Yet Implemented');
30         
31         "/>
32 </commandset>
33
34 <!-- The top level widget for the cat client -->
35 <vbox id="cat_vbox" flex="1" style="min-width: 100px; overflow: scroll;">
36         <vbox id="cat_search_box"/>
37         <vbox id="cat_result_box" flex="1"/>
38 </vbox>
39
40 <!-- The search box -->
41 <vbox id="cat_search_box">
42         <groupbox id="search_groupbox"/>
43 </vbox>
44
45 <groupbox id="search_groupbox">
46         <caption label="&cat.search_criteria;"/>
47         <grid id="search_grid"/>
48 </groupbox>
49
50 <grid id="search_grid">
51         <columns> 
52                 <column/> <column/> 
53                 <column/> <column/> 
54                 <column/>
55                 <column flex="1"/> 
56         </columns>
57         <rows>
58                 <row id="search_row1"/>
59                 <row id="search_row2"/>
60                 <row id="search_row3"/>
61         </rows>
62 </grid>
63
64 <row id="search_row1">
65         <label 
66                 value="&cat.search_type;" 
67                 control="search-type-menu" 
68                 accesskey="&cat.search_type.key;"
69         />
70         <menulist id="search-type-menu"/>
71
72         <label
73                 value="&cat.search_term;" 
74                 control="search-entry-box" 
75                 accesskey="&cat.search_term.key;"
76         />
77         <textbox id="search-entry-box" flex="1"/>
78
79
80         <!--<label 
81                 value="&cat.search_location;" 
82                 control="search-location-menu" 
83                 accesskey="&cat.search_location.key;"
84         />
85         <menulist id="search-location-menu"/>-->
86 </row>
87 <row id="search_row2">
88         <label 
89                 value="&cat.search_format;" 
90                 control="search-format-menu" 
91                 accesskey="&cat.search_format.key;"
92         />
93         <menulist id="search-format-menu"/>
94         <label 
95                 value="&cat.search_count_copy;" 
96                 control="search-copy-count-menu" 
97                 accesskey="&cat.search_count_copy.key;"
98         />
99         <menulist id="search-copy-count-menu"/>
100
101 </row>
102 <row id="search_row3">
103         <label 
104                 value="&cat.search_order;" 
105                 control="search-order-menu" 
106                 accesskey="&cat.search_order.key;"
107         />
108         <menulist id="search-order-menu"/>
109         <spacer/>
110         <hbox>
111                 <button label="&cat.search_submit;" accesskey="&cat.search_submit.key;" command="cmd_search"/>
112                 <button label="&cat.search_advanced;" accesskey="&cat.search_advanced.key;" command="cmd_alert"/>
113         </hbox>
114
115
116 </row>
117
118 <!-- The search location -->
119 <!-- This should be populated by a script -->
120 <menulist id="search-location-menu">
121         <menupopup id="search-location-popup">
122                 <menuitem label="This Library (Athens-Clarke County Library)" value="PINES.ARL.ATH" />
123                 <menuitem label="This Library System (Athens Regional Library)" value="PINES.ARL" />
124                 <menuitem label="All PINES Libraries" value="PINES" />
125         </menupopup>
126 </menulist>
127
128 <menulist id="search-copy-count-menu">
129         <menupopup id="search-copy-count-popup"/>
130 </menulist>
131
132
133
134 <!-- The search format -->
135 <menulist id="search-format-menu">
136         <menupopup id="search-format-popup" command="cmd_alert">
137                 <menuitem label="&cat.type_of_material;" value="all" />
138                 <menuitem label="&cat.fixed.BKS;" value="BKS" />
139                 <menuitem label="&cat.fixed.SER;" value="SER" />
140                 <menuitem label="&cat.fixed.VIS;" value="VIS" />
141                 <menuitem label="&cat.fixed.MIX;" value="MIX" />
142                 <menuitem label="&cat.fixed.MAP;" value="MAP" />
143                 <menuitem label="&cat.fixed.SCO;" value="SCO" />
144                 <menuitem label="&cat.fixed.REC;" value="REC" />
145                 <menuitem label="&cat.fixed.COM;" value="COM" />
146         </menupopup>
147 </menulist>
148
149 <!-- The search order -->
150 <menulist id="search-order-menu">
151         <menupopup id="search-order-popup" command="cmd_alert">
152                 <menuitem label="&cat.search_title;" value="title" />
153                 <menuitem label="&cat.search_author;" value="author" />
154                 <menuitem label="&cat.search_pubyear;" value="pubyear" />
155         </menupopup>
156 </menulist>
157
158
159 <!-- The search type -->
160 <menulist id="search-type-menu">
161         <menupopup id="search-type-popup">
162                 <menuitem label="&cat.search_barcode;" value="barcode" />
163                 <menuitem label="&cat.search_tcn;" value="tcn" />
164                 <menuitem label="&cat.search_isbn;" value="isbn" />
165                 <menuitem label="&cat.search_title;" value="title" selected="true"/>
166                 <menuitem label="&cat.search_author;" value="author" />
167                 <menuitem label="&cat.search_subject;" value="subject" />
168                 <menuitem label="&cat.search_callnumber;" value="callnumber" />
169                 <menuitem label="&cat.search_id;" value="id" />
170                 <menuitem label="&cat.search_all;" value="all" />
171         </menupopup>
172 </menulist>
173
174 <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
175 <keyset id="cat_keys">
176         <key id="" modifiers="accel" key="A" command="cmd_"/>
177 </keyset>
178
179 </overlay>