Adding option to pass parameter from circulation asking renewscript to redirect back to circulation instead of moremember.pl. Since modification of the circulation templates allows a renew form on the circulation page, it's necessary to allow different redirects from different pages. renewscript.pl still defaults to redirecting to moremember.pl, so changes to templates are not required if not desired.

This commit is contained in:
oleonard 2005-01-27 19:38:27 +00:00
parent f14daf7f38
commit 83c51c91cd
1 changed files with 7 additions and 1 deletions

View File

@ -44,6 +44,8 @@ for (my $i=0;$i<$count;$i++){
}
}
my %env;
my $destination = $input->param("destination");
my $cardnumber = $input->param("cardnumber");
my $bornum=$input->param("bornum");
while ( my ($itemno, $value) = each %data) {
# warn "$itemno = $value\n";
@ -57,4 +59,8 @@ while ( my ($itemno, $value) = each %data) {
}
}
print $input->redirect("/cgi-bin/koha/members/moremember.pl?bornum=$bornum");
if($destination eq "circ"){
print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$cardnumber");
} else {
print $input->redirect("/cgi-bin/koha/members/moremember.pl?bornum=$bornum");
}