From 3206db0692b9e9c1e7bf148fa61ae6f5bd2726f5 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Thu, 20 Sep 2007 10:31:16 +0200 Subject: [PATCH] no need to define a const var just to pass it to a sub Signed-off-by: Chris Cormack --- reserve/placerequest.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reserve/placerequest.pl b/reserve/placerequest.pl index cb1c5aaaf9..2a5fc050ff 100755 --- a/reserve/placerequest.pl +++ b/reserve/placerequest.pl @@ -51,7 +51,7 @@ if ($checkitem ne ''){ my $item = $checkitem; $item = GetItem($item); if ( $item->{'holdingbranch'} eq $branch ){ - $found = 'W'; + $found = 'W'; } @@ -74,13 +74,13 @@ if ($type eq 'str8' && $borrowernumber ne ''){ } my $const; if ($input->param('request') eq 'any'){ - $const='a'; - AddReserve($branch,$borrowernumber->{'borrowernumber'},$biblionumber,$const,\@realbi,$rank[0],$notes,$title,$checkitem,$found); + # place a request on 1st available + AddReserve($branch,$borrowernumber->{'borrowernumber'},$biblionumber,'a',\@realbi,$rank[0],$notes,$title,$checkitem,$found); } elsif ($reqbib[0] ne ''){ - $const='o'; - AddReserve($branch,$borrowernumber->{'borrowernumber'},$biblionumber,$const,\@reqbib,$rank[0],$notes,$title,$checkitem, $found); + # place a request on a given item + AddReserve($branch,$borrowernumber->{'borrowernumber'},$biblionumber,'o',\@reqbib,$rank[0],$notes,$title,$checkitem, $found); } else { - AddReserve($branch,$borrowernumber->{'borrowernumber'},$biblionumber,'a',\@realbi,$rank[0],$notes,$title,$checkitem, $found); + AddReserve($branch,$borrowernumber->{'borrowernumber'},$biblionumber,'a',\@realbi,$rank[0],$notes,$title,$checkitem, $found); } print $input->redirect("request.pl?biblionumber=$biblionumber"); -- 2.39.5