oarepo_oaipmh_harvester.ext
oarepo_oaipmh_harvester.ext
Flask extension of the OAI-PMH harvester.
OARepoOAIHarvesterExt.init_config
registers the oai-import transformer and the oai-service writer in
VOCABULARIES_DATASTREAM_TRANSFORMERS / _WRITERS and sets the defaults from
config.
The services and resources are created lazily and can be replaced by configuration
(import strings): OAI_HARVESTER_SERVICE, OAI_HARVESTER_SERVICE_CONFIG,
OAI_HARVESTER_RESOURCE, OAI_HARVESTER_RESOURCE_CONFIG, OAI_RECORD_SERVICE,
OAI_RECORD_SERVICE_CONFIG, OAI_RECORD_RESOURCE, OAI_RECORD_RESOURCE_CONFIG.
finalize_apps registers the services and
indexers and the invenio-jobs job types of all harvesters stored in the database.
OARepoOAIHarvesterExt
OAI-PMH Harvester extension.
Source code in oarepo_oaipmh_harvester/ext.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 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 | |
oai_record_service_config: OAIRecordServiceConfig
cached
property
Get the OAI record service config.
oai_record_service: OAIRecordService
cached
property
Get the OAI record service.
oai_record_resource_config: OAIRecordResourceConfig
cached
property
Get the OAI record resource config.
oai_record_resource: OAIRecordResource
cached
property
Get the OAI record resource.
oai_harvester_service_config: OAIHarvesterServiceConfig
cached
property
Get the OAI harvester service config.
oai_harvester_service: OAIHarvesterService
cached
property
Get the OAI harvester service.
oai_harvester_resource_config: OAIHarvesterResourceConfig
cached
property
Get the OAI harvester resource config.
oai_harvester_resource: OAIHarvesterResource
cached
property
Get the OAI harvester resource.
__init__(app: Flask | None = None)
init_app(app: Flask) -> None
init_config(app: Flask) -> None
Initialize configuration.
Source code in oarepo_oaipmh_harvester/ext.py
finalize_apps(app: Flask) -> None
Flask application finalization.