$template->param(do_it => 1,
limit => $limit,
- branch => $branches->{$branch}->{branchname} || 'all locations',
- itemtype => $itemtypes->{$itemtype}->{description} || 'item types',
+ branch => $branches->{$branch}->{branchname},
+ itemtype => $itemtypes->{$itemtype}->{description},
timeLimit => $timeLimit,
timeLimitFinite => $timeLimit,
results_loop => \@results,
);
-$template->param( branchloop => GetBranchesLoop(C4::Context->userenv->{'branch'}));
+$template->param( branchloop => GetBranchesLoop(C4::Context->userenv?C4::Context->userenv->{'branch'}:''));
# the index parameter is different for item-level itemtypes
my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype';
$template->param(
itemtypeloop =>\@itemtypesloop,
- dateformat => C4::Context->preference("dateformat"),
);
output_html_with_http_headers $input, $cookie, $template->output;