Scroll to navigation

Catmandu::Importer::Blacklight(3pm) User Contributed Perl Documentation Catmandu::Importer::Blacklight(3pm)

NAME

Catmandu::Importer::Blacklight - Import records from a Blacklight catalog

SYNOPSIS

    # From the command line
    $ catmandu convert Blacklight --url http://lib.ugent.be/catalog -q Schopenhauer
    # In perl
    use Catmandu::Importer::Blacklight;
    my $importer = Catmandu::Importer::Blacklight->new(
                    url => "...",
                    q   => "..."
      );
    my $n = $importer->each(sub {
        my $hashref = $_[0];
        # ...
    });

CONFIGURATION

Blacklight catalog Base URL. Required
Query string to search. Required

DESCRIPTION

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

SEE ALSO

<http://projectblacklight.org/> , Catmandu::Importer , Catmandu::Iterable

2023-02-02 perl v5.36.0