<p>
<label for="branchcode">Library: </label>
- [% SET branches = Branches.all( selected => branchcode ) %]
- <select name="branchcode" id="branchcode">
+ [% SET branches = Branches.all( selected => branchcode_filter ) %]
+ <select name="branchcode_filter" id="branchcode">
[% IF branches.size != 1 %]
<option value="">Any</option>
[% END %]
<p>
<label for="categorycode">Category: </label>
- [% SET categories = Categories.all( selected => categorycode ) %]
- <select name="categorycode" id="categorycode">
+ [% SET categories = Categories.all( selected => categorycode_filter ) %]
+ <select name="categorycode_filter" id="categorycode">
<option value="">Any</option>
[% FOREACH categorie IN categories %]
[% IF ( categorie.selected ) %]
$("#searchtype_filter").val("[% searchtype %]");
[% END %]
[% IF categorycode %]
- $("#categorycode_filter").val("[% categorycode %]");
+ $("#categorycode_filter").val("[% categorycode_filter %]");
[% END %]
[% IF branchcode %]
- $("#branchcode_filter").val("[% branchcode %]");
+ $("#branchcode_filter").val("[% branchcode_filter %]");
[% END %]
[% IF view != "show_results" %]
</li>
<li>
<label for="categorycode_filter">Category:</label>
- [% SET categories = Categories.all( selected => categorycode ) %]
+ [% SET categories = Categories.all( selected => categorycode_filter ) %]
<select id="categorycode_filter">
<option value="">Any</option>
[% FOREACH cat IN categories %]
</li>
<li>
<label for="branchcode_filter">Library:</label>
- [% SET branches = Branches.all( selected => branchcode ) %]
+ [% SET branches = Branches.all( selected => branchcode_filter ) %]
<select id="branchcode_filter">
[% IF branches.size != 1 %]
<option value="">Any</option>
my $theme = $input->param('theme') || "default";
-my $patron = $input->Vars;
-foreach (keys %$patron){
- delete $patron->{$_} unless($patron->{$_});
-}
-
my $searchmember = $input->param('searchmember');
my $quicksearch = $input->param('quicksearch') // 0;
$template->param(
patron_lists => [ GetPatronLists() ],
searchmember => $searchmember,
- branchcode => $patron->{branchcode},
- categorycode => $patron->{categorycode},
+ branchcode_filter => $input->param('branchcode_filter'),
+ categorycode_filter => $input->param('categorycode_filter'),
searchtype => $input->param('searchtype') || 'start_with',
searchfieldstype => $searchfieldstype,
PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20,