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

Siebert, Dr. Martina Martina.Siebert at sbb.spk-berlin.de
Wed Aug 9 14:30:32 CEST 2023


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

-------------- n?chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20230809/95c57ceb/attachment.html>


More information about the librecat-dev mailing list