5 #package to deal with circulation
8 # Copyright 2000-2002 Katipo Communications
10 # This file is part of Koha.
12 # Koha is free software; you can redistribute it and/or modify it under the
13 # terms of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
17 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
18 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
19 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License along with
22 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
23 # Suite 330, Boston, MA 02111-1307 USA
25 # FIXME - This module doesn't compile! Then again, it's never used, so
26 # presumably this file is obsolete, right?
31 use C4::Circulation::Main;
32 use C4::Circulation::Issues;
33 use C4::Circulation::Returns;
34 use C4::Circulation::Renewals;
35 use C4::Circulation::Borrower;
40 use vars qw($VERSION @ISA @EXPORT);
42 # set the version for version checking
46 @EXPORT = qw(&Start_circ);
52 &startint($env,'Circulation');
58 while ($donext ne 'Quit') {
59 if ($donext eq "Circ") {
60 #($reason,$data) = menu($env,'console','Circulation',
61 # ('Issues','Returns','Borrower Enquiries','Reserves','Log In'));
62 #&startint($env,"Menu");
63 ($reason,$data) = menu($env,'console','Circulation',
64 ('Issues','Returns','Select Branch','Select Printer'));
68 if ($data eq 'Issues') {
69 $donext=Issue($env); #C4::Circulation::Issues
70 } elsif ($data eq 'Returns') {
71 $donext=Returns($env); #C4::Circulation::Returns
72 } elsif ($data eq 'Select Branch') {
74 } elsif ($data eq 'Select Printer') {
76 } elsif ($data eq 'Borrower Enquiries') {
77 # $donext=Borenq($env); #C4::Circulation::Borrower - conversion
78 } elsif ($data eq 'Reserves'){
79 $donext=EnterReserves($env); #C4::Reserves
80 } elsif ($data eq 'Quit') {