Bug 29318: Tidy the code

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Nick Clemens 2021-10-25 18:50:17 +00:00 committed by Jonathan Druart
parent 0099cff739
commit 474f228a69

View file

@ -28,12 +28,14 @@ use C4::Output qw( output_html_with_http_headers );
my $cgi = CGI->new;
# Getting the template and auth
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "opac-overdrive-search.tt",
query => $cgi,
type => "opac",
authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
});
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "opac-overdrive-search.tt",
query => $cgi,
type => "opac",
authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
}
);
$template->{'VARS'}->{'q'} = $cgi->param('q');
$template->{'VARS'}->{'limit'} = C4::Context->preference('OPACnumSearchResults') || 20;