From finlayt@users.sourceforge.net Wed May 1 17:06:32 2002 From: Finlay Thompson To: koha-devel@lists.koha-community.org Subject: [Koha-devel] CVS: koha/circ circulationold.pl,NONE,1.1 returns.pl,NONE,1.1 branchtransfers.pl,1.3,1.4 circulation.pl,1.23,1.24 Date: Wed, 01 May 2002 17:18:08 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4426775210285999015==" --===============4426775210285999015== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Update of /cvsroot/koha/koha/circ In directory usw-pr-cvs1:/tmp/cvs-serv14842 Modified Files: branchtransfers.pl circulation.pl=20 Added Files: circulationold.pl returns.pl=20 Log Message: Changes to circulations: added returns.pl -> deals with the returns only moved old circulation.pl to circulationold.pl which still deals with issues. fixed up branchtransfers.pl moved circulation2.pl to circulation.pl Note more changes coming next week --- NEW FILE --- #!/usr/bin/perl use CGI qw/:standard/; use C4::Circulation::Circ2; use C4::Output; use C4::Print; use DBI; my %env; my $headerbackgroundcolor=3D'#99cc33'; my $circbackgroundcolor=3D'#ffffcc'; my $circbackgroundcolor=3D'white'; my $linecolor1=3D'#ffffcc'; my $linecolor2=3D'white'; my $backgroundimage=3D"/images/background-mem.gif"; my $query=3Dnew CGI; my $branches=3Dgetbranches(\%env); my $printers=3Dgetprinters(\%env); my $branch=3D$query->param('branch'); my $printer=3D$query->param('printer'); #print $query->header; ($branch) || ($branch=3D$query->cookie('branch')); ($printer) || ($printer=3D$query->cookie('printer')); my ($oldbranch, $oldprinter); if ($query->param('selectnewbranchprinter')) { $oldbranch=3D$branch; $oldprinter=3D$printer; $branch=3D''; $printer=3D''; } $env{'branchcode'}=3D$branch; $env{'printer'}=3D$printer; $env{'queue'}=3D$printer; my $branchcount=3D0; my $printercount=3D0; my $branchoptions; my $printeroptions; foreach (keys %$branches) { (next) unless ($_); (next) if (/^TR$/); $branchcount++; my $selected=3D''; ($selected=3D'selected') if ($_ eq $oldbranch); $branchoptions.=3D"