Skip to content

Commit

Permalink
config: make DOI optional
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova committed Dec 5, 2024
1 parent 6d8929d commit 993a874
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/less/cds-rdm/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
5 changes: 5 additions & 0 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ from invenio_cern_sync.users.profile import CERNUserProfileSchema
from invenio_oauthclient.views.client import auto_redirect_login
from invenio_cern_sync.sso import cern_remote_app_name, cern_keycloak

from invenio_rdm_records.config import RDM_PERSISTENT_IDENTIFIERS, RDM_PARENT_PERSISTENT_IDENTIFIERS
from invenio_vocabularies.config import VOCABULARIES_NAMES_SCHEMES as DEFAULT_VOCABULARIES_NAMES_SCHEMES

def _(x): # needed to avoid start time failure with lazy strings
Expand Down Expand Up @@ -189,6 +190,10 @@ DATACITE_PREFIX = ""
DATACITE_TEST_MODE = True
DATACITE_DATACENTER_SYMBOL = ""

RDM_PERSISTENT_IDENTIFIERS["doi"]["required"] = False
RDM_PERSISTENT_IDENTIFIERS["doi"]["ui"]["default_selected"] = "not_needed" # "yes", "no" or "not_needed"
RDM_PARENT_PERSISTENT_IDENTIFIERS["doi"]["required"] = False

# Authentication - Invenio-Accounts and Invenio-OAuthclient
# =========================================================
# See: https://inveniordm.docs.cern.ch/customize/authentication/
Expand Down

0 comments on commit 993a874

Please sign in to comment.