95daf0b59d93c73548352f616e07cc21f31688f0
[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 id='myopac_new_global_row' onclick='advAddGblRow();'>&advanced.add.row;</button>
37                                                         <span style='padding-left: 10px;'> </span>
38                             <button onclick='advSubmitGlobal();'>&advanced.search.submit;</button>
39                                                 </td>
40                                         </tr>
41
42                                 </tbody>
43                         </table>
44                 </td>
45
46
47                 <td rowspan='2'>
48
49                         <table width='100%'>
50                                 <thead>
51                                         <tr><td colspan='2' align='center'>&advanced.search.filters;</td></tr>
52                                 </thead>
53                                 <tbody>
54
55                                         <tr>
56                                                 <td align='right'>
57                                                         <span>&advanced.item.form;</span>
58                                                 </td>
59                                                 <td align='left'>
60                                                         <select multiple='multiple' size='3' id='adv_global_item_form'>
61                                                         </select>       
62                                                 </td>
63                                         </tr>
64
65                                         <tr>
66                                                 <td align='right'>
67                                                         <span>&advanced.item.type;</span>
68                                                         <a id='adv_global_item_type_link_adv' class='classic_link adv_adv_link'
69                                                                 href='javascript:void(0);' onclick='
70                                                                 hideMe($("adv_global_item_type_basic"));
71                                                                 unHideMe($("adv_global_item_type"));
72                                                                 hideMe(this);
73                                                                 unHideMe($("adv_global_item_type_link_basic"));
74                                                                 '>&advanced.link;</a>
75
76                                                         <a id='adv_global_item_type_link_basic' class='hide_me classic_link adv_adv_link'
77                                                                 href='javascript:void(0);' onclick='
78                                                                 unHideMe($("adv_global_item_type_basic"));
79                                                                 hideMe($("adv_global_item_type"));
80                                                                 unHideMe($("adv_global_item_type_link_adv"));
81                                                                 hideMe(this);
82                                                                 '>&advanced.basic.link;</a>
83                                                 </td>
84
85                                                 <td align='left'>
86                                                         <select multiple='multiple' size='3' id='adv_global_item_type' class='hide_me'>
87                                                         </select>       
88                                                         <select multiple='multiple' size='3' id='adv_global_item_type_basic'>
89                                                                 <option value='at'>&opac.search.books;</option>
90                                                                 <option value='i'>&opac.search.audioBooks;</option>
91                                                                 <option value='g'>&opac.search.videoRecordings;</option>
92                                                                 <option value='j'>&opac.search.music;</option>
93                                                                 <option value='m'>&opac.search.electronic;</option>
94                                                         </select>       
95                                                 </td>
96                                         </tr>
97
98                                         <tr>
99                                                 <td align='right'>
100                                                         <span>&advanced.literary.form;</span>
101                                                         <a id='adv_global_lit_form_link_adv' class='classic_link adv_adv_link'
102                                                                 href='javascript:void(0);' onclick='
103                                                                 hideMe($("adv_global_lit_form_basic"));
104                                                                 unHideMe($("adv_global_lit_form"));
105                                                                 hideMe(this);
106                                                                 unHideMe($("adv_global_lit_form_link_basic"));
107                                                                 '>&advanced.link;</a>
108
109                                                         <a id='adv_global_lit_form_link_basic' class='hide_me classic_link adv_adv_link'
110                                                                 href='javascript:void(0);' onclick='
111                                                                 unHideMe($("adv_global_lit_form_basic"));
112                                                                 hideMe($("adv_global_lit_form"));
113                                                                 unHideMe($("adv_global_lit_form_link_adv"));
114                                                                 hideMe(this);
115                                                                 '>&advanced.basic.link;</a>
116                                                 </td>
117                                                 <td align='left'>
118                                                         <select multiple='multiple' size='3' id='adv_global_lit_form' class='hide_me'>
119                                                         </select>       
120                                                         <select multiple='multiple' size='3' id='adv_global_lit_form_basic'>
121                                                                 <option value='0 '>&advanced.non.fiction;</option>
122                                                                 <option value='1'>&advanced.fiction;</option>
123                                                         </select>       
124                                                 </td>
125                                         </tr>
126
127
128                                         <!-- Language selector -->
129                                         <tr>
130                                                 <td align='right'>
131                                                         <span>&advanced.language;</span>
132                                                 </td>
133
134                                                 <td align='left'>
135                                                         <select multiple='multiple' size='3' id='adv_global_lang'>
136                                                                 <!--#include virtual="../../../../../common/xml/item_lang_options.xml"-->
137                                                         </select>
138                                                 </td>
139                                         </tr>
140
141                                         <!-- Audience selector -->
142                                         <tr>
143                                                 <td align='right'>
144                                                         <span>&advanced.audience;</span>
145
146                                                         <a id='adv_global_audience_link_adv' class='classic_link adv_adv_link'
147                                                                 href='javascript:void(0);' onclick='
148                                                                 hideMe($("adv_global_audience_basic"));
149                                                                 unHideMe($("adv_global_audience"));
150                                                                 hideMe(this);
151                                                                 unHideMe($("adv_global_audience_link_basic"));
152                                                                 '>&advanced.link;</a>
153
154                                                         <a id='adv_global_audience_link_basic' class='hide_me classic_link adv_adv_link'
155                                                                 href='javascript:void(0);' onclick='
156                                                                 unHideMe($("adv_global_audience_basic"));
157                                                                 hideMe($("adv_global_audience"));
158                                                                 unHideMe($("adv_global_audience_link_adv"));
159                                                                 hideMe(this);'>&advanced.basic.link;</a>
160                                                 </td>
161
162                                                 <td align='left'>
163                                                         <select multiple='multiple' size='3' id='adv_global_audience' class='hide_me'>
164                                                         </select>
165                                                         <select multiple='multiple' size='3' id='adv_global_audience_basic'>
166                                                                 <option value='e '>&advanced.adult;</option>
167                                                                 <option value='abcdj'>&advanced.juvenile;</option>
168                                                                 <option value='fg '>&advanced.general;</option>
169                                                         </select>
170                                                 </td>
171                                         </tr>
172
173                                         <tr>
174                                                 <td align='right'>
175                                                         <span>Bib Level</span>
176                                                 </td>
177                                                 <td align='left'>
178                                                         <select multiple='multiple' size='3' id='adv_global_bib_level'>
179                                                         </select>       
180                                                 </td>
181                                         </tr>
182
183                                 </tbody>
184                         </table>
185                 </td>
186         </tr>
187
188         <tr style='border-top: none;'>
189                 <td align='center' valign='bottom' style='border-top: none;'>
190
191                         <table style='border: none; width: 100%;'>
192                                 <tr>
193                                         <td align='center' width='100%'>
194                                                 <table class='' width='100%'>
195                         
196                                                         <thead>
197                                                                 <tr>
198                                                                         <td align='center' width='50%'>&advanced.sort.criteria;</td>
199                                                                         <td align='center'>&advanced.search.library;</td>
200                                                                 </tr>
201                                                         </thead>
202                         
203                                                         <tbody>
204                                                                 <tr>
205
206                            <script language='javascript' type='text/javascript'>
207                               function __setsortsel() {
208                                  var sel = $('adv_global_sort_by')
209                                                                                    if(sel.selectedIndex == 0) {
210                                                                                            $("adv_global_sort_dir").disabled = true;
211                                                                                            $("adv_global_sort_dir").selectedIndex = 0;
212                                                                                    } else $("adv_global_sort_dir").disabled = false;
213                               }
214                            </script>
215
216                                                                         <td align=''>
217                                                                                 <select id='adv_global_sort_by' onchange='__setsortsel();'>
218                                                                                         <option value='rel'>&advanced.relevance;</option>
219                                                                                         <option value='title'>&common.title;</option>
220                                                                                         <option value='author'>&common.author;</option>
221                                                                                         <option value='pubdate'>&advanced.pubdate;</option>
222                                                                                 </select>
223                                                                         </td>
224
225
226                                                                         <td align='center' width='100%' nowrap='nowrap'>
227                                                                                 <b id='now_searching_location'> </b>
228                                                                         </td>
229
230                                                                 </tr>
231                         
232                                                                 <tr>
233
234                                                                         <td>
235                                                                                 <select id='adv_global_sort_dir' disabled='disabled'>
236                                                                                         <option value='asc'>&advanced.sort.asc;</option>
237                                                                                         <option value='desc'>&advanced.sort.desc;</option>
238                                                                                 </select>
239                                                                         </td>
240
241                            <!-- force the enable/disable sort dir code to run -->
242                            <script language='javascript' type='text/javascript'>__setsortsel();</script>
243
244                                                                         <td align='center'>
245                                                                                 <!--#include virtual="../common/libselect.xml"-->
246                                                                         </td>
247
248                                                                 </tr>
249                                                                 <tr>
250                                                                         <td align='center'>
251                                                                                 <span>&advanced.frbrize;</span>
252                                                                                 <input id='adv_group_titles' type='checkbox' />
253                                                                         </td>
254                                     <td align='center'>
255                                         <span>&result.limit2avail;</span>
256                                         <input type='checkbox' id='opac.result.limit2avail'/>
257                                     </td>
258                                                                 </tr>
259                                                         </tbody>
260                                                 </table>
261                                         </td>
262                                 </tr>
263                 <tr id='adv_copy_location_filter_row' class='hide_me'>
264                     <td id='adv_copy_location_filter_td' colspan='2'>
265                         <a class='classic_link' href='javascript:advLoadCopyLocations();'>&opac.advanced.copy_loc_filter;</a>
266                         <div id='adv_copy_location_filter_div' class='hide_me'>
267                             <select id='adv_copy_location_filter_select' multiple='multiple'>
268                             </select>
269                         </div>
270                     </td>
271                 </tr>
272                         </table>
273                 </td>
274
275         </tr>
276
277         <tr class='border_4_2'>
278                 <td colspan='2'><input type='submit' onclick='advSubmitGlobal();' value='&advanced.search.submit;'></input></td>
279         </tr>
280
281 </table>
282
283