From 97be15452430c0fdd5ff5aa1409cab6a9e57e5ad Mon Sep 17 00:00:00 2001 From: Anika Churilova Date: Thu, 5 Dec 2024 11:43:23 +0100 Subject: [PATCH] config: make DOI optional * closes https://github.com/CERNDocumentServer/cds-rdm/issues/163 --- assets/less/cds-rdm/globals/site.overrides | 8 ++++++++ invenio.cfg | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/assets/less/cds-rdm/globals/site.overrides b/assets/less/cds-rdm/globals/site.overrides index b7c3a42..bfcb7ff 100644 --- a/assets/less/cds-rdm/globals/site.overrides +++ b/assets/less/cds-rdm/globals/site.overrides @@ -90,3 +90,11 @@ opacity:1; } } + +.ui.disabled.input, .ui.input:not(.disabled) input[disabled] { + opacity: 1 !important; +} + +.ui.form .flashed.message { + z-index: 0 !important; +} \ No newline at end of file diff --git a/invenio.cfg b/invenio.cfg index 884c6a2..2d4bf59 100644 --- a/invenio.cfg +++ b/invenio.cfg @@ -182,7 +182,7 @@ APP_RDM_DEPOSIT_FORM_AUTOCOMPLETE_NAMES = 'search' # "search_only" or "off" # Invenio-RDM-Records # =================== # See https://inveniordm.docs.cern.ch/customize/dois/ -DATACITE_ENABLED = False +DATACITE_ENABLED = True DATACITE_USERNAME = "" DATACITE_PASSWORD = "" DATACITE_PREFIX = "" @@ -500,8 +500,7 @@ RDM_RECORDS_PERSONORG_SCHEMES = {**RDM_RECORDS_PERSONORG_SCHEMES, ### Do not require DOIs for record and parent RDM_PERSISTENT_IDENTIFIERS["doi"]["required"] = False RDM_PARENT_PERSISTENT_IDENTIFIERS["doi"]["required"] = False - - +RDM_PERSISTENT_IDENTIFIERS["doi"]["ui"]["default_selected"] = "not_needed" # "yes", "no" or "not_needed" # Invenio-Preservation-Sync # =========================