[Koha-cvs] CVS: koha/acqui acquire.pl,1.8,1.9 newbiblio.pl,1.9,1.10

Ambrose Li acli at users.sourceforge.net
Thu Feb 6 07:35:29 CET 2003


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

Modified Files:
	acquire.pl newbiblio.pl 
Log Message:
Use the new C4::Boolean module and the new C4::Auth::boolean_parameter
function to test for boolean values in parameters


Index: acquire.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui/acquire.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** acquire.pl	13 Oct 2002 07:37:10 -0000	1.8
--- acquire.pl	6 Feb 2003 06:35:26 -0000	1.9
***************
*** 174,178 ****
  ;
  
! my $auto_barcode = C4::Context->preference("autoBarcode") || 0;
  	# See whether barcodes should be automatically allocated.
  	# Defaults to 0, meaning "no".
--- 174,178 ----
  ;
  
! my $auto_barcode = C4::Context->boolean_preference("autoBarcode") || 0;
  	# See whether barcodes should be automatically allocated.
  	# Defaults to 0, meaning "no".

Index: newbiblio.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui/newbiblio.pl,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** newbiblio.pl	6 Oct 2002 00:01:05 -0000	1.9
--- newbiblio.pl	6 Feb 2003 06:35:26 -0000	1.10
***************
*** 232,236 ****
  ;
  
! my $auto_barcode = C4::Context->preference("autoBarcode") || 0;
  	# See whether barcodes should be automatically allocated.
  	# Defaults to 0, meaning "no".
--- 232,236 ----
  ;
  
! my $auto_barcode = C4::Context->boolean_preference("autoBarcode") || 0;
  	# See whether barcodes should be automatically allocated.
  	# Defaults to 0, meaning "no".





More information about the Koha-cvs mailing list