# 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.

#### `id: str`

ID of the record.

#### `links: dict[str, str]`

Get links for this result item.

#### `data: dict[str, Any]`

Serialized record, dumped on first access.

#### `errors: list[Any] | None`

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.

#### `__getitem__(key: str)`

Get a field from the serialized record data.

#### `to_dict() -> dict[str, Any]`

Serialize the record result, including errors.

### `OAIRecordList`

Bases: `RecordList`

List of harvested record results.

#### `hits: Iterator[dict[str, Any]]`

Iterator over the hits.

#### `to_dict() -> dict[str, Any]`

Return result as a dictionary.
