[Koha-zebra] Zebra config problem (still 2)

Paul POULAIN paul.poulain at free.fr
Tue Jan 31 12:08:02 CET 2006


Hello,

I still have some problems with ZOOM/zebra/yaz config and setup.

1ST problem : building zebra DB with recordId
=============================================

Here is my zebra.cfg :
> profilePath: ${srcdir:-.}:/usr/local/share/idzebra/tab/
> attset: bib1.att
> attset: explain.att
> recordId: (bib1, Identifier-standard)
> recordType: grs.xml
> lockDir: lock
> setTmpDir: tmp
> keyTmpDir: tmp
> memMax: 100
> perm.anonymous: rw 
> encoding utf-8
> storeKeys:1
> storeData:1

If I run a script to rebuild the DB, I get in the log :
> 11:36:45-31/01 zebrasrv(1) [log] profilePath=.:/usr/local/share/idzebra/tab/ cwd=/home/paul/koha.dev/head/misc/zebra/unimarc
> 11:36:45-31/01 zebrasrv(1) [log] record 0 type XML
> 11:36:45-31/01 zebrasrv(1) [log] 3129 bytes:
> <?xml version="1.0" encoding="UTF-8"?>
> <collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.l ...
> 11:36:45-31/01 zebrasrv(1) [warn] Record didn't contain match fields in (bib1, Identifier-standard)
> 11:36:45-31/01 zebrasrv(1) [warn] Bad match criteria (recordID)
> 11:36:45-31/01 zebrasrv(1) [log] zebra_update_record returned res=1
> 11:36:45-31/01 zebrasrv(1) [warn] zebra_update_record failed r=1
> 11:36:45-31/01 zebrasrv(1) [log] zebra_end_trans
> 11:36:45-31/01 zebrasrv(1) [log] sorting section 1
> 11:36:45-31/01 zebrasrv(1) [log] Iterations . . .     73
> 11:36:45-31/01 zebrasrv(1) [log] Distinct words .     31
> 11:36:45-31/01 zebrasrv(1) [log] Updates. . . . .     18
> 11:36:45-31/01 zebrasrv(1) [log] Deletions. . . .      0
> 11:36:45-31/01 zebrasrv(1) [log] Insertions . . .     13
> 11:36:45-31/01 zebrasrv(1) [log][app2] zebra_register_close p=0x8146578
> 11:36:45-31/01 zebrasrv(1) [log] Records:       0 i/u/d 0/0/0
> 11:36:45-31/01 zebrasrv(1) [log] user/system: 1/0
> 11:36:45-31/01 zebrasrv(1) [request] EsRequest  ERROR 224 update_record failed
> 11:36:45-31/01 zebrasrv(1) [session] Connection closed by client

If I comment
 > recordId: (bib1, Identifier-standard)
everything goes well !
Here is a copy of the XML I sent :
> <?xml version="1.0" encoding="UTF-8"?>
> <collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd" xmlns="http://www.loc.gov/MARC21/slim">
> 
> <record>
>   <leader>00743     2200217   4500</leader>
>   <controlfield tag="001">2</controlfield>
>   <datafield tag="010" ind1=" " ind2=" ">
>     <subfield code="a">2729843132</subfield>
>     <subfield code="d">190 F</subfield>
>   </datafield>
>   <datafield tag="090" ind1=" " ind2=" ">
>     <subfield code="9">1</subfield>
>     <subfield code="a">1</subfield>
>   </datafield>
>   <datafield tag="100" ind1=" " ind2=" ">
>     <subfield code="a">1995                y0fre 0103    ba</subfield>
>   </datafield>
>   <datafield tag="101" ind1=" " ind2=" ">
>     <subfield code="a">fre</subfield>
>   </datafield>
>   <datafield tag="105" ind1=" " ind2=" ">
>     <subfield code="a">y       00  y</subfield>
>   </datafield>
>   <datafield tag="200" ind1="1" ind2=" ">
>     <subfield code="a">Introduction aux probabilités</subfield>
>     <subfield code="b">LIVR</subfield>
>     <subfield code="f">Jean-Pierre DELMAS</subfield>
>   </datafield>
>   <datafield tag="210" ind1=" " ind2=" ">
>     <subfield code="5">Edition Marketing</subfield>
>     <subfield code="a">Paris</subfield>
>     <subfield code="c">Edition Marketing</subfield>
>     <subfield code="d">1993</subfield>
>   </datafield>
<cut a little bit>
>   <datafield tag="700" ind1=" " ind2=" ">
>     <subfield code="9">6659</subfield>
>     <subfield code="a">DELMAS, Jean-Pierre</subfield>
>   </datafield>
>   <datafield tag="995" ind1=" " ind2=" ">
>     <subfield code="b">CDI</subfield>
>     <subfield code="c">CDI</subfield>
>     <subfield code="e">SL</subfield>
>     <subfield code="f">Non inventorie</subfield>
>     <subfield code="j">000498</subfield>
>     <subfield code="o">2</subfield>
>     <subfield code="9">1</subfield>
>   </datafield>
> </record>

my Identifier-standard is in 090$a, how can I explain this to zebra ?
I tried to modify marc21.abs to add :
 > melm 090$a		Identifier-standard

without any change.
+ as I need UNIMARC setup, how can I explain zebra my MARCXML is 
semantically UNIMARC (asking differently : how does zebra understand 
with recordType: grs.xml that marc21.abs is what it should use for 
semantic interpretation of the XML ?)


2ND problem
===============
I can't set up CQL working. chris (katipo), I let you the job here, 
explain carefully on koha-devel what you did when you have succeeded.

-- 
Paul POULAIN et Henri Damien LAURENT
Consultants indépendants
en logiciels libres et bibliothéconomie (http://www.koha-fr.org)





More information about the Koha-zebra mailing list