NAME

Catmandu::Importer::OAI - Package that imports OAI-PMH feeds

SYNOPSIS

use Catmandu::Importer::OAI;

my $importer = Catmandu::Importer::OAI->new(url => "...", set => "..." );

my $n = $importer->each(sub {
    my $hashref = $_[0];
    # ...
});

METHODS

new(url => URL,[set => [qw(...)])

Create a new OAI-PMH importer for the URL. Optionally provide a set parameter with the OAI-PMH set you want to import.

count

each(&callback)

...

Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited. The Catmandu::Importer::OAI methods are not idempotent: OAI-PMH feeds can only be read once.

SEE ALSO

Catmandu::Iterable