fix request
This commit is contained in:
parent
68ebef7280
commit
1e95fcc468
1 changed files with 9 additions and 2 deletions
|
@ -14,6 +14,7 @@ my $input = new CGI;
|
|||
#print $input->header;
|
||||
|
||||
my @bibitems=$input->param('biblioitem');
|
||||
my @reqbib=$input->param('reqbib');
|
||||
my $biblio=$input->param('biblio');
|
||||
my $borrower=$input->param('member');
|
||||
my $branch=$input->param('pickup');
|
||||
|
@ -39,12 +40,18 @@ my $env;
|
|||
my $const;
|
||||
if ($input->param('request') eq 'any'){
|
||||
$const='a';
|
||||
}
|
||||
CreateReserve(\$env,$branch,$bornum->{'borrowernumber'},$biblio,$const,\@realbi,$rank[0]);
|
||||
} elsif ($reqbib[0] ne ''){
|
||||
$const='o';
|
||||
CreateReserve(\$env,$branch,$bornum->{'borrowernumber'},$biblio,$const,\@reqbib,$rank[0]);
|
||||
} else {
|
||||
CreateReserve(\$env,$branch,$bornum->{'borrowernumber'},$biblio,'a',\@realbi,$rank[0]);
|
||||
}
|
||||
#print @realbi;
|
||||
|
||||
print $input->redirect("request.pl?bib=$biblio");
|
||||
} elsif ($bornum eq ''){
|
||||
print $input->header();
|
||||
print "Invalid card number please try again";
|
||||
print $input->dump;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue