# oarepo\_oaipmh\_harvester.oai\_record

## `oarepo_oaipmh_harvester.oai_record`

Harvest records - tracking of harvested OAI-PMH records.

OAIHarvestedRecord keeps one row per harvested OAI identifier: the OAI datestamp and deleted flag, the original XML payload, the transformed data, the pid and type of the local record it was written to and the errors of the last write. It is written by the `oai-service` writer (oai\_service) and its datestamp / deleted flag / error state decide whether the next harvest can skip the record.

The service exposes search with facets over harvester, deleted flag and error code / message / location; the dumper adds the harvester (and its managers, used by permission query filters) to the search documents. The `harvest` action re-harvests a single record.

Modules:

| Name | Description |
| --- | --- |
| `api` | API for OAI harvested records. |
| `dumpers` | Dumpers for OAI harvested records. |
| `facets` | Facets for OAI Harvester. |
| `mappings` | Mappings for OAI harvested records. |
| `models` | Models for OAI-PMH harvested records. |
| `resource` | OAI Record resource config. |
| `results` | Results for the oai\_records service. |
| `schema` | Schema for OAI-PMH harvested records. |
| `service` | Service for OAI-PMH harvested records. |
| `tasks` | Reindexing task for OAI-PMH harvested records. |
| `views` | Views for OAI-PMH Harvester records. |
