[Koha-zebra] Re: zebra extended services problem [continued]

Paul POULAIN paul.poulain at free.fr
Tue Jan 10 16:16:26 CET 2006


Paul POULAIN a écrit :

/me stupid, pls ignore the previous mail (with the 
loooooonnnnnnnggggggggg log)

If I do :
while ((my $biblionumber) = $sth->fetchrow) {
	my $record = XMLgetbiblio($dbh,$biblionumber);
	my $Zpackage = $Zconn->package();
	$Zpackage->option(databaseName => 'Koha');
	$Zpackage->option(action => "recordInsert");
	$Zpackage->option(record => $record);
	$Zpackage->send("update");
	$Zpackage->destroy;
	$i++;
	print '.';
	print "$i\r" unless ($i % 100);
}

(remove the eval { } on ->send() )
I get a :
ZOOM error 10002 "Encoding failed" from diag-set 'ZOOM'
(and a die)

Thus, I still have problems with the record model :-(

The rest of my previous mail is still valid :
zebra.cfg :
==============
profilePath: ${srcdir:-.}:/usr/local/share/idzebra/tab/
attset: bib1.att
attset: explain.att
recordId: (bib1,Local-number)
recordType: grs.marc.unimarc
lockDir: lock
setTmpDir: tmp
keyTmpDir: tmp
memMax: 4
perm.anonymous: rw
encoding utf8
storeKeys:1
storeData:1

and unimarc.abs :
=================
name unimarc
reference Usmarc
attset bib1.att
tagset unimarc.tag

marc unimarc.mar

esetname B @
esetname F @
encoding utf8


# 010a is isbn
elm 020                 isbn            -
elm 020/?               isbn            !:w
elm 020/?/a             isbn            !:w,!:p

# 011a is issn
elm 011                 issn            -
elm 011/?               issn            !:w
elm 011/?/a             issn            !:w,!:p

elm 700            Author                  -
elm 700/?          Author                  -
elm 700/?/a        Author                  !:w

#elm 701            Author                  -
#elm 701/?          Author                  -
#elm 701/?/a        Author                  !:w

elm 200            Title                   -
elm 200/?          Title                   -
elm 200/?/a        Title                   !:w,!:p
elm 200/?/e        Title                   !:w,!:p

elm 210            Publisher               -
elm 210/?          Publisher               -
elm 210/?/c        Publisher               !:w
elm 210/?/d        Date-of-publication     !:w

elm 090            Local-number            -
elm 090/?          Local-number            -
elm 090/?/9        Local-number            !:w

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





More information about the Koha-zebra mailing list