X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-search.pl;h=ff437da323b4148f657f818616ab6b7da61c74b4;hb=8b65b94636398729e5d919ca2eb6334e8013bdae;hp=8f6b67a3c331cac64ec175a60880dbe9765bc579;hpb=5a2fc683d842ca964b42c8ae68b15aba2526ef30;p=koha_fer diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 8f6b67a3c3..ff437da323 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -373,7 +373,7 @@ my ($error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_ my @results; ## I. BUILD THE QUERY -my $lang = C4::Output::getlanguagecookie($cgi); +my $lang = C4::Templates::getlanguagecookie($cgi); ( $error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type) = buildQuery(\@operators,\@operands,\@indexes,\@limits,\@sort_by, 0, $lang); sub _input_cgi_parse ($) { @@ -405,6 +405,7 @@ if (C4::Context->preference('OpacSuppression')) { } $template->param ( LIMIT_INPUTS => \@limit_inputs ); +$template->param ( OPACResultsSidebar => C4::Context->preference('OPACResultsSidebar')); ## II. DO THE SEARCH AND GET THE RESULTS my $total = 0; # the total results for the whole set