diff --git a/webapp/src/app/modules/person-publications/person-publications.component.html b/webapp/src/app/modules/person-publications/person-publications.component.html index 375842a1..39dcdeeb 100644 --- a/webapp/src/app/modules/person-publications/person-publications.component.html +++ b/webapp/src/app/modules/person-publications/person-publications.component.html @@ -177,12 +177,19 @@
@if (loading) { -
+
+ Publikationen werden geladen …
+ } @else if (publications.length === 0) { +
Keine Publikationen gefunden.
} - +
@@ -312,8 +329,11 @@ @@ -341,10 +369,6 @@
Titel @@ -257,11 +264,13 @@ Institutionen @let publicationInstitutions = institutions(publication); + @let institutionsExpanded = isInstitutionsExpanded(publication); + @let visibleInstitutions = + institutionsExpanded + ? publicationInstitutions + : publicationInstitutions.slice(0, 3);
- @for ( - institution of publicationInstitutions.slice(0, 3); - track institution.id - ) { + @for (institution of visibleInstitutions; track institution.id) { }
Themen @let publicationTopics = publication.topics ?? []; + @let topicsExpanded = isTopicsExpanded(publication); + @let visibleTopics = + topicsExpanded ? publicationTopics : publicationTopics.slice(0, 3);
- @for (topic of publicationTopics.slice(0, 3); track topic.id) { + @for (topic of visibleTopics; track topic.id) { - } @if (publicationTopics.length > 3) { - - +{{ publicationTopics.length - 3 }} - + }
- - @if (!loading && publications.length === 0) { -
Keine Publikationen gefunden.
- }