[Koha-devel] bugfix suggestion for 2.0 branch

Paul POULAIN paul.poulain at free.fr
Mon Sep 6 07:23:05 CEST 2004


Modified Files:
	Biblio.pm 
Log Message:
bugfix => drop empty fields, NOT fields containing 0
***************
*** 1059,1064 ****
  				$prevvalue=@$rvalues[$i];
  			} else {
! 				if (@$rvalues[$i]) {
  					$field->add_subfields(@$rsubfields[$i] => @$rvalues[$i]);
  				}
  			}
--- 1061,1067 ----
  				$prevvalue=@$rvalues[$i];
  			} else {
! 				if (length(@$rvalues[$i])>0) {
  					$field->add_subfields(@$rsubfields[$i] => @$rvalues[$i]);
  				}
  			}
(line numbers are for HEAD, probably not the same in 2.0 branch).
It's located in MARChtml2marc sub

-- 
Paul POULAIN
Consultant indépendant en logiciels libres
responsable francophone de koha (SIGB libre http://www.koha-fr.org)





More information about the Koha-devel mailing list