Skip to content

Commit

Permalink
Update invenio.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Oct 17, 2024
1 parent 34a6b07 commit e3d185a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ RDM_PERSISTENT_IDENTIFIERS = {
}
"""The configured persistent identifiers for records."""

def always_valid(identifier):
"""Gives every identifier as valid."""
return True

RDM_RECORDS_IDENTIFIERS_SCHEMES = {
"ark": {"label": _("ARK"), "validator": idutils.is_ark, "datacite": "ARK"},
"arxiv": {"label": _("arXiv"), "validator": idutils.is_arxiv, "datacite": "arXiv"},
Expand Down Expand Up @@ -251,7 +255,7 @@ RDM_RECORDS_IDENTIFIERS_SCHEMES = {
"urn": {"label": _("URN"), "validator": idutils.is_urn, "datacite": "URN"},
"w3id": {"label": _("W3ID"), "validator": always_valid, "datacite": "w3id"},
"other": {"label": _("Other"), "validator": always_valid, "datacite": "Other"},

# Custom identifiers added for InvenioRDM Starter
"uuid": {"label": _("UUID"), "validator": always_valid, "datacite": "UUID"},
"guid": {"label": _("GUID"), "validator": always_valid, "datacite": "GUID"},
Expand Down

0 comments on commit e3d185a

Please sign in to comment.