NAME

HTTP::OAI::ListRecords - Provide access to an OAI ListRecords response

SYNOPSIS

my $r = $h->ListRecords(-metadataPrefix=>'oai_dc');

die $r->message if $r->is_error;

while( my $rec = $r->next ) {
	die $rec->message if $rec->is_error;
	print "Identifier => ", $rec->identifier, "\n";
}

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.