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:
parent
f14daf7f38
commit
83c51c91cd
|
|
@ -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");
|
||||
}
|
||||
Loading…
Reference in New Issue