[Koha] bulkmarcimport.pl AND -match= fails when trying to import (bibliographic) records
Nicolas Rucks
nrucks at bl.fcen.uba.ar
Thu Mar 29 17:13:17 NZDT 2018
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 Manager
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
More information about the Koha
mailing list