From 9d891b5f41c8a3f177dd9df9d4b1c8f5ee639a43 Mon Sep 17 00:00:00 2001 From: finlayt Date: Tue, 12 Mar 2002 21:04:32 +0000 Subject: [PATCH] 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". --- circ/branchtransfers.pl | 196 ++++++++++++++++++++++++++++++++++++++++ circ/circulation.pl | 9 +- 2 files changed, 201 insertions(+), 4 deletions(-) create mode 100755 circ/branchtransfers.pl 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.="