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

Patrick Hochstenbach Patrick.Hochstenbach at UGent.be
Wed Aug 9 13:26:26 CEST 2023

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


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

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?
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.

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

More information about the librecat-dev mailing list