Deposit¶
Zenodo deposit additions.
API¶
Deposit API.
-
zenodo.modules.deposit.api.
PRESERVE_FIELDS
= ('_deposit', '_files', '_internal', '_oai', 'owners', 'recid')¶ Fields which will not be overwritten on edit.
-
class
zenodo.modules.deposit.api.
ZenodoDeposit
(data, model=None)[source]¶ Define API for changing deposit state.
-
file_cls
¶ alias of
ZenodoFileObject
-
Loaders¶
Deposit loaders.
-
zenodo.modules.deposit.loaders.
deposit_json_v1
(data=None)¶ JSON deposit record loader.
-
zenodo.modules.deposit.loaders.
deposit_json_v1_translator
(data)¶ JSON v1 deposit translator.
-
zenodo.modules.deposit.loaders.
legacyjson_v1
(data=None)¶ Legacy deposit JSON record loader.
-
zenodo.modules.deposit.loaders.
legacyjson_v1_translator
(data)¶ Legacy deposit dictionary translator.
Loaders for records.
Minters and fetchers¶
Persistent identifier fetchers.
-
zenodo.modules.deposit.fetchers.
zenodo_deposit_fetcher
(record_uuid, data)[source]¶ Fetch a deposit identifier.
Persistent identifier minters.
Indexing¶
Record modification prior to indexing.
-
zenodo.modules.deposit.indexer.
indexer_receiver
(sender, json=None, record=None, index=None, **dummy_kwargs)[source]¶ Connect to before_record_index signal to transform record for ES.
In order to avoid that a record and published deposit differs (e.g. if an embargo task updates the record), every time we index a record we also index the deposit and overwrite the content with that of the record.
Parameters: - sender – Sender of the signal.
- json (invenio_records.api.Deposit) – JSON to be passed for the elastic search.
- record (invenio_records.api.Deposit) – Indexed deposit record.
- index (str) – Elasticsearch index name.
Search¶
Query factories for deposit REST API.
Views¶
Redirects for legacy URLs.