debian man page for http::oai::listrecords

Query: http::oai::listrecords

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

HTTP::OAI::ListRecords(3pm)				User Contributed Perl Documentation			       HTTP::OAI::ListRecords(3pm)

NAME
HTTP::OAI::ListRecords - Provide access to an OAI ListRecords response
SYNOPSIS
my $r = $h->ListRecords( metadataPrefix=>'oai_dc', ); while( my $rec = $r->next ) { print "Identifier => ", $rec->identifier, " "; } die $r->message if $r->is_error; # Using callback method sub callback { my $rec = shift; print "Identifier => ", $rec->identifier, " "; }; my $r = $h->ListRecords( metadataPrefix=>'oai_dc', onRecord=>&callback ); die $r->message if $r->is_error;
METHODS
$lr = new HTTP::OAI::ListRecords This constructor method returns a new HTTP::OAI::ListRecords object. $rec = $lr->next 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. @recl = $lr->record([$rec]) 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. $token = $lr->resumptionToken([$token]) Returns and optionally sets the HTTP::OAI::ResumptionToken. $dom = $lr->toDOM Returns a XML::DOM object representing the ListRecords response. perl v5.12.4 2011-06-23 HTTP::OAI::ListRecords(3pm)
Related Man Pages
http::message::psgi(3pm) - debian
http::oai::harvester(3pm) - debian
http::oai::repository(3pm) - debian
http::proxy::bodyfilter::lines(3pm) - debian
xml::sax::byrecord(3pm) - debian
Similar Topics in the Unix Linux Community
How to label a specific file
OOPMH! 1.0 (Default branch)
Perl Experts - Need your help
"while read ..." loop exiting after reading only one record
Print record count of a file using shell script