Bug 22705: Change default value of cxn_pool to 'Static'
[koha.git] / circ / offline.pl
blobb7757e214ecff835553d8c882578d975cf117c0e
1 #!/usr/bin/perl
3 # Copyright 2013 C & P Bibliography Services
4 # This file is part of Koha.
6 # Koha is free software; you can redistribute it and/or modify it under the
7 # terms of the GNU General Public License as published by the Free Software
8 # Foundation; either version 3 of the License, or (at your option) any later
9 # version.
11 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License along with
16 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
17 # Suite 330, Boston, MA 02111-1307 USA
20 use Modern::Perl;
21 use CGI qw ( -utf8 );
22 use C4::Auth;
23 use C4::Output;
24 use C4::Context;
26 my $query = new CGI;
27 my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user(
29 template_name => "circ/offline.tt",
30 query => $query,
31 type => "intranet",
32 authnotrequired => 0,
33 flagsrequired => { circulate => "circulate_remaining_permissions" },
37 $template->{'VARS'}->{'AllowOfflineCirculation'} =
38 C4::Context->preference('AllowOfflineCirculation');
39 $template->{'VARS'}->{'maxoutstanding'} =
40 C4::Context->preference('maxoutstanding') || 0;
41 output_html_with_http_headers $query, $cookie, $template->output;