3 # 2009 BibLibre <jeanandre.santoni@biblibre.com>
5 # This file is part of Koha.
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 2 of the License, or (at your option) any later
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along with
17 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
18 # Suite 330, Boston, MA 02111-1307 USA
33 my ($template, $loggedinuser, $cookie) = get_template_and_user({
34 template_name => "offline_circ/list.tmpl",
38 flagsrequired => { circulate => "circulate_remaining_permissions" },
41 my $operations = GetOfflineOperations;
44 my $biblio = GetBiblioFromItemNumber(undef, $_->{'barcode'});
45 $_->{'bibliotitle'} = $biblio->{'title'};
46 $_->{'biblionumber'} = $biblio->{'biblionumber'};
47 my $borrower = GetMemberDetails(undef,$_->{'cardnumber'});
48 $_->{'borrowernumber'} = $borrower->{'borrowernumber'};
49 $_->{'borrower'} = join(' ', $borrower->{'firstname'}, $borrower->{'surname'});
50 $_->{'actionissue'} = $_->{'action'} eq 'issue';
51 $_->{'actionreturn'} = $_->{'action'} eq 'return';
53 $template->param(pending_operations => $operations);
55 output_html_with_http_headers $query, $cookie, $template->output;