From 83c51c91cdf0a4e6aac2e802de5a8afa6afc5ae0 Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 27 Jan 2005 19:38:27 +0000 Subject: [PATCH] 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. --- renewscript.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/renewscript.pl b/renewscript.pl index 368d4a2148..80d27500bc 100755 --- a/renewscript.pl +++ b/renewscript.pl @@ -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"); +} \ No newline at end of file -- 2.39.5