From 90149ddb4e5867d6dd09c07f21c256cc65e369f8 Mon Sep 17 00:00:00 2001 From: louis-19041904 Date: Mon, 3 Aug 2026 22:57:29 +0200 Subject: [PATCH] use career-stage-chip component in person profile --- .../app/modules/person/person.component.html | 16 +++-------- .../app/modules/person/person.component.scss | 27 ------------------- .../app/modules/person/person.component.ts | 23 ++-------------- 3 files changed, 5 insertions(+), 61 deletions(-) diff --git a/webapp/src/app/modules/person/person.component.html b/webapp/src/app/modules/person/person.component.html index 173406d8..362af283 100644 --- a/webapp/src/app/modules/person/person.component.html +++ b/webapp/src/app/modules/person/person.component.html @@ -93,19 +93,9 @@ } @if (displayCareerStage() || orcid()) {
- @if (displayCareerStage()) { -
- Career Stage: - - {{ displayCareerStage() }} - -
- } + @if (orcid(); as orcidId) { { - const stage = this.displayCareerStage(); - if (!stage) { - return ''; - } - - const activeYears = this.person()?.career_metrics?.active_years ?? '-'; - - return [ - `Aktuell: ${stage.replace(' Researcher', '')}`, - `Aktive Publikationsjahre: ${activeYears}`, - '', - 'Einteilung:', - 'Early: 1\u20134 aktive Publikationsjahre', - 'Emerging: 5\u20139 aktive Publikationsjahre', - 'Established: 10\u201314 aktive Publikationsjahre', - 'Senior: ab 15 aktiven Publikationsjahren', - '', - 'Diese Einschätzung basiert ausschließlich auf OpenAlex-Publikationsdaten und ist kein offizieller akademischer Status.', - ].join('\n'); - }); readonly orcid = computed(() => { const rawOrcid = this.getId('orcid'); if (!rawOrcid) {