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

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

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


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

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.

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