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

## `oarepo_oaipmh_harvester.oai_record.resource`

OAI Record resource config.

### `AdministrationDetailJSONSerializer`

Bases: `JSONSerializer`

JSON serializer for administration API.

#### `serialize_object(obj: Any) -> str`

Serialize a single object.

### `OAIRecordResourceConfig`

Bases: `RecordResourceConfig`

Harvest record resource configuration.

### `OAIRecordResource`

Bases: `RecordResource`

OAI Record resource.

#### `p(prefix: str, route: str) -> str`

Prefix a route with the URL prefix.

#### `create_url_rules() -> list`

Create the URL rules for the harvest record resource.

#### `search() -> tuple[dict[str, Any], int]`

Search harvest records.

#### `read() -> tuple[dict[str, Any], int]`

Read a single harvest record.

#### `harvest() -> tuple[dict[str, Any], int]`

Re-harvest the OAI record.

### `data_to_html_yaml(data: Any) -> str`

Convert data to HTML highlighted YAML.

### `location_to_list(errors: list[Any] | None) -> list[Any]`

Convert error locations inside serialized errors from string to list.
