[Koha-cvs] CVS: koha loadmodules.pl,1.14,1.15

Chris Cormack rangi at users.sourceforge.net
Mon Apr 21 06:30:36 CEST 2003


Update of /cvsroot/koha/koha
In directory sc8-pr-cvs1:/tmp/cvs-serv26454

Modified Files:
	loadmodules.pl 
Log Message:
Adding back in code to allow switching between acquisition modules

Not sure why this was deleted, im picking by accident


Index: loadmodules.pl
===================================================================
RCS file: /cvsroot/koha/koha/loadmodules.pl,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** loadmodules.pl	10 Mar 2003 15:16:55 -0000	1.14
--- loadmodules.pl	21 Apr 2003 04:30:33 -0000	1.15
***************
*** 37,41 ****
  
  sub acquisitions {
! 		print $input ->redirect("/cgi-bin/koha/acqui/acqui-home.pl");
  }
  
--- 37,53 ----
  
  sub acquisitions {
!     my $aq_type = C4::Context->preference("acquisitions") || "normal"; 
!     # Get the acquisition preference. This should be: 
!     #       "simple" - minimal information required 
!     #       "normal" - full information required 
!     #       other - Same as "normal" 
!      
!     if ($aq_type eq 'simple') { 
! 	print $input->redirect("/cgi-bin/koha/acqui.simple/addbooks.pl"); 
!     } elsif ($aq_type eq 'normal') { 
! 	print $input ->redirect("/cgi-bin/koha/acqui/acqui-home.pl"); 
!     } else {
! 	print $input ->redirect("/cgi-bin/koha/acqui/acqui-home.pl");
!     }
  }
  





More information about the Koha-cvs mailing list