Skip to content

Commit

Permalink
config: make DOI optional
Browse files Browse the repository at this point in the history
* closes #163
  • Loading branch information
anikachurilova authored and zzacharo committed Dec 16, 2024
1 parent e5b3bc3 commit af868d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 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;
}
}
}
17 changes: 10 additions & 7 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ 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_vocabularies.config import \
VOCABULARIES_NAMES_SCHEMES as DEFAULT_VOCABULARIES_NAMES_SCHEMES

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
return x
Expand Down Expand Up @@ -184,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 @@ -504,9 +507,9 @@ 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"]["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 af868d9

Please sign in to comment.