diff --git a/invenio_config_tugraz/config.py b/invenio_config_tugraz/config.py index 34702e2..e15cdb8 100644 --- a/invenio_config_tugraz/config.py +++ b/invenio_config_tugraz/config.py @@ -10,7 +10,7 @@ from os.path import abspath, dirname, join -from flask_babelex import gettext as _ +from flask_babelex import lazy_gettext as _ INVENIO_CONFIG_TUGRAZ_SHIBBOLETH = False """Set True if SAML is configured""" @@ -260,10 +260,15 @@ If the value is callable, its return value will be used for the field (e.g. lambda/function for dynamic calculation of values). """ -APP_RDM_DEPOSIT_FORM_AUTOCOMPLETE_NAMES = "search" -"""Enable autocompleting names search field for creators/contributors. +APP_RDM_DEPOSIT_FORM_AUTOCOMPLETE_NAMES = 'off' +"""Behavior for autocomplete names search field for creators/contributors. -(e,g, "searc_only" or "off") +Available options: + +- ``search`` (default): Show search field and form always. +- ``search_only``: Only show search field. Form displayed after selection or + explicit "manual" entry. +- ``off``: Only show person form (no search field). """ SQLALCHEMY_ECHO = False