HTTP::OAI::ListRecords - Provide access to an OAI ListRecords response
my $r = $h->ListRecords( metadataPrefix=>'oai_dc', ); while( my $rec = $r->next ) { print "Identifier => ", $rec->identifier, "\n"; } die $r->message if $r->is_error; # Using callback method sub callback { my $rec = shift; print "Identifier => ", $rec->identifier, "\n"; }; my $r = $h->ListRecords( metadataPrefix=>'oai_dc', onRecord=>\&callback ); die $r->message if $r->is_error;
This constructor method returns a new HTTP::OAI::ListRecords object.
Returns either an HTTP::OAI::Record object, or undef, if no more record are available. Use $rec->is_error to test whether there was an error getting the next record.
Returns the record list and optionally adds a new record or resumptionToken, $rec. Returns an array ref of HTTP::OAI::Records, including an optional resumptionToken string.
Returns and optionally sets the HTTP::OAI::ResumptionToken.
Returns a XML::DOM object representing the ListRecords response.
To install HTTP::OAI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::OAI
CPAN shell
perl -MCPAN -e shell install HTTP::OAI
For more information on module installation, please visit the detailed CPAN module installation guide.