1 package C4::Circulation::Borrissues; #assumes C4/Circulation/Borrissues
3 #package to deal with Issues
4 #written 3/11/99 by chris@katipo.co.nz
12 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
14 # set the version for version checking
18 @EXPORT = qw(&printallissues);
19 %EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
21 # your exported package globals go here,
22 # as well as any optionally exported functions
24 @EXPORT_OK = qw($Var1 %Hashit);
27 # non-exported package globals go here
28 use vars qw(@more $stuff);
30 # initalize package globals, first exported ones
35 # then the others (which are still accessible as $Some::Module::stuff)
39 # all file-scoped lexicals must be created before
40 # the functions below that use them.
42 # file-private lexicals go here
46 # here's a file-private function as a closure,
47 # callable as &$priv_func; it cannot be prototyped.
52 # make all your functions, whether exported or not;
56 my ($env,$borrower)=@_;
59 my $query = "select * from issues,items,biblioitems,biblio
60 where borrowernumber = '$borrower->{'borrowernumber'}'
61 and (returndate is null)
62 and (issues.itemnumber = items.itemnumber)
63 and (items.biblioitemnumber = biblioitems.biblioitemnumber)
64 and (items.biblionumber = biblio.biblionumber)
66 my $sth = $dbh->prepare($query);
69 while (my $data = $sth->fetchrow_hashref) {
75 remoteprint ($env,\@issues,$borrower);
77 END { } # module clean-up code here (global destructor)