From 7ccbe292084de222fbea6f5368102a9e091ed93d Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 27 Jan 2005 19:31:14 +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..e1e7ce4bc9 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"); +} -- 2.39.5