[Koha] bulkmarcimport.pl AND -match= fails when trying to import (bibliographic) records
Paul Hoffman
paul at flo.org
Thu Mar 29 10:04:47 NZDT 2018
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)
More information about the Koha
mailing list