From 06592a6b27a536d0b3285a540245a6841074a8c9 Mon Sep 17 00:00:00 2001 From: mojib Date: Thu, 21 Nov 2024 13:40:01 +0100 Subject: [PATCH] update mug invenio.cfg --- themes/MUG/invenio.cfg | 87 ++++++++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 42 deletions(-) diff --git a/themes/MUG/invenio.cfg b/themes/MUG/invenio.cfg index 1d4942a..a121af7 100644 --- a/themes/MUG/invenio.cfg +++ b/themes/MUG/invenio.cfg @@ -78,10 +78,10 @@ APP_DEFAULT_SECURE_HEADERS = { # =========== # See https://python-babel.github.io/flask-babel/#configuration -# Default locale (language) -BABEL_DEFAULT_LOCALE = 'en' -# Default time zone -BABEL_DEFAULT_TIMEZONE = 'Europe/Zurich' +# # Default locale (language) +# BABEL_DEFAULT_LOCALE = 'en' +# # Default time zone +# BABEL_DEFAULT_TIMEZONE = 'Europe/Zurich' # Invenio-I18N @@ -89,10 +89,10 @@ BABEL_DEFAULT_TIMEZONE = 'Europe/Zurich' # See https://invenio-i18n.readthedocs.io/en/latest/configuration.html # Other supported languages (do not include BABEL_DEFAULT_LOCALE in list). -I18N_LANGUAGES = [ - # ('de', _('German')), - # ('tr', _('Turkish')), -] +# I18N_LANGUAGES = [ +# # ('de', _('German')), +# # ('tr', _('Turkish')), +# ] # Invenio-Theme @@ -100,29 +100,24 @@ I18N_LANGUAGES = [ # See https://invenio-theme.readthedocs.io/en/latest/configuration.html # Name used in header and UI -THEME_SITENAME = "MUG" +THEME_SITENAME = "instance" # Frontpage title -THEME_FRONTPAGE_TITLE = "MUG" +THEME_FRONTPAGE_TITLE = "instance" # Header logo -#THEME_LOGO = 'images/invenio-rdm.svg' +# THEME_LOGO = 'images/invenio-rdm.svg' + # Invenio-App-RDM # =============== -# See https://invenio-app-rdm.readthedocs.io/en/latest/configuration.html +# See https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/config.py # Instance's theme entrypoint file. Path relative to the ``assets/`` folder. INSTANCE_THEME_FILE = './less/theme.less' +# Email address for administrator emails (like file checksum alerts) +APP_RDM_ADMIN_EMAIL_RECIPIENT = "info@instance.com" -# Invenio-Records-Resources -# ========================= -# See https://github.com/inveniosoftware/invenio-records-resources/blob/master/invenio_records_resources/config.py - -# TODO: Set with your own hostname when deploying to production -SITE_UI_URL = "https://127.0.0.1" - -SITE_API_URL = "https://127.0.0.1/api" - +# Default values for the deposit form APP_RDM_DEPOSIT_FORM_DEFAULTS = { "publication_date": lambda: datetime.now().strftime("%Y-%m-%d"), "rights": [ @@ -139,9 +134,17 @@ APP_RDM_DEPOSIT_FORM_DEFAULTS = { "publisher": "instance", } -# See https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/config.py APP_RDM_DEPOSIT_FORM_AUTOCOMPLETE_NAMES = 'search' # "search_only" or "off" +# Invenio-Records-Resources +# ========================= +# See https://github.com/inveniosoftware/invenio-records-resources/blob/master/invenio_records_resources/config.py + +# TODO: Set with your own hostname when deploying to production +SITE_UI_URL = "https://127.0.0.1" + +SITE_API_URL = "https://127.0.0.1/api" + # Invenio-RDM-Records # =================== # See https://inveniordm.docs.cern.ch/customize/dois/ @@ -186,12 +189,29 @@ USERPROFILES_READ_ONLY = False # allow users to change profile info (name, emai OAISERVER_ID_PREFIX = "instance.com" """The prefix that will be applied to the generated OAI-PMH ids.""" +OAISERVER_ADMIN_EMAILS = [ + "info@instance.com", +] # Invenio-Search # -------------- SEARCH_INDEX_PREFIX = "instance-" +# Invenio-Users-Resources +# ----------------------- + +USERS_RESOURCES_ADMINISTRATION_ENABLED = True +"""Enable the user administration""" + +# Invenio-Administration +# ---------------------- + +from invenio_app_rdm import __version__ +ADMINISTRATION_DISPLAY_VERSIONS = [ + ("invenio-app-rdm", f"v{__version__}"), + ("instance", "v1.0.0"), +] # Invenio-I18N # ============ @@ -202,31 +222,13 @@ BABEL_DEFAULT_TIMEZONE = "Europe/Vienna" # Other supported languages (do not include BABEL_DEFAULT_LOCALE in list). I18N_LANGUAGES = [("de", _("German"))] + # Extras # -------------- #INVENIO_THEME_SHOW_FRONTPAGE_INTRO_SECTION=False THEME_SHOW_FRONTPAGE_INTRO_SECTION = False """Set True for frontpage Intrp.""" -# Email address for administrator emails (like file checksum alerts) -APP_RDM_ADMIN_EMAIL_RECIPIENT = "info@instance.com" - -OAISERVER_ADMIN_EMAILS = [ - "info@instance.com", -] - -# Invenio-Users-Resources -# ----------------------- -USERS_RESOURCES_ADMINISTRATION_ENABLED = True -"""Enable the user administration""" - -# Invenio-Administration -# ---------------------- -from invenio_app_rdm import __version__ -ADMINISTRATION_DISPLAY_VERSIONS = [ - ("invenio-app-rdm", f"v{__version__}"), - ("instance", "v1.0.0"), -] # Invenio-Override # -------------- @@ -257,5 +259,6 @@ OVERRIDE_SHIBBOLETH = False """Set True if SAML is configured""" #INVENIO_OVERRIDE_FRONTPAGE_RIGHT=False -OVERRIDE_FRONTPAGE_RIGHT = False +OVERRIDE_FRONTPAGE_RIGHT = True """Frontpage right section""" +