diff --git a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html index fd36855a1..7789a358d 100644 --- a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html +++ b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html @@ -1,6 +1,7 @@ {# Copyright (C) 2020-2024 CERN. Copyright (C) 2024 Northwestern University. + Copyright (C) 2024 KTH Royal Institute of Technology. Invenio RDM Records is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. @@ -60,12 +61,14 @@ {% macro show_add_descriptions(add_descriptions) %} {% for add_description in add_descriptions %}
-

{{ add_description.type.title_l10n }} {{ '(' + add_description.lang.title_l10n + ')' if add_description.lang }} + aria-label="{{ _( add_description.type.title_l10n ) if add_description.type is defined else 'Missing description!' }}"> +

{{ add_description.type.title_l10n if add_description.type is defined else _('Missing Additional description type!') }} + + {{ '(' + add_description.lang.title_l10n + ')' if add_description.lang is defined else '' }} +

- {% if add_description.type.id == "notes" %} + {% if add_description.type is defined and add_description.type.id == "notes" %}
{{ add_description.description | sanitize_html() | safe }}