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
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
27 my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user
(
29 template_name
=> "circ/offline.tt",
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;