oarepo_oaipmh_harvester.oai_harvester.results
oarepo_oaipmh_harvester.oai_harvester.results
Results for the oai_harvesters service.
OAIHarvesterItem
Bases: RecordItem
Single OAI-PMH harvester result.
Source code in oarepo_oaipmh_harvester/oai_harvester/results.py
id: str
property
ID of the harvester.
links: dict[str, str]
property
Get links for this result item.
data: dict[str, Any]
property
Serialized harvester, dumped on first access.
errors: list[Any] | None
property
Get the errors.
__init__(service: OAIHarvesterService, identity: Identity, oai_harvester: OAIHarvesterAggregate, errors: list[Any] | None = None, links_tpl: LinksTemplate | None = None, schema: ServiceSchemaWrapper | None = None, **_kwargs: Any)
Create OAIHarvesterItem.
Source code in oarepo_oaipmh_harvester/oai_harvester/results.py
__getitem__(key: str) -> Any
to_dict() -> dict[str, Any]
Serialize the harvester result, including errors.
OAIHarvesterList
Bases: RecordList
List of OAI-PMH harvester results.
Source code in oarepo_oaipmh_harvester/oai_harvester/results.py
hits: Iterator[dict[str, Any]]
property
Iterator over the hits.
to_dict() -> dict
Return result as a dictionary.