Catmandu-OAI

 view release on metacpan or  search on metacpan

cpanfile  view on Meta::CPAN

requires 'Catmandu', '>=1.0306';
requires 'Catmandu::XML', '>=0.16';
requires 'XML::LibXML', 0;
requires 'HTTP::OAI', '>=4.03';
requires 'Moo', '>=1.0';
requires 'XML::Struct', '>=0.18';
requires 'MODS::Record', '>=0.11';
requires 'IO::String', '0';
requires 'URI','0';

# Need recent SSL to talk to https endpoint correctly
requires 'IO::Socket::SSL', '>=1.993';

lib/Catmandu/Importer/OAI.pm  view on Meta::CPAN


    # Harvest metadataFormats
    $ catmandu convert OAI --url http://myrepo.org/oai --listMetadataFormats 1

    # Harvest one record
    $ catmandu convert OAI --url http://myrepo.org/oai --getRecord 1 --identifier oai:myrepo:1234

=head1 DESCRIPTION

L<Catmandu::Importer::OAI> is an L<Catmandu> importer to harvest metadata records
from an OAI-PMH endpoint.

=head1 CONFIGURATION

=over

=item url

OAI-PMH Base URL.

=item metadataPrefix

lib/Catmandu/Importer/OAI.pm  view on Meta::CPAN

    wait [ 0..2^1 [ seconds
 second retry:
    wait [ 0..2^2 [ seconds
 third retry:
    wait [ 0..2^3 [ seconds

 ..

=item sleep 

Sleep a number of seconds between OAI-PMH calls to the endpoint (default 0).

=item realm

An optional realm value. This value is used when the importer harvests from a
repository which is secured with basic authentication through Integrated Windows
Authentication (NTLM or Kerberos).

=item username

An optional username value. This value is used when the importer harvests from a



( run in 0.972 second using v1.01-cache-2.11-cpan-cc502c75498 )