[Koha-cvs] CVS: koha renewscript.pl,1.6,1.6.2.1

Owen Leonard oleonard at users.sourceforge.net
Thu Jan 27 20:38:30 CET 2005


Update of /cvsroot/koha/koha
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1485

Modified Files:
      Tag: rel_2_2
	renewscript.pl 
Log Message:
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.

Index: renewscript.pl
===================================================================
RCS file: /cvsroot/koha/koha/renewscript.pl,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -C2 -r1.6 -r1.6.2.1
*** renewscript.pl	8 Nov 2004 20:00:00 -0000	1.6
--- renewscript.pl	27 Jan 2005 19:38:27 -0000	1.6.2.1
***************
*** 45,48 ****
--- 45,50 ----
  }
  my %env;
+ my $destination = $input->param("destination");
+ my $cardnumber = $input->param("cardnumber");
  my $bornum=$input->param("bornum");
  while ( my ($itemno, $value) = each %data) {
***************
*** 58,60 ****
  }
  
! print $input->redirect("/cgi-bin/koha/members/moremember.pl?bornum=$bornum");
--- 60,66 ----
  }
  
! 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





More information about the Koha-cvs mailing list