# oarepo\_oaipmh\_harvester.oai\_record.service

## `oarepo_oaipmh_harvester.oai_record.service`

Service for OAI-PMH harvested records.

### `OAIRecordSearchOptions`

Bases: `SearchOptions`, `SearchOptionsMixin`

Search options for harvest records.

### `RecordLink`

Bases: `Link`

Short cut for writing record links.

#### `vars(record: Any, link_vars: dict) -> None`

Variables for the URI template.

### `OAIRecordServiceConfig`

Bases: `RecordServiceConfig`, `ConfiguratorMixin`

Harvest record service configuration.

### `OAIRecordService`

Bases: `RecordService`

Service for harvested OAI-PMH records.

#### `oai_record_cls: type[OAIRecordAggregate]`

Alias for record\_cls.

#### `search(identity: Identity, params: dict[str, Any] | None = None, search_preference: str | None = None, expand: bool = False, **kwargs: Any) -> RecordList`

Search harvest records.

#### `read(identity: Identity, id_: str, expand: bool = False, action: str = 'read', **kwargs: Any) -> RecordItem`

Retrieve a single harvest record.

#### `rebuild_index(identity: Identity, uow: UnitOfWork | None = None) -> bool`

Reindex all harvest records.

#### `harvest(identity: Identity, id_: str) -> RecordItem`

Re-harvest a single record from its source.
