diff --git a/webapp/src/app/modules/person-funding/person-funding.component.html b/webapp/src/app/modules/person-funding/person-funding.component.html index 075e1e2b..8469b157 100644 --- a/webapp/src/app/modules/person-funding/person-funding.component.html +++ b/webapp/src/app/modules/person-funding/person-funding.component.html @@ -59,18 +59,24 @@

{{ selectedFunder.funder_name }}

+ @if (shouldShowPosition('first')) {
Erstautor {{ selectedFunder.author_position_count.first }}
+ } + @if (shouldShowPosition('middle')) {
Mitautor {{ selectedFunder.author_position_count.middle }}
+ } + @if (shouldShowPosition('last')) {
Letztautor {{ selectedFunder.author_position_count.last }}
+ }

Publikationen

diff --git a/webapp/src/app/modules/person-funding/person-funding.component.ts b/webapp/src/app/modules/person-funding/person-funding.component.ts index d736bd1f..76861ca0 100644 --- a/webapp/src/app/modules/person-funding/person-funding.component.ts +++ b/webapp/src/app/modules/person-funding/person-funding.component.ts @@ -141,6 +141,10 @@ export class PersonFundingComponent implements OnInit { return labels[position] ?? position; } + shouldShowPosition(position: 'first' | 'middle' | 'last'): boolean { + return this.activeFilter === 'all' || this.activeFilter === position; + } + getUniquePublicationCount(): number { const allIds = new Set(); for (const funder of this.funders) {