Datahub-Factory-Arthub
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Datahub/Factory/Importer/EIZ.pm view on Meta::CPAN
our $VERSION = '1.02';
use Catmandu::Importer::OAI;
use Moo;
use URI::Split qw(uri_join);
use File::Basename qw(fileparse);
use namespace::clean;
with 'Datahub::Factory::Importer';
has endpoint => (is => 'ro', required => 1);
has metadata_prefix => (is => 'ro', default => sub {
return 'oai_lido';
});
has handler => (is => 'ro');
has set => (is => 'ro');
has from => (is => 'ro');
has until => (is => 'ro');
has username => (is => 'ro');
has password => (is => 'ro');
sub _build_importer {
my $self = shift;
my $options = {
url => $self->endpoint,
handler => $self->handler,
metadataPrefix => $self->metadata_prefix,
from => $self->from,
until => $self->until,
set => $self->set,
};
if (defined($self->username)) {
$options->{'username'} = $self->username;
$options->{'password'} = $self->password;
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.042 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )