|
Lines 28-39
use C4::Output qw( output_html_with_http_headers );
Link Here
|
| 28 |
my $cgi = CGI->new; |
28 |
my $cgi = CGI->new; |
| 29 |
|
29 |
|
| 30 |
# Getting the template and auth |
30 |
# Getting the template and auth |
| 31 |
my ($template, $loggedinuser, $cookie) |
31 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
| 32 |
= get_template_and_user({template_name => "opac-overdrive-search.tt", |
32 |
{ |
| 33 |
query => $cgi, |
33 |
template_name => "opac-overdrive-search.tt", |
| 34 |
type => "opac", |
34 |
query => $cgi, |
| 35 |
authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), |
35 |
type => "opac", |
| 36 |
}); |
36 |
authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), |
|
|
37 |
} |
| 38 |
); |
| 37 |
|
39 |
|
| 38 |
$template->{'VARS'}->{'q'} = $cgi->param('q'); |
40 |
$template->{'VARS'}->{'q'} = $cgi->param('q'); |
| 39 |
$template->{'VARS'}->{'limit'} = C4::Context->preference('OPACnumSearchResults') || 20; |
41 |
$template->{'VARS'}->{'limit'} = C4::Context->preference('OPACnumSearchResults') || 20; |
| 40 |
- |
|
|