oarepo_oaipmh_harvester.oai_harvester.resource
oarepo_oaipmh_harvester.oai_harvester.resource
OAI Harvester HTTP resource.
AdministrationDetailJSONSerializer
Bases: JSONSerializer
JSON serializer for administration API.
Source code in oarepo_oaipmh_harvester/oai_harvester/resource.py
serialize_object(obj: Any) -> str
Serialize a single harvester into the administration detail form.
Source code in oarepo_oaipmh_harvester/oai_harvester/resource.py
serialize_object_list(obj_list: list[Any]) -> str
Serialize a list of harvesters into the administration detail form.
Source code in oarepo_oaipmh_harvester/oai_harvester/resource.py
AdministrationEditJSONSerializer
Bases: JSONSerializer
JSON serializer for the administration edit form.
The form edits transformers, writers and harvest_managers in textareas - they are
serialized as newline separated text, managers as their e-mail addresses. The schema
accepts the same text back
(OAIHarvesterSchema).
Source code in oarepo_oaipmh_harvester/oai_harvester/resource.py
serialize_object(obj: Any) -> str
OAIHarvesterResourceConfig
Bases: RecordResourceConfig, ConfiguratorMixin
OAI-PMH harvester resource configuration.
Source code in oarepo_oaipmh_harvester/oai_harvester/resource.py
OAIHarvesterResource
Bases: RecordResource
REST resource for OAI-PMH harvesters.
Source code in oarepo_oaipmh_harvester/oai_harvester/resource.py
p(prefix: str, route: str) -> str
create_url_rules() -> list[dict[str, Any]]
Create the URL rules for the harvester resource.
Source code in oarepo_oaipmh_harvester/oai_harvester/resource.py
search() -> tuple[dict[str, Any], int]
Search harvesters.
Source code in oarepo_oaipmh_harvester/oai_harvester/resource.py
read() -> tuple[dict[str, Any], int]
Read a single harvester.
Source code in oarepo_oaipmh_harvester/oai_harvester/resource.py
harvest() -> tuple[dict[str, Any], int]
Harvest the source - all records unless the payload has all_records: false.
Source code in oarepo_oaipmh_harvester/oai_harvester/resource.py
data_to_html_yaml(data: Any) -> str
Convert data to HTML-formatted YAML string.