Importing MARC from the Command Line
I have a big file of marc records to import and wanted to know if there is there a way from the command line to overlay records I'm importing based on the isbn match? The docs seem to say if it finds an isbn match then the one I'm importing is ignored. Thanks Nicole
Nicole, from perldoc of bulkmarcimport.pl -i,-isbn If set, a search will be done on isbn, and, if the same isbn is found, the biblio is not added. It's another method to deduplicate. -match & -isbn can be both set. I think that if you import with that switch then isbn will be taken into account. Regards, Bernardo -- Bernardo Gonzalez Kriegel bgkriegel@gmail.com On Thu, Jun 20, 2013 at 3:42 PM, Nicole Engard <nengard@gmail.com> wrote:
I have a big file of marc records to import and wanted to know if there is there a way from the command line to overlay records I'm importing based on the isbn match? The docs seem to say if it finds an isbn match then the one I'm importing is ignored.
Thanks Nicole _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
That says the opposite of what I want. It says : "if the same isbn is found, the biblio is not added" I want the bib I'm importing to overlay/replace the one that's on there. Nicole On Thu, Jun 20, 2013 at 4:22 PM, Bernardo Gonzalez Kriegel < bgkriegel@gmail.com> wrote:
Nicole, from perldoc of bulkmarcimport.pl
-i,-isbn If set, a search will be done on isbn, and, if the same isbn is found, the biblio is not added. It's another method to deduplicate. -match & -isbn can be both set.
I think that if you import with that switch then isbn will be taken into account.
Regards, Bernardo
-- Bernardo Gonzalez Kriegel bgkriegel@gmail.com
On Thu, Jun 20, 2013 at 3:42 PM, Nicole Engard <nengard@gmail.com> wrote:
I have a big file of marc records to import and wanted to know if there is there a way from the command line to overlay records I'm importing based on the isbn match? The docs seem to say if it finds an isbn match then the one I'm importing is ignored.
Thanks Nicole _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Hi Nicole, there are 2 scripts that work like the staged MARC import tools, but from command line. We use them a lot for our imports from the union catalog matching on 001, but you can use every matching rule defined within Koha: misc/stage_file.pl misc/commit_file.pl stage_file.pl let's you specify the matching rule you want to use: --match <match_id> use this option to match records in the file with records already in the database for future overlay. If <match_id> isn't defined, a default MARC21 ISBN & title match rule will be applied for bib imports Hope that helps, Katrin
-----Original Message----- From: koha-bounces@lists.katipo.co.nz [mailto:koha- bounces@lists.katipo.co.nz] On Behalf Of Nicole Engard Sent: Friday, June 21, 2013 12:45 AM To: Bernardo Gonzalez Kriegel Cc: Koha Subject: Re: [Koha] Importing MARC from the Command Line
That says the opposite of what I want. It says :
"if the same isbn is found, the biblio is not added"
I want the bib I'm importing to overlay/replace the one that's on there.
Nicole
On Thu, Jun 20, 2013 at 4:22 PM, Bernardo Gonzalez Kriegel < bgkriegel@gmail.com> wrote:
Nicole, from perldoc of bulkmarcimport.pl
-i,-isbn If set, a search will be done on isbn, and, if the same isbn is found, the biblio is not added. It's another method to deduplicate. -match & -isbn can be both set.
I think that if you import with that switch then isbn will be taken into account.
Regards, Bernardo
-- Bernardo Gonzalez Kriegel bgkriegel@gmail.com
On Thu, Jun 20, 2013 at 3:42 PM, Nicole Engard <nengard@gmail.com> wrote:
I have a big file of marc records to import and wanted to know if there is there a way from the command line to overlay records I'm importing based on the isbn match? The docs seem to say if it finds an isbn match then the one I'm importing is ignored.
Thanks Nicole _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
On Mon, Jun 24, 2013 at 5:12 AM, Fischer, Katrin <Katrin.Fischer@bsz-bw.de>wrote:
stage_file.pl let's you specify the matching rule you want to use:
--match <match_id> use this option to match records in the file with records already in the database for future overlay. If <match_id> isn't defined, a default MARC21 ISBN & title match rule will be applied for bib imports
Katrin, That part I understood from the documentation, but what happens when a match is found? I want the record I'm importing to overlay the one on the system. But the documentation implies that the matching one I'm importing will be ignored. Nicole
Hi Nicole, overlay is activated by default, you can deactivate it using one of the command line options. The documentation is a bit hidden at the bottom of the file: http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=misc/stage_file.pl... --no-replace overlay action for record: default is to replace extant with the imported record. Maybe do a quick test with a few records to check if it works as expected. Katrin From: Nicole Engard [mailto:nengard@gmail.com] Sent: Monday, June 24, 2013 3:12 PM To: Fischer, Katrin Cc: Bernardo Gonzalez Kriegel; Koha Subject: Re: [Koha] Importing MARC from the Command Line On Mon, Jun 24, 2013 at 5:12 AM, Fischer, Katrin <Katrin.Fischer@bsz-bw.de> wrote: stage_file.pl let's you specify the matching rule you want to use: --match <match_id> use this option to match records in the file with records already in the database for future overlay. If <match_id> isn't defined, a default MARC21 ISBN & title match rule will be applied for bib imports Katrin, That part I understood from the documentation, but what happens when a match is found? I want the record I'm importing to overlay the one on the system. But the documentation implies that the matching one I'm importing will be ignored. Nicole
Alright, I tried lots of different ways - anyone understand this error: http://paste.koha-community.org/80 Nicole
Bingo - solved in IRC - but if you're only looking here, here's what I did: http://paste.koha-community.org/81 Nicole
participants (3)
-
Bernardo Gonzalez Kriegel -
Fischer, Katrin -
Nicole Engard