oarepo_oaipmh_harvester.oai_record.results
oarepo_oaipmh_harvester.oai_record.results
Results for the oai_records service.
OAIRecordItem
Bases: RecordItem
Single harvested record result.
Source code in oarepo_oaipmh_harvester/oai_record/results.py
id: str
property
ID of the record.
links: dict[str, str]
property
Get links for this result item.
data: dict[str, Any]
property
Serialized record, dumped on first access.
errors: list[Any] | None
property
Get the errors.
__init__(service: OAIRecordService, identity: Identity, oai_record: OAIRecordAggregate, errors: list[Any] | None = None, links_tpl: LinksTemplate | None = None, schema: ServiceSchemaWrapper | None = None, **_kwargs: Any)
Create OAIRecordItem.
Source code in oarepo_oaipmh_harvester/oai_record/results.py
__getitem__(key: str)
to_dict() -> dict[str, Any]
OAIRecordList
Bases: RecordList
List of harvested record results.
Source code in oarepo_oaipmh_harvester/oai_record/results.py
hits: Iterator[dict[str, Any]]
property
Iterator over the hits.
to_dict() -> dict[str, Any]
Return result as a dictionary.