From finlayt@users.sourceforge.net Tue Mar 12 13:04:37 2002 From: Finlay Thompson To: koha-devel@lists.koha-community.org Subject: [Koha-devel] CVS: koha/circ branchtransfers.pl,NONE,1.1 circulation.pl,1.20,1.21 Date: Tue, 12 Mar 2002 13:05:10 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4980267357546656148==" --===============4980267357546656148== 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-serv25121 Modified Files: circulation.pl=20 Added Files: branchtransfers.pl=20 Log Message: Branchtransfers.pl provides a form for entering barcodes and selecting a destination branch. New rows are entered into the branchtransfers table for each item "transfered". --- NEW FILE --- #!/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=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 $tobranchcd=3D$query->param('tobranchcd'); my $frbranchcd=3D''; $env{'tobranchcd'}=3D$tobranchcd; my $tobranchoptions; foreach (keys %$branches) { (next) unless ($_); (next) if (/^TR$/); my $selected=3D''; ($selected=3D'selected') if ($_ eq $tobranchcd); $tobranchoptions.=3D"