[Koha] Adding "Identifier-standard" field to Zebra's authority index
Alvaro Cornejo
cornejo.alvaro at gmail.com
Tue Jun 4 05:22:42 NZST 2019
Hi Simon
Have you updated the list of available subfields for 024? Maybe Record.pm
is looping into all of them and as some does not exist, it issues those
warnings?
Can you try with something like <kohaidx:index_subfields tag="024"
subfields="az"> or with any of the subfields that you actually use?
Regards,
Alvaro
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
Visitenos en www.perusms.com
Le lun. 3 juin 2019 à 08:28, Simon Hohl <simon.hohl at dainst.org> a écrit :
> Hey Alvaro,
>
> adding those two lines as target indices works. Now I am back to:
>
> > Use of uninitialized value $tag in hash element at
> > /usr/share/perl5/MARC/Record.pm line 202.
> > Use of uninitialized value $tag in hash element at
> > /usr/share/perl5/MARC/Record.pm line 202.
> See also my initially linked bugzilla ticket
> (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22013).
>
> Despite the warnings, the matching rule now works as intended.
>
> Thank you!
>
> Cheers
>
> Simon
>
> On 29.05.19 16:10, Alvaro Cornejo wrote:
> > Hi Simon
> >
> > Looks ok in terms of syntax.
> >
> > The only thing I see is the definitions of the sub-fields.
> >
> > You define them as abcde...xyz...789 when its supported subfields are
> > others:
> >
> > https://www.oclc.org/bibformats/en/0xx/024.html
> >
> > Maybe there are a subfields/structure check somewhere?
> >
> > Also not sure whether you need to add
> >
> > <kohaidx:target_index>Identifier-standard:p</kohaidx:target_index>
> > <kohaidx:target_index>Identifier-standard:s</kohaidx:target_index>
> >
> > Hope this helps
> >
> > Regards
> >
> > Alvaro
> >
> |-----------------------------------------------------------------------------------------------------------------|
> > Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
> > celular y Nextel
> > en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
> > SMS y GPRS online
> > Visitenos en www.perusms.com <http://www.perusms.com>
> >
> >
> > Le mer. 29 mai 2019 à 04:20, Simon Hohl <simon.hohl at dainst.org
> > <mailto:simon.hohl at dainst.org>> a écrit :
> >
> > Hi Alvaro,
> >
> > the file itself looks good to me.
> >
> > Regards
> >
> > Simon
> >
> > On 28.05.19 18:54, Alvaro Cornejo wrote:
> >> Hi Simon
> >>
> >> Have you checked CR/LF/spaces at the beginning/end of each line?
> >>
> >> XML is sometimes very picky with this.
> >>
> >> Regards
> >>
> >> Alvaro
> >>
> >>
> |-----------------------------------------------------------------------------------------------------------------|
> >> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde
> >> cualquier celular y Nextel
> >> en el Perú, México y en mas de 180 paises. Use aplicaciones 2
> >> vias via SMS y GPRS online
> >> Visitenos en www.perusms.com <http://www.perusms.com>
> >>
> >>
> >> Le mar. 28 mai 2019 à 06:00, Simon Hohl <simon.hohl at dainst.org
> >> <mailto:simon.hohl at dainst.org>> a écrit :
> >>
> >> Hi everyone,
> >>
> >> I am still struggling with this problem, anybody got any idea
> >> where to
> >> continue?
> >>
> >> Cheers,
> >>
> >> Simon
> >>
> >> On 14.05.19 10:45, Simon Hohl wrote:
> >> >
> >> > Hi everyone,
> >> >
> >> > this Email is a followup on:
> >> >
> https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22013
> >> >
> >> > I want to apply a record matching rule on my authority
> >> data, which
> >> > checks field 024$9 against existing authority data. So far
> >> I tried
> >> > following these instructions:
> >> >
> https://wiki.koha-community.org/wiki/How_to_add_new_zebra_index
> >> >
> >> > 1. Added to authority-koha-indexdefs.xml (roughly copied
> >> over from the
> >> > biblio equivalent):
> >> >
> >> >> <!--record.abs line 60: melm 024
> >> Identifier-standard-->
> >> >> <kohaidx:index_subfields tag="024"
> >> subfields="abcdefghjklmnopqrstvxyz0123456789">
> >> >>
> >>
> <kohaidx:target_index>Identifier-standard:w</kohaidx:target_index>
> >> >> </kohaidx:index_subfields>
> >> > 2. Added to etc/zebradb/authorities/etc/bib1.att:
> >> >
> >> >> att 1007 Identifier-standard
> >> > 3. Ran xsltproc on xml to create xsl file
> >> >
> >> > 4. Rebuilt Zebra
> >> >
> >> >> koha-rebuild-zebra -a -f -v (...)
> >> >
> >> > But so far, the error persists:
> >> >
> >> >> oAuth error: Unsupported Use attribute (114)
> >> Identifier-standard Bib-1
> >> > Did I miss something or are there additional steps
> >> necessary for
> >> > adding authority fields compared to the bibliographic index?
> >> >
> >> > Kind regards,
> >> >
> >> > Simon
> >> >
> >> >
> >> > My system information:
> >> >
> >> >> Koha version: 18.11.05.000
> >> >> OS version ('uname -a'): Linux (...) 4.9.0-9-amd64 #1
> >> SMP Debian
> >> >> 4.9.168-1 (2019-04-12) x86_64
> >> >> Perl interpreter: /usr/bin/perl
> >> >> Perl version: 5.024001
> >> >> Perl @INC: /usr/share/koha/lib
> >> >> /etc/perl
> >> >> /usr/local/lib/x86_64-linux-gnu/perl/5.24.1
> >> >> /usr/local/share/perl/5.24.1
> >> >> /usr/lib/x86_64-linux-gnu/perl5/5.24
> >> >> /usr/share/perl5
> >> >> /usr/lib/x86_64-linux-gnu/perl/5.24
> >> >> /usr/share/perl/5.24
> >> >> /usr/local/lib/site_perl
> >> >> /usr/lib/x86_64-linux-gnu/perl-base
> >> >> MySQL version: mysql Ver 15.1 Distrib 10.1.38-MariaDB,
> for
> >> >> debian-linux-gnu (x86_64) using readline 5.2
> >> >> Apache version: Server version: Apache/2.4.25 (Debian)
> >> >> Memcached: Servers: 127.0.0.1:11211
> >> <http://127.0.0.1:11211> | Namespace: (...) | Status:
> >> >> running. | Config read from: koha-conf.xml
> >> >> Zebra version: Zebra 2.0.59 (C) 1994-2014,(...)
> >> >> Date and time: 14/05/2019 10:18
> >> >> Time zone: Used: Europe/Berlin | Config: Undefined |
> >> Environment
> >> >> (TZ): Undefined
> >> >
> >> _______________________________________________
> >> Koha mailing list http://koha-community.org
> >> Koha at lists.katipo.co.nz <mailto:Koha at lists.katipo.co.nz>
> >> https://lists.katipo.co.nz/mailman/listinfo/koha
> >>
> _______________________________________________
> Koha mailing list http://koha-community.org
> Koha at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>
More information about the Koha
mailing list