OAI-PMH Harvest Tool
category |
VuFind |
---|---|
package |
Harvest_Tools |
author |
Demian Katz demian.katz@villanova.edu |
license |
http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
link |
Wiki |
__construct(\VuFindHarvest\OaiPmh\Communicator $communicator, \VuFindHarvest\OaiPmh\RecordWriter $writer, \VuFindHarvest\OaiPmh\StateManager $stateManager, array $settings = array())
array
OAI-PMH settings
checkResponseForErrors(object $result) : void
Throws |
|
---|
object
OAI-PMH response (SimpleXML object)
getRecords(array $params) : mixed
array
GET parameters for ListRecords method.
mixed
Resumption token if provided, false if finished
getRecordsByDate(string $from = null, string $set = null, string $until = null) : mixed
string
Harvest start date (null for no specific start).
string
Set to harvest (null for all records).
string
Harvest end date (null for no specific end).
mixed
Resumption token if provided, false if finished
getRecordsByToken(string $token) : mixed
string
Resumption token.
mixed
Resumption token if provided, false if finished
launch() : void
loadGranularity() : void
sendRequest(string $verb, array $params = array()) : object
string
OAI-PMH verb to execute.
array
GET parameters for ListRecords method.
object
SimpleXML-formatted response.
setEndDate(string $date) : void
string
End date (YYYY-MM-DD format).
setOutputWriter(\VuFindHarvest\ConsoleOutput\WriterInterface $writer) : void
setStartDate(string $date) : void
string
Start date (YYYY-MM-DD format).
storeDateSettings(array $settings) : void
array
Configuration
storeMiscSettings(array $settings) : void
array
Configuration
write(string $str) : void
string
String to write.
writeLine(string $str) : void
string
String to write.
writer : \VuFindHarvest\OaiPmh\RecordWriter
communicator : \VuFindHarvest\OaiPmh\Communicator
stateManager : \VuFindHarvest\OaiPmh\StateManager
set : string|array
var |
---|
string|array
harvestEndDate : string
var |
---|
string
startDate : string
var |
---|
string
granularity : string
var |
---|
string
outputWriter : \VuFindHarvest\ConsoleOutput\WriterInterface