koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Owen Leonard
Subject: [Koha-cvs] CVS: koha renewscript.pl,1.6,1.7
Date: Thu, 27 Jan 2005 11:31:16 -0800

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

Modified Files:
        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.7
diff -C2 -r1.6 -r1.7
*** renewscript.pl      8 Nov 2004 20:00:00 -0000       1.6
--- renewscript.pl      27 Jan 2005 19:31:14 -0000      1.7
***************
*** 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");
! }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]