Skip to content

Commit 294dc59

Browse files
committed
templates: display notes for author records
If an author record contains a note field, display it in the description rather than repeating the title.
1 parent b50bf8e commit 294dc59

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cernopendata/templates/cernopendata_records_ui/records/record_detail_Author-Lists.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,12 @@ <h6>
9595
<div class="ui segment">
9696
<div class="card-body">
9797
{% block metadata_block %}
98-
{% if record.title %}
98+
{% if record.note %}
99+
<div>
100+
<h3 class="detail_view_h3">Description</h3>
101+
<p>{{record.note.get("description", "") | safe}}</p>
102+
</div>
103+
{% elif record.title %}
99104
<div>
100105
<h3 class="detail_view_h3">Description</h3>
101106
<p>{{record.title | safe}}</p>

0 commit comments

Comments
 (0)