[Koha] Importing MARC from the Command Line

Fischer, Katrin Katrin.Fischer at bsz-bw.de
Mon Jun 24 21:12:27 NZST 2013


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 at lists.katipo.co.nz [mailto:koha-
> bounces at 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 at 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 at gmail.com
> >
> >
> > On Thu, Jun 20, 2013 at 3:42 PM, Nicole Engard <nengard at 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 at lists.katipo.co.nz
> >> http://lists.katipo.co.nz/mailman/listinfo/koha
> >>
> >
> >
> _______________________________________________
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
> 



More information about the Koha mailing list