diff --git a/circ/branchtransfers.pl b/circ/branchtransfers.pl new file mode 100755 index 0000000000..a17eb6c80c --- /dev/null +++ b/circ/branchtransfers.pl @@ -0,0 +1,196 @@ +#!/usr/bin/perl + +#written 11/3/2002 by Finlay +#script to execute branch transfers of books + +use strict; +use CGI; +use C4::Circulation::Circ2; +use C4::Search; +use C4::Output; + + +my %env; +my $headerbackgroundcolor='#99cc33'; +my $circbackgroundcolor='#ffffcc'; +my $circbackgroundcolor='white'; +my $linecolor1='#ffffcc'; +my $linecolor2='white'; +my $backgroundimage="/images/background-mem.gif"; + +my $query=new CGI; +my $branches=getbranches(\%env); + +my $tobranchcd=$query->param('tobranchcd'); +my $frbranchcd=''; + +$env{'tobranchcd'}=$tobranchcd; + + +my $tobranchoptions; +foreach (keys %$branches) { + (next) unless ($_); + (next) if (/^TR$/); + my $selected=''; + ($selected='selected') if ($_ eq $tobranchcd); + $tobranchoptions.="