[librecat-dev] Is there no catmandu importer for PICA+ type import??

Patrick Hochstenbach Patrick.Hochstenbach at UGent.be
Wed Aug 9 14:45:20 CEST 2023


The Catmandu::PICA modules are based on Jacob Voss PICA::Data https://metacpan.org/pod/PICA::Data . I see there is still some quite recent development there. As I have no insight in the PICA formats, you could maybe ask Jacob Voss what is possible in this direction.

BR
Patrick

From: Siebert, Dr. Martina <Martina.Siebert at sbb.spk-berlin.de>
Date: Wednesday, 9 August 2023 at 14:30
To: Patrick Hochstenbach <Patrick.Hochstenbach at UGent.be>, librecat-dev at lists.uni-bielefeld.de <librecat-dev at lists.uni-bielefeld.de>
Subject: AW: Is there no catmandu importer for PICA+ type import??
Dear Patrick,

that’s what I feared :( Would it be possible to add the type import for PICA, as there is an exporter for this PICA format?
https://metacpan.org/pod/Catmandu::Exporter::PICA

For now I will find another workaround for this.
Thanks for the confirmation of my guess and quick reply.
Martina

Von: Patrick Hochstenbach <Patrick.Hochstenbach at UGent.be>
Gesendet: Mittwoch, 9. August 2023 13:26
An: Siebert, Dr. Martina <Martina.Siebert at sbb.spk-berlin.de>; librecat-dev at lists.uni-bielefeld.de
Betreff: Re: Is there no catmandu importer for PICA+ type import??

I see in the documentation https://metacpan.org/pod/Catmandu::Importer::PICA that the PICA import only supports on of these formats:


  *   xml
  *   plain
  *   picaplus
  *   binary
  *   ppxml

The required syntax would then be:

catmandu convert PICO --type picaplus to PICA --type picaplus --fix add_field.fix < oldfile.pp

BR
Patrick

From: librecat-dev-bounces at lists.uni-bielefeld.de<mailto:librecat-dev-bounces at lists.uni-bielefeld.de> <librecat-dev-bounces at lists.uni-bielefeld.de<mailto:librecat-dev-bounces at lists.uni-bielefeld.de>> on behalf of Siebert, Dr. Martina <Martina.Siebert at sbb.spk-berlin.de<mailto:Martina.Siebert at sbb.spk-berlin.de>>
Date: Tuesday, 8 August 2023 at 17:29
To: librecat-dev at lists.uni-bielefeld.de<mailto:librecat-dev at lists.uni-bielefeld.de> <librecat-dev at lists.uni-bielefeld.de<mailto:librecat-dev at lists.uni-bielefeld.de>>
Subject: [librecat-dev] Is there no catmandu importer for PICA+ type import??
Hello,

I need to add an extra field to a PICA+ file of the “import” format (https://format.gbv.de/pica/import), but get the following complain:
Oops! Can't locate object method "new" via package "PICA::Parser::Import" (perhaps you forgot to load "PICA::Parser::Import"?) at /opt/perl5/perls/perl-5.34.1/lib/site_perl/5.34.1/PICA/Data.pm line 487

But the explanation here seems to suggest that there actually is not importer for this?
https://metacpan.org/pod/Catmandu::Importer::PICA
Or am I doing something wrong?
catmandu convert PICA –type import to PICA –type import –fix Add_field.fix < oldfile.pp

I regularly produce PICA+ import files, which works just fine.
Best,
Martina

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20230809/3fe71651/attachment.html>


More information about the librecat-dev mailing list