HTTP::OAI::ListRecords
Provide access to an OAI ListRecords response
- Provided by: libhttp-oai-perl (Version: 4.03-1)
- Report a bug
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;