@@ -11,6 +11,16 @@ from datetime import datetime
1111from invenio_i18n import lazy_gettext as _
1212from invenio_oauthclient.contrib.keycloak import KeycloakSettingsHelper
1313
14+ from invenio_app_rdm.config import NOTIFICATIONS_BUILDERS as RDM_NOTIFICATIONS_BUILDERS
15+ from invenio_curations.config import CURATIONS_NOTIFICATIONS_BUILDERS
16+ from invenio_curations.services import facets as curations_facets
17+ from invenio_curations.services.components import CurationComponent
18+ from invenio_curations.services.permissions import (
19+ CurationRDMRecordPermissionPolicy,
20+ CurationRDMRequestsPermissionPolicy,
21+ )
22+ from invenio_rdm_records.services.components import DefaultRecordsComponents
23+
1424def _(x): # needed to avoid start time failure with lazy strings
1525 return x
1626
@@ -99,9 +109,9 @@ APP_DEFAULT_SECURE_HEADERS = {
99109# See https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/config.py
100110# ============================================================================
101111# Name used in header and UI
102- THEME_SITENAME = " instance "
112+ THEME_SITENAME = " MUG Repository "
103113# Frontpage title
104- THEME_FRONTPAGE_TITLE = " instance "
114+ THEME_FRONTPAGE_TITLE = " Medical University of Graz Repository "
105115# Header logo
106116# THEME_LOGO = 'images/invenio-rdm.svg'
107117
@@ -221,6 +231,37 @@ BABEL_DEFAULT_TIMEZONE = "Europe/Vienna"
221231# Other supported languages (do not include BABEL_DEFAULT_LOCALE in list).
222232I18N_LANGUAGES = []
223233
234+ # ============================================================================
235+ # Invenio-Curations
236+ # ============================================================================
237+ NOTIFICATIONS_BUILDERS = {
238+ **RDM_NOTIFICATIONS_BUILDERS,
239+ **CURATIONS_NOTIFICATIONS_BUILDERS,
240+ }
241+
242+ RDM_RECORDS_SERVICE_COMPONENTS = DefaultRecordsComponents + [CurationComponent]
243+
244+ REQUESTS_FACETS = {
245+ " type" : {" facet" : curations_facets.type, " ui" : {" field" : " type" }},
246+ " status" : {" facet" : curations_facets.status, " ui" : {" field" : " status" }},
247+ }
248+
249+ # Roles that are exempted from curation workflow
250+ CURATIONS_PRIVILEGED_ROLES = [
251+ " administration" ,
252+ " bypass-curation" ,
253+ " administration-rdm-records-curation" ,
254+ ]
255+
256+ RDM_PERMISSION_POLICY = CurationRDMRecordPermissionPolicy
257+
258+ REQUESTS_PERMISSION_POLICY = CurationRDMRequestsPermissionPolicy
259+ # ============================================================================
260+ # Invenio-Curations - Comment Template
261+ # ============================================================================
262+ CURATIONS_ENABLE_REQUEST_COMMENTS = True
263+ CURATIONS_COMMENT_TEMPLATE_FILE = " comment-template.html"
264+
224265# ============================================================================
225266# Extras
226267# ============================================================================
@@ -284,7 +325,7 @@ OVERRIDE_SHIBBOLETH = False
284325" " " Set True if SAML is configured" " "
285326
286327# INVENIO_OVERRIDE_FRONTPAGE_RIGHT=False
287- OVERRIDE_FRONTPAGE_RIGHT = False
328+ OVERRIDE_FRONTPAGE_RIGHT = True
288329" " " Frontpage right section" " "
289330
290331# Right Section Configuration
@@ -300,7 +341,7 @@ OVERRIDE_RIGHT_SECTION_CONTACT_EMAIL = "rdmsupport@medunigraz.at"
300341
301342# Theme and Templates
302343# --------------
303- OVERRIDE_RESOURCE_OVERVIEW = True
344+ OVERRIDE_RESOURCE_OVERVIEW = False
304345" " " Resource overview section" " "
305346
306347# ============================================================================
0 commit comments