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

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


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

Modified Files:
      Tag: rel-1-2
	marcimport.pl 
Log Message:
Bug fix.  Again, it's not sufficient that they are equal, they must also
be some unique value.


Index: marcimport.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui.simple/marcimport.pl,v
retrieving revision 1.6.2.24
retrieving revision 1.6.2.25
diff -C2 -r1.6.2.24 -r1.6.2.25
*** marcimport.pl	25 Jun 2002 17:12:06 -0000	1.6.2.24
--- marcimport.pl	25 Jun 2002 17:16:10 -0000	1.6.2.25
***************
*** 591,595 ****
  	$sth=$dbh->prepare("select * 
  	  from biblioitems 
! 	  where isbn=?  or issn=?  or lccn=? ");
  	$sth->execute($bib->{isbn},$bib->{issn},$bib->{lccn});
  	if ($sth->rows) {
--- 591,595 ----
  	$sth=$dbh->prepare("select * 
  	  from biblioitems 
! 	  where (isbn=? and isbn!='')  or (issn=? and issn!='')  or (lccn=? and lccn!='') ");
  	$sth->execute($bib->{isbn},$bib->{issn},$bib->{lccn});
  	if ($sth->rows) {





More information about the Koha-cvs mailing list