-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mojib
committed
Nov 21, 2024
1 parent
4bd4c93
commit 06592a6
Showing
1 changed file
with
45 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,51 +78,46 @@ 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 | ||
# ============ | ||
# 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 | ||
# ============= | ||
# 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 = "[email protected]" | ||
|
||
# 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 = [ | ||
"[email protected]", | ||
] | ||
|
||
# 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 = "[email protected]" | ||
|
||
OAISERVER_ADMIN_EMAILS = [ | ||
"[email protected]", | ||
] | ||
|
||
# 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""" | ||
|