Skip to content

Commit

Permalink
config: make DOI optional
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova authored and zzacharo committed Dec 16, 2024
1 parent 6d8929d commit c6b12df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/less/cds-rdm/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@
&:focus{
opacity:1;
}
}
}
10 changes: 7 additions & 3 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 @@ -182,13 +183,17 @@ 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 = ""
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 Expand Up @@ -500,8 +505,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
# =========================

Expand Down

0 comments on commit c6b12df

Please sign in to comment.