NAME

  Catmandu::Importer::SRU - Package that imports SRU data

SYNOPSIS

  use Catmandu::Importer::SRU;

  my %attrs = (
    base => 'http://www.unicat.be/sru',
    query => '(isbn=0855275103 or isbn=3110035170 or isbn=9010017362 or isbn=9014026188)'
  );

  my $importer = Catmandu::Importer::SRU->new(%attrs);

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

CONFIGURATION

base

base URL of the SRU server (required)

query

CQL query (required)

recordSchema

set to dc by default

sortkeys

optional sorting

recordTag

optional XML tag name to get record data from. If not given, each record will contain a recordData field that contains another tag that contains the actual record. For instance use dc to get field $record->{recordData}->{dc}.

operation

set to searchRetrieve by default

version

set to 1.1 by default.

userAgent

HTTP user agent, set to Mozilla/5.0 by default.

furl

Instance of Furl or compatible class to fetch URLs with.

METHODS

All methods of Catmandu::Importer and by this Catmandu::Iterable are inherited.

SEE ALSO

http://www.loc.gov/standards/sru/