<<

NAME

Koha::OAI::Client::Harvester - OAI Harvester

DESCRIPTION

Koha::OAI::Client::Harvester contains OAI-PMH harvester main functions

new $harvester = Koha::OAI::Client::Harvester->new( { server => $server, days => $days, force => $force, logger => \&logger } );

New instance of Koha::OAI::Client::Harvester

$server An OAI repository (Koha::OAIServer)

$days number of days to harvest from (optional)

$force force harvesting (ignore records datestamps)

$logger a callback function to handle logs (optional)

init

Starts harvesting

processRecord

This method processes an incoming OAI record

$self->printlog

This method gives the caller an opportunity to handle log messages

<<