Man pages sections > man3 > Catmandu::Importer::SRU::Parser

Catmandu::Importer::SRU::Parser(3pm) User Contributed Perl Documentation Catmandu::Importer::SRU::Parser(3pm)

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

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;

AUTHOR

Patrick Hochstenbach, "<patrick.hochstenbach at ugent.be>"
2017-10-06 perl v5.26.0