Merge branch 'dev' into feat/add_site_news

This commit is contained in:
Steven Tischer
2026-06-20 21:06:29 +02:00
142 changed files with 13636 additions and 1143 deletions
@@ -119,15 +119,20 @@ export class PersonComponent {
() => this.person()?.affiliations?.[0] ?? null,
);
readonly lastAffiliation = computed(() => {
let lastAffiliation: number | undefined = 0;
if (this.person()?.affiliations?.length != undefined) {
lastAffiliation = this.person()?.affiliations?.length;
const affiliations = this.person()?.affiliations ?? [];
let newestAffiliation = affiliations[0] ?? null;
let newestYear = -1;
for (const affiliation of affiliations) {
for (const jahr of affiliation.years ?? []) {
if (jahr > newestYear) {
newestYear = jahr;
newestAffiliation = affiliation;
}
}
}
return (
(lastAffiliation
? this.person()?.affiliations?.[lastAffiliation - 1]
: this.person()?.affiliations?.[0]) ?? null
);
return newestAffiliation;
});
readonly institution = computed(
() =>
@@ -184,9 +189,10 @@ export class PersonComponent {
},
{ label: 'Publikationen', path: 'publications', disabled: false },
{ label: 'Netzwerk', path: 'network', disabled: false },
{ label: 'Gründungen', path: 'foundings', disabled: true },
{ label: 'Unternehmen', path: 'company-connections', disabled: false },
{ label: 'Förderungen', path: 'funding', disabled: false },
{ label: 'Nachrichten', path: 'news', disabled: false },
{ label: 'Patente', path: 'patents', disabled: false },
];
onInterestingTagClick(selection: { id: string; name: string }): void {