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::struct - transform SRU responses into structured XML records

Author

       Jakob Voss "voss@gbv.de"

perl v5.38.2                                       2021-09-02              Catmandu::Impo...:Parser::struct(3pm)

Configuration

       Options of XML::Struct::Reader are not supported. As workaround wrap the reader as following, if needed:

           my $reader = XML::Struct::Reader->new( %options );

           my $importer = Catmandu::Importer::SRU->new(
               base   => $base,
               query  => $query,
               parser => sub {
                   $reader->readDocument(
                       XML::LibXML::Reader->new( string => $_[0]->{recordData} )
                   );
               },

           );

Description

       Each SRU response record will be transformed into order-preserving, structured XML as defined by
       XML::Struct.

Name

       Catmandu::Importer::SRU::Parser::struct - transform SRU responses into structured XML records

Synopsis

           my $importer = Catmandu::Importer::SRU->new(
               base   => $base,
               query  => $query,
               parser => 'struct'
           );

See Also