daf6048df093602bc7669854cfabe1bce306705e
[Evergreen.git] / Open-ILS / web / opac / skin / default / xml / advanced / advanced_global.xml
1 <table id='adv_global_search' class='data_grid data_grid_center' width='100%'>
2
3         <style>
4                 #adv_global_search select { width: 13em; }
5                 #adv_global_input_table select { width: 7em; }
6                 .adv_adv_link { font-size: 8pt; color: red; }
7         </style>
8
9         <script language='javascript' type='text/javascript' src='<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/default/js/adv_global.js'> </script>
10
11         <tr style='border-bottom: none;'>
12
13                 <!-- Contains the user-addable(?) rows to define search class, containment and text -->
14                 <td valign='top' width='65%' style='border-bottom: none;'>
15                         <table width='100%' id='adv_global_input_table'>
16         
17                                 <thead>
18                                         <tr><td colspan='2' align='center'>&advanced.search.title;</td></tr>
19                                 </thead>
20                                 <tbody id='adv_global_tbody'>
21
22                                         <script language='javascript' type='text/javascript'>
23                                                 config.ids.common.now_searching = 'now_searching_location';
24                                         </script>
25
26                                         <!--#set var="adv_global_row_id" value="adv_global_trow"-->
27                                         <!--#include virtual="adv_global_row.xml"-->
28
29                                         <!--#set var="adv_global_row_id" value=""-->
30                                         <!--#include virtual="adv_global_row.xml"-->
31                                         <!--#include virtual="adv_global_row.xml"-->
32
33                                         <!-- add a new row -->
34                                         <tr id='adv_global_addrow'>
35                                                 <td align='center'>
36                             <button onclick='clearSearchBoxes();'>&advanced.search.reset;</button>
37                             <span style='padding-left: 10px;'> </span>
38                                                         <button id='myopac_new_global_row' onclick='advAddGblRow();'>&advanced.add.row;</button>
39                                                         <span style='padding-left: 10px;'> </span>
40                             <button onclick='advSubmitGlobal();'>&advanced.search.submit;</button>
41                                                 </td>
42                                         </tr>
43
44                                 </tbody>
45                         </table>
46                 </td>
47
48
49                 <td rowspan='2'>
50
51                         <table width='100%'>
52                                 <thead>
53                                         <tr><td colspan='2' align='center'>&advanced.search.filters;</td></tr>
54                                 </thead>
55                                 <tbody>
56
57                                         <tr>
58                                                 <td align='right'>
59                                                         <span>&advanced.item.form;</span>
60                                                 </td>
61                                                 <td align='left'>
62                                                         <select multiple='multiple' size='3' id='adv_global_item_form'>
63                                                         </select>       
64                                                 </td>
65                                         </tr>
66
67                                         <tr>
68                                                 <td align='right'>
69                                                         <span>&advanced.item.type;</span>
70                                                         <a id='adv_global_item_type_link_adv' class='classic_link adv_adv_link'
71                                                                 href='javascript:void(0);' onclick='
72                                                                 hideMe($("adv_global_item_type_basic"));
73                                                                 unHideMe($("adv_global_item_type"));
74                                                                 hideMe(this);
75                                                                 unHideMe($("adv_global_item_type_link_basic"));
76                                                                 '>&advanced.link;</a>
77
78                                                         <a id='adv_global_item_type_link_basic' class='hide_me classic_link adv_adv_link'
79                                                                 href='javascript:void(0);' onclick='
80                                                                 unHideMe($("adv_global_item_type_basic"));
81                                                                 hideMe($("adv_global_item_type"));
82                                                                 unHideMe($("adv_global_item_type_link_adv"));
83                                                                 hideMe(this);
84                                                                 '>&advanced.basic.link;</a>
85                                                 </td>
86
87                                                 <td align='left'>
88                                                         <select multiple='multiple' size='3' id='adv_global_item_type' class='hide_me'>
89                                                         </select>       
90                                                         <select multiple='multiple' size='3' id='adv_global_item_type_basic'>
91                                                                 <option value='at'>&opac.search.books;</option>
92                                                                 <option value='i'>&opac.search.audioBooks;</option>
93                                                                 <option value='g'>&opac.search.videoRecordings;</option>
94                                                                 <option value='j'>&opac.search.music;</option>
95                                                                 <option value='m'>&opac.search.electronic;</option>
96                                                         </select>       
97                                                 </td>
98                                         </tr>
99
100                                         <tr>
101                                                 <td align='right'>
102                                                         <span>&advanced.literary.form;</span>
103                                                         <a id='adv_global_lit_form_link_adv' class='classic_link adv_adv_link'
104                                                                 href='javascript:void(0);' onclick='
105                                                                 hideMe($("adv_global_lit_form_basic"));
106                                                                 unHideMe($("adv_global_lit_form"));
107                                                                 hideMe(this);
108                                                                 unHideMe($("adv_global_lit_form_link_basic"));
109                                                                 '>&advanced.link;</a>
110
111                                                         <a id='adv_global_lit_form_link_basic' class='hide_me classic_link adv_adv_link'
112                                                                 href='javascript:void(0);' onclick='
113                                                                 unHideMe($("adv_global_lit_form_basic"));
114                                                                 hideMe($("adv_global_lit_form"));
115                                                                 unHideMe($("adv_global_lit_form_link_adv"));
116                                                                 hideMe(this);
117                                                                 '>&advanced.basic.link;</a>
118                                                 </td>
119                                                 <td align='left'>
120                                                         <select multiple='multiple' size='3' id='adv_global_lit_form' class='hide_me'>
121                                                         </select>       
122                                                         <select multiple='multiple' size='3' id='adv_global_lit_form_basic'>
123                                                                 <option value='0 '>&advanced.non.fiction;</option>
124                                                                 <option value='1'>&advanced.fiction;</option>
125                                                         </select>       
126                                                 </td>
127                                         </tr>
128
129
130                                         <!-- Language selector -->
131                                         <tr>
132                                                 <td align='right'>
133                                                         <span>&advanced.language;</span>
134                                                 </td>
135
136                                                 <td align='left'>
137                                                         <select multiple='multiple' size='3' id='adv_global_lang'>
138                                                                 <!--#include virtual="../../../../../common/xml/item_lang_options.xml"-->
139                                                         </select>
140                                                 </td>
141                                         </tr>
142
143                                         <!-- Audience selector -->
144                                         <tr>
145                                                 <td align='right'>
146                                                         <span>&advanced.audience;</span>
147
148                                                         <a id='adv_global_audience_link_adv' class='classic_link adv_adv_link'
149                                                                 href='javascript:void(0);' onclick='
150                                                                 hideMe($("adv_global_audience_basic"));
151                                                                 unHideMe($("adv_global_audience"));
152                                                                 hideMe(this);
153                                                                 unHideMe($("adv_global_audience_link_basic"));
154                                                                 '>&advanced.link;</a>
155
156                                                         <a id='adv_global_audience_link_basic' class='hide_me classic_link adv_adv_link'
157                                                                 href='javascript:void(0);' onclick='
158                                                                 unHideMe($("adv_global_audience_basic"));
159                                                                 hideMe($("adv_global_audience"));
160                                                                 unHideMe($("adv_global_audience_link_adv"));
161                                                                 hideMe(this);'>&advanced.basic.link;</a>
162                                                 </td>
163
164                                                 <td align='left'>
165                                                         <select multiple='multiple' size='3' id='adv_global_audience' class='hide_me'>
166                                                         </select>
167                                                         <select multiple='multiple' size='3' id='adv_global_audience_basic'>
168                                                                 <option value='e '>&advanced.adult;</option>
169                                                                 <option value='abcdj'>&advanced.juvenile;</option>
170                                                                 <option value='fg '>&advanced.general;</option>
171                                                         </select>
172                                                 </td>
173                                         </tr>
174
175                                         <tr>
176                                                 <td align='right'>
177                                                         <span>&advanced.biblevel;</span>
178                                                 </td>
179                                                 <td align='left'>
180                                                         <select multiple='multiple' size='3' id='adv_global_bib_level'>
181                                                         </select>       
182                                                 </td>
183                                         </tr>
184
185                                         <tr>
186                                                 <td align='right'>
187                                                         <span>&advanced.filter.pubyear;</span>
188                                                 </td>
189                                                 <td align='left'>
190                                                         <select id='adv_global_pub_date_type' onchange='
191                                 if($("adv_global_pub_date_type").selectedIndex == 3)
192                                     unHideMe($("adv_global_pub_date_2_span"));
193                                 else
194                                     hideMe($("adv_global_pub_date_2_span"));'>
195                                 <option value='equals' selected='selected'>&advanced.filter.pubyear.equals;</option>
196                                 <option value='before'>&advanced.filter.pubyear.before;</option>
197                                 <option value='after'>&advanced.filter.pubyear.after;</option>
198                                 <option value='between'>&advanced.filter.pubyear.between;</option>
199                                                         </select>       
200                             <div style='margin-top:5px;'>
201                                 <input id='adv_global_pub_date_1' type='text' size='4' maxlength='4'/>
202                                 <span id='adv_global_pub_date_2_span' class='hide_me'>
203                                    &common.and; <input id='adv_global_pub_date_2' type='text' size='4' maxlength='4'/>
204                                 </span>
205                             </div>
206                                                 </td>
207                                         </tr>
208
209
210                     <!-- copy location selector -->
211                     <tr id='adv_copy_location_filter_row' class='hide_me'>
212                         <td align='right'>&opac.advanced.copy_loc_filter;</td>
213                         <td align='left' id='adv_copy_location_filter_td'>
214                             <select size='3' id='adv_copy_location_filter_select' multiple='multiple'>
215                             </select>
216                         </td>
217                     </tr>
218                                 </tbody>
219                         </table>
220                 </td>
221         </tr>
222
223         <tr style='border-top: none;'>
224                 <td align='center' valign='top' style='border-top: none;'>
225
226                         <table style='border: none; width: 100%;'>
227                                 <tr>
228                                         <td align='center' width='100%'>
229                                                 <table class='' width='100%'>
230                         
231                                                         <thead>
232                                                                 <tr>
233                                                                         <td align='center' width='50%'>&advanced.sort.criteria;</td>
234                                                                         <td align='center'>&advanced.search.library;</td>
235                                                                 </tr>
236                                                         </thead>
237                         
238                                                         <tbody>
239                                                                 <tr>
240
241                            <script language='javascript' type='text/javascript'>
242                               function __setsortsel() {
243                                  var sel = $('adv_global_sort_by')
244                                                                                    if(sel.selectedIndex == 0) {
245                                                                                            $("adv_global_sort_dir").disabled = true;
246                                                                                            $("adv_global_sort_dir").selectedIndex = 0;
247                                                                                    } else $("adv_global_sort_dir").disabled = false;
248                               }
249                            </script>
250
251                                                                         <td align=''>
252                                                                                 <select id='adv_global_sort_by' onchange='__setsortsel();'>
253                                                                                         <option value='rel'>&advanced.relevance;</option>
254                                                                                         <option value='title'>&common.title;</option>
255                                                                                         <option value='author'>&common.author;</option>
256                                                                                         <option value='pubdate'>&advanced.pubdate;</option>
257                                                                                 </select>
258                                                                         </td>
259
260
261                                                                         <td align='center' width='100%' nowrap='nowrap'>
262                                                                                 <b id='now_searching_location'> </b>
263                                                                         </td>
264
265                                                                 </tr>
266                         
267                                                                 <tr>
268
269                                                                         <td>
270                                                                                 <select id='adv_global_sort_dir' disabled='disabled'>
271                                                                                         <option value='asc'>&advanced.sort.asc;</option>
272                                                                                         <option value='desc'>&advanced.sort.desc;</option>
273                                                                                 </select>
274                                                                         </td>
275
276                            <!-- force the enable/disable sort dir code to run -->
277                            <script language='javascript' type='text/javascript'>__setsortsel();</script>
278
279                                                                         <td align='center'>
280                                                                                 <!--#include virtual="../common/libselect.xml"-->
281                                                                         </td>
282
283                                                                 </tr>
284                                                                 <tr>
285                                                                         <td align='center'>
286                                                                                 <span>&advanced.frbrize;</span>
287                                                                                 <input id='adv_group_titles' type='checkbox' />
288                                                                         </td>
289                                     <td align='center'>
290                                         <span>&result.limit2avail;</span>
291                                         <input type='checkbox' id='opac.result.limit2avail'/>
292                                     </td>
293                                                                 </tr>
294                                                         </tbody>
295                                                 </table>
296                                         </td>
297                                 </tr>
298                         </table>
299                 </td>
300
301         </tr>
302
303         <tr class='border_4_2'>
304                 <td colspan='2'><input type='submit' onclick='advSubmitGlobal();' value='&advanced.search.submit;'></input></td>
305         </tr>
306
307 </table>
308
309