Bug 18884: Advanced search on staff client, Availability limit not properly limiting
Patch applies and functions as described. Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit48be40d1bf) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitfa0608bc4c) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
parent
69312dd662
commit
0da1c854b5
|
|
@ -1,9 +1,9 @@
|
|||
[% BLOCK options_for_libraries %]
|
||||
[% FOREACH l IN libraries %]
|
||||
[% IF l.selected %]
|
||||
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname %]</option>
|
||||
<option value="[% prefix %][% l.branchcode | html %]" selected="selected">[% l.branchname %]</option>
|
||||
[% ELSE %]
|
||||
<option value="[% l.branchcode | html %]">[% l.branchname |html %]</option>
|
||||
<option value="[% prefix %][% l.branchcode | html %]">[% l.branchname |html %]</option>
|
||||
[% END%]
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@
|
|||
<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;}'>
|
||||
<option value="">All libraries</option>
|
||||
[%# FIXME Should not we filter the libraries displayed? %]
|
||||
[% PROCESS options_for_libraries libraries => Branches.all( selected => selected_branchcode, unfiltered => 1 ) %]
|
||||
[% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( selected => selected_branchcode, unfiltered => 1 ) %]
|
||||
</select></p>
|
||||
<!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
|
||||
[% IF ( searchdomainloop ) %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue