1 package C4::Circulation::Borrissues;
5 #package to deal with Issues
6 #written 3/11/99 by chris@katipo.co.nz
9 # Copyright 2000-2002 Katipo Communications
11 # This file is part of Koha.
13 # Koha is free software; you can redistribute it and/or modify it under the
14 # terms of the GNU General Public License as published by the Free Software
15 # Foundation; either version 2 of the License, or (at your option) any later
18 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
19 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
20 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License along with
23 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
24 # Suite 330, Boston, MA 02111-1307 USA
31 use vars qw($VERSION @ISA @EXPORT);
33 # set the version for version checking
37 @EXPORT = qw(&printallissues);
39 # FIXME - This function is only used in C4::InterfaceCDK, which looks
40 # obsolete. Does that mean that this module is also obsolete?
41 # Otherwise, this needs a POD.
43 my ($env,$borrower)=@_;
45 my $dbh = C4::Context->dbh;
46 my $query = "select * from issues,items,biblioitems,biblio
47 where borrowernumber = '$borrower->{'borrowernumber'}'
48 and (returndate is null)
49 and (issues.itemnumber = items.itemnumber)
50 and (items.biblioitemnumber = biblioitems.biblioitemnumber)
51 and (items.biblionumber = biblio.biblionumber)
53 my $sth = $dbh->prepare($query);
56 while (my $data = $sth->fetchrow_hashref) {
57 # FIXME - This should be $issues[$x] = $data, right?
58 # Or better yet, push @issues, $data.
63 remoteprint ($env,\@issues,$borrower);