Skip to content

Commit

Permalink
docs: comment improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
phette23 committed Aug 9, 2024
1 parent 1c5311d commit a505319
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app_data/vocabularies/affiliations.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Full file: https://raw.githubusercontent.com/inveniosoftware/cookiecutter-invenio-rdm/master/%7B%7Bcookiecutter.project_shortname%7D%7D/app_data/vocabularies/affiliations_ror.yaml
# Example aff file: https://github.com/inveniosoftware/invenio-rdm-records/blob/e3df51f5a9f25c20a4234e0d6e524c8d021d8fd2/invenio_rdm_records/fixtures/data/vocabularies/affiliations_ror.yaml
# CCA affiliation org https://ror.org/01mmcf932
- acronym: CCA
id: 01mmcf932
Expand Down
4 changes: 1 addition & 3 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,7 @@ SECURITY_RECOVERABLE = True # local login: allow users to reset the password
SECURITY_CHANGEABLE = True # local login: allow users to change psw
# Disable email confirmation
SECURITY_CONFIRMABLE = False # local login: users can confirm e-mail address
SECURITY_LOGIN_WITHOUT_CONFIRMATION = (
True # require users to confirm email before being able to login
)
SECURITY_LOGIN_WITHOUT_CONFIRMATION = True

# Invenio-OAuthclient
# -------------------
Expand Down
15 changes: 6 additions & 9 deletions site/cca/customfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

RDM_CUSTOM_FIELDS = [
VocabularyCF( # the type of custom field, VocabularyCF is a controlled vocabulary
name="cca:program", # name of the field, namespaced by `cern`
name="cca:program", # name of the field, namespaced by `cca`
vocabulary_id="programs", # controlled vocabulary id defined in the vocabularies.yaml file
dump_options=True, # True when the list of all possible values will be visible in the dropdown UI component, typically for small vocabularies
multiple=False, # if the field accepts a list of values (True) or single value (False)
multiple=False, # if the field accepts a list of values (True) or single value (False)
),
]

Expand All @@ -30,11 +30,11 @@
description="Select one of CCA's academic programs",
autocompleteFrom="/api/vocabularies/programs",
autocompleteFromAcceptHeader="application/vnd.inveniordm.v1+json",
multiple=False, # True for selecting multiple values
multiple=False, # True for selecting multiple values
clearable=True,
)
),
),
]
],
}
]

Expand All @@ -51,7 +51,4 @@
},
}

RDM_SEARCH = {
**RDM_SEARCH,
"facets": RDM_SEARCH["facets"] + ["program"]
}
RDM_SEARCH = {**RDM_SEARCH, "facets": RDM_SEARCH["facets"] + ["program"]}

0 comments on commit a505319

Please sign in to comment.