Nicolas Steenlant > Catmandu-OAI-0.01 > Catmandu::Importer::OAI

Download:
Catmandu-OAI-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Catmandu-OAI-0.06

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

syntax highlighting: