From 277f3490bec30c8e1a2892553c1c4c10b4aeac8f Mon Sep 17 00:00:00 2001 From: finlayt Date: Thu, 2 May 2002 00:06:28 +0000 Subject: [PATCH] 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 --- circ/branchtransfers.pl | 91 ++-- circ/circulation.pl | 924 +++++----------------------------------- circ/circulationold.pl | 913 +++++++++++++++++++++++++++++++++++++++ circ/returns.pl | 316 ++++++++++++++ 4 files changed, 1375 insertions(+), 869 deletions(-) create mode 100755 circ/circulationold.pl create mode 100755 circ/returns.pl diff --git a/circ/branchtransfers.pl b/circ/branchtransfers.pl index 52660ff34a..ae2144eb41 100755 --- a/circ/branchtransfers.pl +++ b/circ/branchtransfers.pl @@ -6,9 +6,10 @@ use strict; use CGI; use C4::Circulation::Circ2; -use C4::Search; use C4::Output; +############################################### +# constants my %env; my $headerbackgroundcolor='#99cc33'; @@ -18,26 +19,27 @@ my $linecolor1='#ffffcc'; my $linecolor2='white'; my $backgroundimage="/images/background-mem.gif"; +my $branches=getbranches(); + +############################################### +# Getting state + my $query=new CGI; -my $branches=getbranches(\%env); my $tobranchcd=$query->param('tobranchcd'); my $frbranchcd=''; -$env{'tobranchcd'}=$tobranchcd; - +# set up the branchselect options.... my $tobranchoptions; -foreach (keys %$branches) { - (next) unless ($_); - (next) if (/^TR$/); - my $selected=''; - ($selected='selected') if ($_ eq $tobranchcd); - $tobranchoptions.="