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:
parent
0099cff739
commit
474f228a69
1 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue