Nicolas Steenlant > Catmandu-SRU-0.0101 > Catmandu::Importer::SRU

Download:
Catmandu-SRU-0.0101.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Catmandu-SRU-0.037

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];
    # ...
  });

  `base` & `query` are required.
  `version` & `operation` have sensible defaults, '1.1' and 'searchRetrieve' respectively.

SEE ALSO ^

Catmandu::Iterable

syntax highlighting: