bulkmarcimport.pl with Record Matching Rules?
Hi! Is there a way to run bulkmarcimport.pl together with some Record Matching Rules (like they are available in the Staff interface via "Stage MARC records for import") ? The param "-match" seems related, but from --help I cannot figure out what this actually does.. Background: We want to import authorities from the GND/DNB (German National Libray) but do not want to create duplicate auths for those we already have in the DB. We can match the auths via 024$a (so if we have a local record with the same value in 024$a as the one we're currently importing, it's a match and should update the old record instead of creating a new one) Greetings, domm -- Thomas Klausner domm https://domm.plix.at Just another ( Perl | Postgres | Bicycle | Food | Photo | Vinyl ) Hacker A not-so-short list of things I learned at PerlKohaCon #Perl #Koha [ 2023-08-19 10:00 > https://domm.plix.at/perl/2023_08_things_i_learned_at_perlkohacon.html ] Long and good read: http://bit-player.org/2023/ai-and-the-end-of-programming [ 2023-09-14 12:01 > https://domm.plix.at/microblog.html ]
Hi, Le 06/10/2023 à 11:34, Thomas Klausner a écrit :
Hi!
Is there a way to run bulkmarcimport.pl together with some Record Matching Rules (like they are available in the Staff interface via "Stage MARC records for import") ?
The param "-match" seems related, but from --help I cannot figure out what this actually does..
The match option is used with an index name and the field to match on : --match matchindex,fieldtomatch Example : --match=Local-number,001
Background: We want to import authorities from the GND/DNB (German National Libray) but do not want to create duplicate auths for those we already have in the DB. We can match the auths via 024$a (so if we have a local record with the same value in 024$a as the one we're currently importing, it's a match and should update the old record instead of creating a new one)
You will have to define an authority index on 024$a and index, or check the name of the existing index if any. Then you could try like this : --match=IndexName,024a Kind regards Laurence Rault -- ------------------------ Laurence Rault Responsable Pôle Développement BibLibre http://www.biblibre.com laurence.rault@biblibre.com p. 06 27 85 46 49
Hi! On Fri, Oct 06, 2023 at 12:26:30PM +0200, Laurence Rault wrote:
Is there a way to run bulkmarcimport.pl together with some Record Matching Rules (like they are available in the Staff interface via "Stage MARC records for import") ?
The param "-match" seems related, but from --help I cannot figure out what this actually does..
The match option is used with an index name and the field to match on : --match matchindex,fieldtomatch
Example : --match=Local-number,001
Perfect!
You will have to define an authority index on 024$a and index, or check the name of the existing index if any.
Then you could try like this : --match=IndexName,024a
Yeah, I'm right now playing around with defining a new ES search field for 024$a and indexing it :-) Thanks! -- Thomas Klausner domm https://domm.plix.at Just another ( Perl | Postgres | Bicycle | Food | Photo | Vinyl ) Hacker A not-so-short list of things I learned at PerlKohaCon #Perl #Koha [ 2023-08-19 10:00 > https://domm.plix.at/perl/2023_08_things_i_learned_at_perlkohacon.html ] Long and good read: http://bit-player.org/2023/ai-and-the-end-of-programming [ 2023-09-14 12:01 > https://domm.plix.at/microblog.html ]
participants (2)
-
Laurence Rault -
Thomas Klausner