[Koha-cvs] CVS: koha/acqui.simple marcimport.pl,1.6.2.23,1.6.2.24

Steve Tonnesen tonnesen at users.sourceforge.net
Tue Jun 25 19:12:09 CEST 2002


Update of /cvsroot/koha/koha/acqui.simple
In directory usw-pr-cvs1:/tmp/cvs-serv9544

Modified Files:
      Tag: rel-1-2
	marcimport.pl 
Log Message:
Bug Fix.  It's not good enough that the field is defined, it must also have
some distinct value.


Index: marcimport.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui.simple/marcimport.pl,v
retrieving revision 1.6.2.23
retrieving revision 1.6.2.24
diff -C2 -r1.6.2.23 -r1.6.2.24
*** marcimport.pl	14 Jun 2002 21:20:27 -0000	1.6.2.23
--- marcimport.pl	25 Jun 2002 17:12:06 -0000	1.6.2.24
***************
*** 602,606 ****
  	$searchfield="";
  	foreach $fieldname ( "controlnumber", "lccn", "issn", "isbn") {
! 	    if ( defined $bib->{$fieldname} ) {
  		$searchfield=$fieldname;
  		$searchvalue=$bib->{$fieldname};
--- 602,606 ----
  	$searchfield="";
  	foreach $fieldname ( "controlnumber", "lccn", "issn", "isbn") {
! 	    if ( defined $bib->{$fieldname} && $bib->{$fieldname} ) {
  		$searchfield=$fieldname;
  		$searchvalue=$bib->{$fieldname};





More information about the Koha-cvs mailing list