Lines 42-47
use Date::Calc qw/Today Date_to_Days/;
Link Here
|
42 |
my $maxreserves = C4::Context->preference("maxreserves"); |
42 |
my $maxreserves = C4::Context->preference("maxreserves"); |
43 |
|
43 |
|
44 |
my $query = new CGI; |
44 |
my $query = new CGI; |
|
|
45 |
|
46 |
# if RequestOnOpac (for placing holds) is disabled, leave immediately |
47 |
if ( ! C4::Context->preference('RequestOnOpac') ) { |
48 |
print $query->redirect("/cgi-bin/koha/errors/404.pl"); |
49 |
exit; |
50 |
} |
51 |
|
45 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
52 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
46 |
{ |
53 |
{ |
47 |
template_name => "opac-reserve.tt", |
54 |
template_name => "opac-reserve.tt", |
48 |
- |
|
|