[librecat-dev] Handling/ignoring MARC errors

Patrick Hochstenbach Patrick.Hochstenbach at UGent.be
Mon Jul 3 10:35:43 CEST 2017

Catmandu::MARC should handle these cases (which it doesn’t now). Indeed Catmandu::MARC uses Marc::File::XML but Catmandu::OAI doesn’t.
I created a ticket for this:


> On 3 Jul 2017, at 10:21, Dan Michael O. Heggø <d.m.heggo at ub.uio.no> wrote:
> When trying to import a MARC XML file, the program dies with:
> Field 080 must have at least one subfield at
> /usr/local/share/perl5/MARC/File/XML.pm line 483. [1]
> What's a good strategy for ignoring or catching such errors? When
> importing the same MARC directly from OAI using the marcxml handler, I
> don't get any errors, but if I understand it right, the Catmandu-OAI
> package doesn't use Marc::File::XML?
> Perhaps this is really a question for the per4lib list, but I wanted to
> check here first in case this is something that could/should be handled
> with Catmandu-MARC.
> Dan Michael
> [1]
> https://github.com/perl4lib/marc-perl/blob/e0de885347ad12bad129d467e603b25a03d88a73/marc-record/lib/MARC/Field.pm#L108

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20170703/64d8498f/attachment.asc>

More information about the librecat-dev mailing list