X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=opac%2Fopac-topissues.pl;h=38c6df0b24382f9f84d92fd1a838dd9225ec63e8;hb=afccbfcce7192c6e1fcd73f137135cb5289c3d3d;hp=6ecc6ad32cbd91351c600382a27db181d440890c;hpb=5d4d33b22d72e16a4f6a4579ea4c2d98dfa091ab;p=koha.git diff --git a/opac/opac-topissues.pl b/opac/opac-topissues.pl index 6ecc6ad32c..38c6df0b24 100755 --- a/opac/opac-topissues.pl +++ b/opac/opac-topissues.pl @@ -122,14 +122,14 @@ if($timeLimit eq 999){ $timeLimitFinite = 0 }; $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, + timeLimitFinite => $timeLimitFinite, 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'; @@ -158,7 +158,6 @@ if (!$advanced_search_types or $advanced_search_types eq 'itemtypes') { $template->param( itemtypeloop =>\@itemtypesloop, - dateformat => C4::Context->preference("dateformat"), ); output_html_with_http_headers $input, $cookie, $template->output;