[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

BR
Patrick

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??
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<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmetacpan.org%2Fpod%2FCatmandu%3A%3AImporter%3A%3APICA&data=05%7C01%7CPatrick.Hochstenbach%40UGent.be%7Cfe5bd1d5d8b1483879b308db982432da%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638271053466822477%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=cXwhnrTEiKqHtuCse%2BRUpN8WVgrsrC6i2Y479tnfHeU%3D&reserved=0>
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/1dfdaaf4/attachment.html>


More information about the librecat-dev mailing list