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