Lines 14-19
Link Here
|
14 |
</head> |
14 |
</head> |
15 |
[% INCLUDE 'bodytag.inc' bodyid='advsearch' bodyclass='scrollto' %] |
15 |
[% INCLUDE 'bodytag.inc' bodyid='advsearch' bodyclass='scrollto' %] |
16 |
[% INCLUDE 'masthead.inc' %] |
16 |
[% INCLUDE 'masthead.inc' %] |
|
|
17 |
[% SET AllPublicBranches = Branches.all( search_params => { public => 1 } ) %] |
18 |
|
17 |
<form id="advsearch_form" action="/cgi-bin/koha/opac-search.pl" method="get"> |
19 |
<form id="advsearch_form" action="/cgi-bin/koha/opac-search.pl" method="get"> |
18 |
<input type="hidden" name="advsearch" value="1"/> |
20 |
<input type="hidden" name="advsearch" value="1"/> |
19 |
<div class="main"> |
21 |
<div class="main"> |
Lines 232-258
Link Here
|
232 |
<!-- AVAILABILITY LIMITS --> |
234 |
<!-- AVAILABILITY LIMITS --> |
233 |
<div id="location" class="advsearch_limit"> |
235 |
<div id="location" class="advsearch_limit"> |
234 |
<fieldset> |
236 |
<fieldset> |
235 |
<label for="branchloop">Location and availability:</label> |
237 |
[% IF AllPublicBranches.size > 1 %] |
236 |
<select class="form-select" name="limit" id="branchloop"> |
238 |
<label for="branchloop">Location and availability:</label> |
237 |
<option value="">All libraries</option> |
239 |
[% ELSE %] |
238 |
[% FOREACH BranchesLoo IN Branches.all( selected => opac_name ) %] |
240 |
<label for="branchloop">Availability:</label> |
239 |
[% NEXT UNLESS BranchesLoo.public %] |
|
|
240 |
[% IF BranchesLoo.selected %] |
241 |
<option value="branch:[% BranchesLoo.branchcode | html %]" selected="selected">[% BranchesLoo.branchname | html %]</option> |
242 |
[% ELSE %] |
243 |
<option value="branch:[% BranchesLoo.branchcode | html %]">[% BranchesLoo.branchname | html %]</option> |
244 |
[% END %] |
245 |
[% END %] |
241 |
[% END %] |
246 |
</select> |
242 |
|
247 |
[% IF search_groups %] |
243 |
[% IF AllPublicBranches.size > 1 %] |
248 |
<p>OR</p> |
244 |
<select class="form-select" name="limit" id="branchloop"> |
249 |
<label for="categoryloop">Groups of libraries</label> |
245 |
<option value="">All libraries</option> |
250 |
<select class="form-select" name="limit" id="categoryloop"> |
246 |
[% FOREACH BranchesLoo IN AllPublicBranches %] |
251 |
<option value=""> -- none -- </option> |
247 |
[% IF BranchesLoo.selected %] |
252 |
[% FOREACH sg IN search_groups %] |
248 |
<option value="branch:[% BranchesLoo.branchcode | html %]" selected="selected">[% BranchesLoo.branchname | html %]</option> |
253 |
<option value="multibranchlimit:[% sg.id | html %]">[% sg.title | html %]</option> |
249 |
[% ELSE %] |
|
|
250 |
<option value="branch:[% BranchesLoo.branchcode | html %]">[% BranchesLoo.branchname | html %]</option> |
254 |
[% END %] |
251 |
[% END %] |
|
|
252 |
[% END %] |
255 |
</select> |
253 |
</select> |
|
|
254 |
[% IF search_groups %] |
255 |
<p>OR</p> |
256 |
<label for="categoryloop">Groups of libraries</label> |
257 |
<select class="form-select" name="limit" id="categoryloop"> |
258 |
<option value=""> -- none -- </option> |
259 |
[% FOREACH sg IN search_groups %] |
260 |
<option value="multibranchlimit:[% sg.id | html %]">[% sg.title | html %]</option> |
261 |
[% END %] |
262 |
</select> |
263 |
[% END %] |
256 |
[% END %] |
264 |
[% END %] |
257 |
<div style="margin-top:.4em"> |
265 |
<div style="margin-top:.4em"> |
258 |
<label for="available-items"><input type="checkbox" id="available-items" name="limit" value="available" /> Only items currently available for loan or reference</label> |
266 |
<label for="available-items"><input type="checkbox" id="available-items" name="limit" value="available" /> Only items currently available for loan or reference</label> |