File tree 1 file changed +7
-4
lines changed
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
{#
2
2
Copyright (C) 2020-2025 CERN.
3
3
Copyright (C) 2024 Northwestern University.
4
+ Copyright (C) 2024 KTH Royal Institute of Technology.
4
5
5
6
Invenio RDM Records is free software; you can redistribute it and/or modify
6
7
it under the terms of the MIT License; see LICENSE file for more details.
60
61
{% macro show_add_descriptions(add_descriptions) %}
61
62
{% for add_description in add_descriptions %}
62
63
< section id ="additional-description-{{ loop.index }} " class ="rel-mt-2 rich-input-content "
63
- aria-label ="{{ _( add_description.type.title_l10n ) }} ">
64
- < h2 > {{ add_description.type.title_l10n }} < span
65
- class ="text-muted language "> {{ '(' + add_description.lang.title_l10n + ')' if add_description.lang }}</ span >
64
+ aria-label ="{{ _( add_description.type.title_l10n ) if add_description.type is defined else 'Missing description!' }} ">
65
+ < h2 > {{ add_description.type.title_l10n if add_description.type is defined else _('Missing Additional description type!') }}
66
+ < span class ="text-muted language ">
67
+ {{ '(' + add_description.lang.title_l10n + ')' if add_description.lang is defined else '' }}
68
+ </ span >
66
69
</ h2 >
67
70
68
- {% if add_description.type.id == "notes" %}
71
+ {% if add_description.type is defined and add_description.type .id == "notes" %}
69
72
< div class ="ui message warning ">
70
73
{{ add_description.description | sanitize_html() | safe }}
71
74
</ div >
You can’t perform that action at this time.
0 commit comments