diff --git a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/creatibutors.html b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/creatibutors.html
index 45c034cac..913dfe277 100644
--- a/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/creatibutors.html
+++ b/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/creatibutors.html
@@ -3,6 +3,7 @@
Copyright (C) 2020 Northwestern University.
Copyright (C) 2021 Graz University of Technology.
Copyright (C) 2021-2022 New York University.
+ Copyright (C) 2025 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.
@@ -15,11 +16,11 @@
{% for scheme, details in config.APP_RDM_IDENTIFIER_SCHEMES_UI.items() %}
{% for identifier in creatibutor.person_or_org.identifiers|selectattr("scheme", "equalto", scheme) %}
{% set identifier_found.value = True %}
-
-
{% endfor %}
@@ -39,7 +40,7 @@
{% macro show_creatibutors(creatibutors, show_affiliations=False, type="creators", show_role=False) %}
- {% for creatibutor in creatibutors %}
+ {% for creatibutor in creatibutors if creatibutor.person_or_org and creatibutor.person_or_org.name %}
{{ affiliation[0] }}.
-
+
{% if affiliation[2] %}
{% set scheme, identifier = (affiliation[2].split(':', 1) if ':' in affiliation[2] else ('ror', affiliation[2])) %}
{% set scheme_config = config.APP_RDM_IDENTIFIER_SCHEMES_UI.get(scheme) %}
-
+
{% if scheme_config %}
{% endif %}
{% endif %}
-
+
{{ affiliation[1] }}
{% endfor %}
-
+
{% endmacro %}
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 63fce52aa..7fba802f8 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-2025 CERN.
Copyright (C) 2024 Northwestern University.
+ Copyright (C) 2024-2025 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.
@@ -59,18 +60,25 @@
{% 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 }}
+ {% set desc_type_defined = add_description.type is defined %}
+ {% set desc_text = add_description.description|default('') %}
+
+
+ {{ add_description.type.title_l10n if desc_type_defined else _('Missing description type!') }}
+
+ {{ '(' ~ add_description.lang.title_l10n ~ ')' if add_description.lang is defined else '' }}
+
-
- {% if add_description.type.id == "notes" %}
+ {% if desc_type_defined and add_description.type.id == "notes" %}
- {{ add_description.description | sanitize_html() | safe }}
+ {{ desc_text | sanitize_html() | safe }}
{% else %}
- {{ add_description.description | sanitize_html() | safe }}
+ {{ desc_text | sanitize_html() | safe }}
{% endif %}
{% endfor %}
@@ -79,10 +87,11 @@ {{ add_description.type.title_l10n }}