Lines 53-59
my ($template, $borrowernumber, $cookie)
Link Here
|
53 |
my $dbh = C4::Context->dbh; |
53 |
my $dbh = C4::Context->dbh; |
54 |
# Displaying results |
54 |
# Displaying results |
55 |
my $limit = $input->param('limit') || 10; |
55 |
my $limit = $input->param('limit') || 10; |
56 |
my $branch = $input->param('branch') || ''; |
56 |
my $branch_input = $input->param('branch') || ''; |
|
|
57 |
my $branch = $branch_input eq '__ANY__' ? '' : $branch_input ; # __ANY__ is used to distinguish form display and no branch filter selected |
57 |
my $itemtype = $input->param('itemtype') || ''; |
58 |
my $itemtype = $input->param('itemtype') || ''; |
58 |
my $timeLimit = $input->param('timeLimit') || 3; |
59 |
my $timeLimit = $input->param('timeLimit') || 3; |
59 |
my $advanced_search_types = C4::Context->preference('AdvancedSearchTypes'); |
60 |
my $advanced_search_types = C4::Context->preference('AdvancedSearchTypes'); |
Lines 129-135
$template->param(do_it => 1,
Link Here
|
129 |
results_loop => \@results, |
130 |
results_loop => \@results, |
130 |
); |
131 |
); |
131 |
|
132 |
|
132 |
$template->param( branchloop => GetBranchesLoop(C4::Context->userenv?C4::Context->userenv->{'branch'}:'')); |
133 |
# GetBranchesLoop without parameter will select user default branch |
|
|
134 |
my $branchloop = $branch_input ? GetBranchesLoop($branch_input) : GetBranchesLoop(); |
135 |
$template->param( branchloop => $branchloop ); |
133 |
|
136 |
|
134 |
# the index parameter is different for item-level itemtypes |
137 |
# the index parameter is different for item-level itemtypes |
135 |
my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype'; |
138 |
my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype'; |
136 |
- |
|
|