[OAI-implementers] Net::OAI::Harvester v0.94

Ed Summers ehs@pobox.com
Thu, 11 Dec 2003 16:33:10 -0600


A bit of news about the Net::OAI::Harvester CPAN module.

In addition to the standard 6 verbs, Net::OAI::Harvester v0.94 [1] has 
two new methods listAllRecords() and listAllIdentifiers() which provide
seamless resumption token usage:

    my $harvester = Net::OAI::Harvester->new( 
	baseURL	=> 'http://memory.loc.gov/cgi-bin/oai2_0' 
    );

    my $list = $harvester->getAllRecords(
	metadataPrefix	    => 'oai_dc',
	set		    => 'lcphotos'
    );

    while ( my $record = $list->next() ) { 
	print $record->metadata()->title(),"\n";
    }

It should be making it's way around CPAN [2] mirrors right now.

//Ed

[1] http://search.cpan.org/perldoc?Net::OAI::Harvester
[2] http://www.cpan.org