Catmandu::Importer::SRU::Parser - Package transforms SRU responses into Perl
package MyParser; use Moo; sub parse { my ($self,$record) = @_; my $schema = $record->{recordSchema}; my $packing = $record->{recordPacking}; my $data = $record->{recordData}; ... do some magic... return $perl_hash; }
Catmandu::Importer::SRU can optionally include a parser to transform the returned records from SRU requests. Any such parser needs to implement one instance method parse which receives an SRU-record and returns a perl hash.
parse
Patrick Hochstenbach, <patrick.hochstenbach at ugent.be>
<patrick.hochstenbach at ugent.be>
To install Catmandu::SRU, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::SRU
CPAN shell
perl -MCPAN -e shell install Catmandu::SRU
For more information on module installation, please visit the detailed CPAN module installation guide.