The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Datahub::Factory::Importer::AdlibOAI - Import data from Adlib OAI endpoints

SYNOPSIS

    use Datahub::Factory::Importer::AdlibOAI;
    use Data::Dumper qw(Dumper);

    my $adlib = Datahub::Factory::Importer::AdlibOAI->new(
        fqdn => adlib.example.org',
        url  => 'http://adlib.example.org/oai'
    );

    $adlib->importer->each(sub {
        my $item = shift;
        print Dumper($item);
    });

DESCRIPTION

Datahub::Factory::Importer::AdlibOAI uses Catmandu to fetch a list of records from an Adlib OAI endpoint. It returns an Importer.

PARAMETERS

Datahub::Factory::Importer::AdlibOAI supports all the options that Catmandu::Importer::OAI supports, as wel as some additional options for authentication.

fqdn

The FQDN of the OAI service you want to query. Used by LWP::UserAgent::credentials() as part of $netloc. Required.

port

The port of the OAI service you want to query. Used by LWP::UserAgent::credentials() as part of $netloc. Optional, set to 80 by default.

problematic_ntlm

If set to 1, will attempt to strip WWW-Authenticate Negotiate from the server response to work around this bug. Set to 0 by default.

ATTRIBUTES

importer

A Importer that can be used in your script.

AUTHOR

Pieter De Praetere <pieter at packed.be >

COPYRIGHT

Copyright 2017- PACKED vzw

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Datahub::Factory Catmandu