+
+ @if (researcher()?.author_id; as authorId) {
+
+ {{ name() }}
+
+ } @else {
+ {{ name() }}
+ }
+
@if (!unavailable()) {
@if (careerBucket()) {
diff --git a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss
index 4fb68456..cca692e1 100644
--- a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss
+++ b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss
@@ -216,7 +216,25 @@
line-height: 1.4;
}
}
+.author-name {
+ margin: 0;
+ color: var(--sg-text);
+}
+.author-name__link {
+ color: inherit;
+ text-decoration: none;
+
+ &:hover {
+ text-decoration: underline;
+ }
+
+ &:focus-visible {
+ border-radius: 2px;
+ outline: 2px solid var(--sg-blue-highlight);
+ outline-offset: 2px;
+ }
+}
.metric-label {
cursor: help;
text-decoration: underline dotted;
diff --git a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts
index ffc1ade8..16981eb3 100644
--- a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts
+++ b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts
@@ -1,6 +1,13 @@
-import { Component, computed, inject, input, TemplateRef, viewChild } from '@angular/core';
+import {
+ Component,
+ computed,
+ inject,
+ input,
+ TemplateRef,
+ viewChild,
+} from '@angular/core';
import { CommonModule } from '@angular/common';
-import { Router, RouterModule } from '@angular/router';
+import { Router, RouterLink } from '@angular/router';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatIconModule } from '@angular/material/icon';
@@ -38,6 +45,8 @@ import {
PERSON_OFF_ICON,
WARNING_ICON,
} from '../../../shared/ui/icons';
+import { ComponentTooltipDirective } from '../../../directives/component-tooltip.directive';
+import { AppAuthorTooltipComponent } from '../../../shared/ui/app-author-tooltip/app-author-tooltip.component';
const ROLE_ORDER = ['ego', 'cohort', 'mentee', 'industry', 'external'];
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
@@ -70,7 +79,6 @@ interface MetricGroup {
standalone: true,
imports: [
CommonModule,
- RouterModule,
MatButtonModule,
MatCardModule,
MatIconModule,
@@ -81,6 +89,8 @@ interface MetricGroup {
ChipComponent,
MultiplierRoleScoresComponent,
PageContainerComponent,
+ RouterLink,
+ ComponentTooltipDirective,
],
templateUrl: './researcher-network.component.html',
styleUrl: './researcher-network.component.scss',
@@ -91,7 +101,7 @@ export class ResearcherNetworkComponent {
readonly PERSON_OFF_ICON = PERSON_OFF_ICON;
readonly HELP_OUTLINE_ICON = HELP_OUTLINE_ICON;
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
-
+ readonly AuthorTooltipComponent = AppAuthorTooltipComponent;
readonly page = input.required();
private readonly router = inject(Router);
@@ -146,10 +156,14 @@ export class ResearcherNetworkComponent {
this.researcher()?.author_id ??
'Unbekannt',
);
- readonly careerBucket = computed(() => this.researcher()?.career_bucket ?? null);
+ readonly careerBucket = computed(
+ () => this.researcher()?.career_bucket ?? null,
+ );
readonly activeYears = computed(() => this.researcher()?.active_years ?? 0);
readonly nWorks = computed(() => this.researcher()?.n_works ?? 0);
- readonly suspicious = computed(() => this.researcher()?.suspicious_profile ?? false);
+ readonly suspicious = computed(
+ () => this.researcher()?.suspicious_profile ?? false,
+ );
readonly tags = computed(() => this.researcher()?.tags ?? []);
readonly tagLabel = tagLabel;
readonly tagDescription = tagDescription;
@@ -189,8 +203,9 @@ export class ResearcherNetworkComponent {
private readonly metricTemplate =
viewChild.required>('metricTemplate');
- private readonly metricValueTemplate =
- viewChild.required>('metricValueTemplate');
+ private readonly metricValueTemplate = viewChild.required<
+ TemplateRef
+ >('metricValueTemplate');
private readonly metricRankTemplate =
viewChild.required>('metricRankTemplate');
private readonly metricHeader =