View | Details | Raw Unified | Return to bug 29318
Collapse All | Expand All

(-)a/opac/opac-overdrive-search.pl (-3 / +2 lines)
Lines 22-27 use Modern::Perl; Link Here
22
use CGI qw ( -utf8 );
22
use CGI qw ( -utf8 );
23
23
24
use C4::Auth qw( get_template_and_user );
24
use C4::Auth qw( get_template_and_user );
25
use C4::Context;
25
use C4::Output qw( output_html_with_http_headers );
26
use C4::Output qw( output_html_with_http_headers );
26
27
27
my $cgi = CGI->new;
28
my $cgi = CGI->new;
Lines 31-38 my ($template, $loggedinuser, $cookie) Link Here
31
= get_template_and_user({template_name => "opac-overdrive-search.tt",
32
= get_template_and_user({template_name => "opac-overdrive-search.tt",
32
                                query => $cgi,
33
                                query => $cgi,
33
                                type => "opac",
34
                                type => "opac",
34
                                authnotrequired => 1,
35
                                authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
35
                                flagsrequired => {borrowers => 'edit_borrowers'},
36
                                });
36
                                });
37
37
38
$template->{'VARS'}->{'q'} = $cgi->param('q');
38
$template->{'VARS'}->{'q'} = $cgi->param('q');
39
- 

Return to bug 29318