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