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.
Source code in oarepo_oaipmh_harvester/oai_record/service.py
RecordLink
Bases: Link
Short cut for writing record links.
Source code in oarepo_oaipmh_harvester/oai_record/service.py
vars(record: Any, link_vars: dict) -> None
staticmethod
Variables for the URI template.
OAIRecordServiceConfig
Bases: RecordServiceConfig, ConfiguratorMixin
Harvest record service configuration.
Source code in oarepo_oaipmh_harvester/oai_record/service.py
OAIRecordService
Bases: RecordService
Service for harvested OAI-PMH records.
Source code in oarepo_oaipmh_harvester/oai_record/service.py
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | |
oai_record_cls: type[OAIRecordAggregate]
property
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.
Source code in oarepo_oaipmh_harvester/oai_record/service.py
read(identity: Identity, id_: str, expand: bool = False, action: str = 'read', **kwargs: Any) -> RecordItem
Retrieve a single harvest record.
Source code in oarepo_oaipmh_harvester/oai_record/service.py
rebuild_index(identity: Identity, uow: UnitOfWork | None = None) -> bool
Reindex all harvest records.
Source code in oarepo_oaipmh_harvester/oai_record/service.py
harvest(identity: Identity, id_: str) -> RecordItem
Re-harvest a single record from its source.