[Koha] bulkmarcimport.pl AND -match= fails when trying to import (bibliographic) records

Tomas Cohen Arazi tomascohen at gmail.com
Fri Mar 30 02:05:00 NZDT 2018


Nicolas, Paul: great to see you figured the issue. But for the record:
indexes generation is defined in /etc/koha/zebradb/marc_defs/{marc
flavour}/biblios/biblio-koha-indexdefs.xml and not (anymore) in record.abs.
I mention this because record.abs might not be accurate a few years back to
now.

Kind regards


El jue., 29 mar. 2018 a las 1:14, Nicolas Rucks (<nrucks at bl.fcen.uba.ar>)
escribió:

> BIG YEAY!
> Thanks Paul!, it did work. The 20 records were properly replaced (as far
> as I quickly checked).
>
> perl /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -biblios -v
> -fk -all -commit 1000 -file=/home/nrucks/20recs-modified.mrc -match
> Other-control-number,035a
>
> Nicolas Rucks
> Biblioteca Central
> UBA-FCEN
> Argentina
>
> "Machines should not be friendly. Machines should be obedient."
> (Working with an unfriendly yet obedient machine)
>
> ----- Mensaje original -----
> De: "Paul Hoffman" <paul at flo.org>
> Para: koha at lists.katipo.co.nz
> Enviados: Miércoles, 28 de Marzo 2018 18:04:47
> Asunto: Re: [Koha] bulkmarcimport.pl AND -match= fails when trying to
> import (bibliographic) records
>
> On Wed, Mar 28, 2018 at 04:35:30PM -0400, Paul Hoffman wrote:
> > On Wed, Mar 28, 2018 at 04:58:30PM -0300, Nicolas Rucks wrote:
> > > Hello again! Maybe this too easy, or too difficult, maybe I am missing
> a point.
> > > As I could manage to understand, bulkmarcimport.pl requieres
> "-match="  with a comma (,)
> > >
> > > (From bulkmarcimport.pl DESCRIPTION:)
> > > -match=<FIELD>
> > >         FIELD matchindex,fieldtomatch
> > >
> > > Could anybody show me a concrete example of "matchindex" value? how
> should the command be?
> >
> > The part before the comma has to be a field name, not a Z39.50 BIB-1 USE
> > attribute number.  So, for example, using ISBNs would be like this:
> >
> >     -match=isbn,020a
> >
> > I figured out the field name for 035 $a once but have forgotten.
> > control-number, maybe:
> >
> >     -match=control-number,035a
> >
> > No, that doesn't seem to be it.  Argh.  I'll dig around in the Z39.50
> > config files.
>
> It's Other-control-number:
>
>     -match Other-control-number,035a
>
> Or at least I can search using that field name to find things by OCLC
> number.  On the other hand, that appears to index 035 $z as well as 035
> $a -- that could be a problem, since $z contains cancelled or invalid
> numbers.
>
> Here's how I found it:
>
> # fgrep 035 /etc/koha/zebradb/*/*/biblios/record.abs
> /etc/koha/zebradb/marc_defs/marc21/biblios/record.abs:melm 035$a
> Other-control-number
> /etc/koha/zebradb/marc_defs/marc21/biblios/record.abs:melm 035$z
> Other-control-number
> /etc/koha/zebradb/marc_defs/marc21/biblios/record.abs:melm 035
> Other-control-number
> /etc/koha/zebradb/marc_defs/normarc/biblios/record.abs:#melm 035
>  Local-number,Identifier-standard
>
> Paul.
>
> --
> Paul Hoffman <paul at flo.org>
> Software M
> <https://maps.google.com/?q=-+%0APaul+Hoffman++%0ASoftware+M&entry=gmail&source=g>
> anager
> Fenway Library Organization
> 550 Huntington Ave.
> Boston, MA 02115
> (617) 442-2384 (FLO main number)
> _______________________________________________
> Koha mailing list  http://koha-community.org
> 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
>
-- 
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384
GPG: B2F3C15F


More information about the Koha mailing list