Catmandu::Importer::Z3950 - Package that imports Z3950 data
# On the command line $ catmandu convert Z3950 --host z3950.loc.gov --port 7090 --databaseName Voyager --query "(title = dinosaur)" # From Perl use Catmandu; my $importer = Catmandu->importer('Z3950' host => 'z3950.loc.gov', port => 7090, databaseName => "Voyager", preferredRecordSyntax => "USMARC", queryType => 'PQF', # CQL or PQF query => '@attr 1=4 dinosaur' ); my $n = $importer->each(sub { my $hashref = $_[0]; ... });
The Z3950 host name
The Z3950 port
A user name
A password
The database to connect to
The preferred response format (default: USMARC)
The queryType (CQL or PQF)
The query
The Perl handler to parse the response content. This should be a package name in the Catmandu::Importer::Z3950::Parser namespace or 'RAW' for unparsed content.
This package uses the ZOOM package internally. For more info visit: http://search.cpan.org/~mirk/Net-Z3950-ZOOM-1.28/lib/ZOOM.pod
The ZOOM package has a hard dependency on YAZ toolkit. For more info about YAZ, visit: https://www.indexdata.com/yaz
Installing YAZ: - (osx, using homebrew): brew install yaz - (linux, using yum): yum install yaz libyaz
Wouter Willaert, <wouterw@inuits.eu>
<wouterw@inuits.eu>
Patrick Hochstenbach, <patrick.hochstenbach@ugent.be>
<patrick.hochstenbach@ugent.be>
Catmandu::Iterable
To install Catmandu::Z3950, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::Z3950
CPAN shell
perl -MCPAN -e shell install Catmandu::Z3950
For more information on module installation, please visit the detailed CPAN module installation guide.