|
Lines 1-3
Link Here
|
|
|
1 |
[% USE Koha %] |
| 1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
| 2 |
<title>Koha › Catalog › Advanced search</title> |
3 |
<title>Koha › Catalog › Advanced search</title> |
| 3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
|
Lines 229-262
Link Here
|
| 229 |
[% END %] |
230 |
[% END %] |
| 230 |
|
231 |
|
| 231 |
<!-- AVAILABILITY LIMITS --> |
232 |
<!-- AVAILABILITY LIMITS --> |
| 232 |
<fieldset id="availability"><legend>Location and availability</legend> |
233 |
<fieldset id="availability"><legend>Location and availability</legend> |
| 233 |
<fieldset id="currently-avail"> |
234 |
<fieldset id="currently-avail"> |
| 234 |
<p><label for="available-items">Only items currently available</label> <input type="checkbox" id="available-items" name="limit" value="available" /></p> |
235 |
<p><label for="available-items">Only items currently available</label> <input type="checkbox" id="available-items" name="limit" value="available" /></p> |
| 235 |
</fieldset> |
236 |
</fieldset> |
|
|
237 |
|
| 238 |
[% UNLESS Koha.Preference('IndependentBranchesIntranetSearch') %] |
| 239 |
<fieldset id="select-libs"> |
| 240 |
<p> |
| 241 |
<label for="branchloop">Individual libraries:</label> |
| 242 |
<select name="limit" id="branchloop" onchange='if(this.value != ""){document.getElementById("categoryloop").disabled=true;} else {document.getElementById("categoryloop").disabled=false;}'> |
| 243 |
<option value="">All libraries</option> |
| 244 |
[% FOREACH branchloo IN branchloop %] |
| 245 |
[% IF ( branchloo.selected ) %] |
| 246 |
<option value="branch:[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option> |
| 247 |
[% ELSE %] |
| 248 |
<option value="branch:[% branchloo.value %]">[% branchloo.branchname %]</option> |
| 249 |
[% END %] |
| 250 |
[% END %] |
| 251 |
</select> |
| 252 |
</p> |
| 236 |
|
253 |
|
| 237 |
<fieldset id="select-libs"> |
254 |
[% IF ( searchdomainloop ) %] |
| 238 |
<p><label for="branchloop">Individual libraries:</label><select name="limit" id="branchloop" onchange='if(this.value != ""){document.getElementById("categoryloop").disabled=true;} else {document.getElementById("categoryloop").disabled=false;}'> |
255 |
<p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. --> |
| 239 |
<option value="">All libraries</option> |
256 |
<p> |
| 240 |
[% FOREACH branchloo IN branchloop %] |
257 |
<label for="categoryloop">Groups of libraries: </label> |
| 241 |
[% IF ( branchloo.selected ) %] |
258 |
<select name="multibranchlimit" id="categoryloop"> |
| 242 |
<option value="branch:[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option> |
259 |
<option value=""> -- none -- </option> |
| 243 |
[% ELSE %] |
260 |
[% FOREACH searchdomainloo IN searchdomainloop %] |
| 244 |
<option value="branch:[% branchloo.value %]">[% branchloo.branchname %]</option> |
261 |
<option value="[% searchdomainloo.categorycode %]">[% searchdomainloo.categoryname %]</option> |
| 245 |
[% END %] |
262 |
[% END %] |
| 246 |
[% END %] |
263 |
</select> |
| 247 |
</select></p> |
264 |
</p> |
| 248 |
<!-- <input type="hidden" name="limit" value="branch: MAIN" /> --> |
265 |
[% END %] |
| 249 |
[% IF ( searchdomainloop ) %] |
266 |
</fieldset> |
| 250 |
<p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. --> |
|
|
| 251 |
<p><label for="categoryloop">Groups of libraries: </label><select name="multibranchlimit" id="categoryloop"> |
| 252 |
<option value=""> -- none -- </option> |
| 253 |
[% FOREACH searchdomainloo IN searchdomainloop %] |
| 254 |
<option value="[% searchdomainloo.categorycode %]">[% searchdomainloo.categoryname %]</option> |
| 255 |
[% END %] |
| 256 |
</select></p> |
| 257 |
[% END %] |
267 |
[% END %] |
| 258 |
</fieldset> |
268 |
</fieldset> |
| 259 |
</fieldset> |
|
|
| 260 |
<!-- /AVAILABILITY LIMITS --> |
269 |
<!-- /AVAILABILITY LIMITS --> |
| 261 |
|
270 |
|
| 262 |
<!-- RANK LIMITS --> |
271 |
<!-- RANK LIMITS --> |
| 263 |
- |
|
|