logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Importer::SRU::Parser - Package transforms SRU responses into Perl

Author

       Patrick Hochstenbach, "<patrick.hochstenbach at ugent.be>"

perl v5.38.2                                       2021-09-02               Catmandu::Importer::SRU::Parser(3pm)

Description

       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.

Name

       Catmandu::Importer::SRU::Parser - Package transforms SRU responses into Perl

Synopsis

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

See Also