added initial design for founding potential and multipliers components
This commit is contained in:
@@ -4,6 +4,7 @@ import { personListResolver } from './resolvers/person-list.resolver';
|
||||
import { founderStatisticsResolver } from './resolvers/founder-statistics.resolver';
|
||||
import { founderCandidatesResolver } from './resolvers/founder-candidates.resolver';
|
||||
import { multiplierResearcherPageResolver } from './resolvers/multiplier-researcher-page.resolver';
|
||||
import { multiplicatorResearchersResolver } from './resolvers/multiplicator-researchers.resolver';
|
||||
import { personBioResolver } from './resolvers/person-bio.resolver';
|
||||
import { personPatentsResolver } from './resolvers/person-patents.resolver';
|
||||
import { personResolver } from './resolvers/person.resolver';
|
||||
@@ -139,6 +140,25 @@ export const routes: Routes = [
|
||||
(mod) => mod.CompareAuthorsComponent,
|
||||
),
|
||||
},
|
||||
{
|
||||
path: 'multipliers',
|
||||
canActivate: [
|
||||
roleGuard([
|
||||
UserRole.User,
|
||||
UserRole.Manager,
|
||||
UserRole.Admin,
|
||||
UserRole.SuperAdmin,
|
||||
]),
|
||||
],
|
||||
loadComponent: () =>
|
||||
import(
|
||||
'./modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component'
|
||||
).then((mod) => mod.MultipliersDashboardComponent),
|
||||
resolve: {
|
||||
researchers: multiplicatorResearchersResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'paramsOrQueryParamsChange',
|
||||
},
|
||||
{
|
||||
path: 'founders',
|
||||
canActivate: [
|
||||
|
||||
+112
-141
@@ -1,7 +1,33 @@
|
||||
<div class="founder-dashboard">
|
||||
<header class="hero">
|
||||
<p class="eyebrow">Gründungspotenzial · {{ universityName() }}</p>
|
||||
<h1>Gründungspotenzial {{ universityName() }}</h1>
|
||||
</header>
|
||||
<app-methodology-note>
|
||||
<p>
|
||||
<strong>Datenbasis:</strong> Publikationen, Patente, Förderungen und
|
||||
Industriekooperationen werden für Forschende der Universität bis zum
|
||||
jeweiligen Datenstichtag zusammengeführt. Ein vortrainiertes, symmetrisch
|
||||
aufgebautes Modell schätzt die Ähnlichkeit zu Profilen von Personen, die
|
||||
gegründet haben.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
Der Hauptwert ist ein
|
||||
<strong
|
||||
>Perzentil gegenüber einer festen Referenzkohorte von rund 9.000
|
||||
Forschenden aus acht anderen Universitäten</strong
|
||||
>
|
||||
– keine individuelle Gründungswahrscheinlichkeit.
|
||||
</li>
|
||||
<li>
|
||||
„Innerhalb 1 / 3 / 5 Jahre“ kommt aus drei eigenen Horizont-Modellen.
|
||||
Bewertbar sind Profile ab mindestens vier Publikationen. Die
|
||||
Kandidatenliste blendet standardmäßig Profile mit weniger als sieben
|
||||
Publikationen, unplausibel langen Karrieren (über 40 Jahre) und
|
||||
wahrscheinlichen Profilzusammenführungen aus.
|
||||
</li>
|
||||
</ul>
|
||||
</app-methodology-note>
|
||||
@if (hasData()) {
|
||||
<header class="hero">
|
||||
<h1>Welche Forschenden könnten künftig gründen?</h1>
|
||||
@@ -43,7 +69,7 @@
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<!-- <section>
|
||||
<h2>1 · Warum die Shortlist klein ist</h2>
|
||||
<p class="note">
|
||||
Jeder Balken zeigt, wie viele Personen nach einer Screening-Regel übrig
|
||||
@@ -67,8 +93,86 @@
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
</section> -->
|
||||
<section>
|
||||
<h2>1 · Woher die Kandidat:innen kommen</h2>
|
||||
<p class="note">
|
||||
Beide Panels nutzen die Shortlist am aktuellen Schwellenwert.
|
||||
</p>
|
||||
<div class="charts">
|
||||
<mat-card appearance="outlined" class="chart-card">
|
||||
<mat-card-content>
|
||||
<div class="chart__ttl">Karrierestufe</div>
|
||||
<div class="chart__body">
|
||||
@for (s of stageRows(); track s.career_bucket) {
|
||||
<div class="chart__row">
|
||||
<span class="chart__label">{{ s.career_bucket }}</span>
|
||||
<span
|
||||
class="chart__track"
|
||||
[title]="
|
||||
(s.shortlist_plain ?? 0) +
|
||||
' von ' +
|
||||
fmtInt(s.screened) +
|
||||
' gescreenten Forschenden'
|
||||
">
|
||||
<mat-progress-bar
|
||||
mode="determinate"
|
||||
[value]="((s.shortlist_plain ?? 0) / stageMax()) * 100" />
|
||||
</span>
|
||||
<span class="chart__num"
|
||||
>{{ s.shortlist_plain ?? 0 }}
|
||||
<small>/ {{ fmtInt(s.screened) }}</small></span
|
||||
>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="chart__axis">
|
||||
Balken sind Kandidatenzahlen; die graue Zahl ist der gescreente
|
||||
Pool der Stufe.
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<mat-card appearance="outlined" class="chart-card">
|
||||
<mat-card-content>
|
||||
<div class="chart__ttl">
|
||||
Forschungsfeld, vs. Anteil an der Kohorte
|
||||
</div>
|
||||
<div class="chart__body">
|
||||
@for (a of areaRows(); track a.code) {
|
||||
<div class="chart__row">
|
||||
<span class="chart__label">{{ a.label ?? a.code }}</span>
|
||||
<span
|
||||
class="chart__track"
|
||||
[title]="
|
||||
(a.shortlist_count ?? 0) +
|
||||
' Kandidat:innen; dieses Feld ist ' +
|
||||
fmt1((a.cohort_share ?? 0) * 100) +
|
||||
' % der gescreenten Kohorte'
|
||||
">
|
||||
<mat-progress-bar
|
||||
mode="determinate"
|
||||
[value]="((a.shortlist_count ?? 0) / areaMax()) * 100" />
|
||||
</span>
|
||||
<span class="chart__num"
|
||||
>{{ a.shortlist_count ?? 0 }}
|
||||
<small
|
||||
>· {{ fmt1((a.cohort_share ?? 0) * 100) }} % der
|
||||
Kohorte</small
|
||||
></span
|
||||
>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="chart__axis">
|
||||
Balken sind Kandidatenzahlen. Die graue Zahl ist der Anteil des
|
||||
Feldes an der gescreenten Kohorte – ein Feld deutlich über seinem
|
||||
Anteil überproduziert.
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
</section>
|
||||
<section>
|
||||
<h2>2 · Die Shortlist</h2>
|
||||
<p class="note">
|
||||
@@ -149,21 +253,14 @@
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="primary"
|
||||
(click)="openNetwork(row.candidate.author_id)">
|
||||
<mat-icon>{{ NETWORK_ICON }}</mat-icon>
|
||||
Netzwerk öffnen
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="card__grid">
|
||||
<div class="card__grid card__grid--founder-only">
|
||||
<div class="panel">
|
||||
<div class="panel__ttl">Gründungspotenzial</div>
|
||||
<p class="panel__cap">
|
||||
Rang gegen ~9.000 Wissenschaftler:innen an anderen
|
||||
Universitäten.
|
||||
Perzentil gegenüber der Modell-Referenzkohorte; keine
|
||||
individuelle Wahrscheinlichkeit.
|
||||
</p>
|
||||
<app-score-bar
|
||||
label="Score"
|
||||
@@ -182,36 +279,6 @@
|
||||
[value]="row.within[2] ?? 0"
|
||||
[display]="fmt1(row.within[2])" />
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel__ttl">Multiplikator-Rollen</div>
|
||||
<p class="panel__cap">
|
||||
Rang gegen Peers dieser Universität auf derselben
|
||||
Karrierestufe.
|
||||
</p>
|
||||
@for (s of subScores(); track s.key) {
|
||||
<app-score-bar
|
||||
variant="success"
|
||||
[label]="s.label"
|
||||
[hint]="s.hint"
|
||||
[value]="s.value * 100"
|
||||
[display]="fmtSubScore(s.value)" />
|
||||
}
|
||||
<div class="facts">
|
||||
@if (row.candidate.tags?.length) {
|
||||
@for (tag of row.candidate.tags ?? []; track tag) {
|
||||
<app-chip
|
||||
color="info"
|
||||
[matTooltip]="tagDescription(tag)"
|
||||
matTooltipPosition="above">
|
||||
{{ tagLabel(tag) }}
|
||||
</app-chip>
|
||||
}
|
||||
} @else {
|
||||
<span class="fact">kein Multiplikator-Badge</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="facts">
|
||||
@@ -248,86 +315,6 @@
|
||||
</mat-card>
|
||||
}
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>3 · Woher die Kandidat:innen kommen</h2>
|
||||
<p class="note">
|
||||
Beide Panels nutzen die Shortlist am aktuellen Schwellenwert.
|
||||
</p>
|
||||
<div class="charts">
|
||||
<mat-card appearance="outlined" class="chart-card">
|
||||
<mat-card-content>
|
||||
<div class="chart__ttl">Karrierestufe</div>
|
||||
<div class="chart__body">
|
||||
@for (s of stageRows(); track s.career_bucket) {
|
||||
<div class="chart__row">
|
||||
<span class="chart__label">{{ s.career_bucket }}</span>
|
||||
<span
|
||||
class="chart__track"
|
||||
[title]="
|
||||
(s.shortlist_plain ?? 0) +
|
||||
' von ' +
|
||||
fmtInt(s.screened) +
|
||||
' gescreenten Forschenden'
|
||||
">
|
||||
<mat-progress-bar
|
||||
mode="determinate"
|
||||
[value]="((s.shortlist_plain ?? 0) / stageMax()) * 100" />
|
||||
</span>
|
||||
<span class="chart__num"
|
||||
>{{ s.shortlist_plain ?? 0 }}
|
||||
<small>/ {{ fmtInt(s.screened) }}</small></span
|
||||
>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="chart__axis">
|
||||
Balken sind Kandidatenzahlen; die graue Zahl ist der gescreente
|
||||
Pool der Stufe.
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<mat-card appearance="outlined" class="chart-card">
|
||||
<mat-card-content>
|
||||
<div class="chart__ttl">
|
||||
Forschungsfeld, vs. Anteil an der Kohorte
|
||||
</div>
|
||||
<div class="chart__body">
|
||||
@for (a of areaRows(); track a.code) {
|
||||
<div class="chart__row">
|
||||
<span class="chart__label">{{ a.label ?? a.code }}</span>
|
||||
<span
|
||||
class="chart__track"
|
||||
[title]="
|
||||
(a.shortlist_count ?? 0) +
|
||||
' Kandidat:innen; dieses Feld ist ' +
|
||||
fmt1((a.cohort_share ?? 0) * 100) +
|
||||
' % der gescreenten Kohorte'
|
||||
">
|
||||
<mat-progress-bar
|
||||
mode="determinate"
|
||||
[value]="((a.shortlist_count ?? 0) / areaMax()) * 100" />
|
||||
</span>
|
||||
<span class="chart__num"
|
||||
>{{ a.shortlist_count ?? 0 }}
|
||||
<small
|
||||
>· {{ fmt1((a.cohort_share ?? 0) * 100) }} % der
|
||||
Kohorte</small
|
||||
></span
|
||||
>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="chart__axis">
|
||||
Balken sind Kandidatenzahlen. Die graue Zahl ist der Anteil des
|
||||
Feldes an der gescreenten Kohorte – ein Feld deutlich über seinem
|
||||
Anteil überproduziert.
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
</section>
|
||||
} @else {
|
||||
<mat-card appearance="outlined" class="empty-state">
|
||||
<mat-card-content>
|
||||
@@ -336,8 +323,8 @@
|
||||
<p>
|
||||
Für die <strong>{{ universityName() }}</strong> wurde das
|
||||
Gründungspotenzial noch nicht berechnet. Sobald die Auswertung
|
||||
vorliegt, erscheinen hier die Kandidat:innen, ihre Scores und ihre
|
||||
Multiplikator-Netzwerke.
|
||||
vorliegt, erscheinen hier die Kandidat:innen und ihre
|
||||
Gründungspotenzial-Scores.
|
||||
</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
@@ -394,19 +381,3 @@
|
||||
}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #actionsTemplate let-row>
|
||||
<span class="list__actions">
|
||||
@if (!row.candidate.screen.passed && row.flagLabel) {
|
||||
<span class="warn-pill">{{ row.flagLabel }}</span>
|
||||
}
|
||||
<button
|
||||
mat-icon-button
|
||||
type="button"
|
||||
[attr.aria-label]="'Netzwerk von ' + row.name + ' öffnen'"
|
||||
matTooltip="Netzwerk öffnen"
|
||||
(click)="openNetwork(row.candidate.author_id); $event.stopPropagation()">
|
||||
<mat-icon>{{ NETWORK_ICON }}</mat-icon>
|
||||
</button>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
+4
@@ -432,6 +432,10 @@ h2 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 18px;
|
||||
|
||||
&--founder-only {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.panel {
|
||||
|
||||
+9
-38
@@ -11,13 +11,11 @@ import {
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { toSignal } from '@angular/core/rxjs-interop';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
||||
import { MatSliderModule } from '@angular/material/slider';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import {
|
||||
CareerStageStatistics,
|
||||
@@ -32,9 +30,6 @@ import {
|
||||
clamp,
|
||||
fmt1,
|
||||
fmtInt,
|
||||
fmtSubScore,
|
||||
tagDescription,
|
||||
tagLabel,
|
||||
} from '../founder-potential.utils';
|
||||
import { ScoreBarComponent } from '../../../shared/ui/score-bar/score-bar.component';
|
||||
import { QueryParamPaginatorComponent } from '../../../shared/ui/query-param-paginator/query-param-paginator.component';
|
||||
@@ -43,11 +38,11 @@ import {
|
||||
DataTableComponent,
|
||||
GenericColumn,
|
||||
} from '../../../shared/ui/data-table/data-table.component';
|
||||
import { FOUNDER_ICON, NETWORK_ICON } from '../../../shared/ui/icons';
|
||||
import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component';
|
||||
import { FOUNDER_ICON } from '../../../shared/ui/icons';
|
||||
import { CredentialService } from '../../../shared/services/credential.service';
|
||||
|
||||
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
|
||||
const SUB_SCORE_KEYS = ['bridger', 'mentor', 'amplifier'] as const;
|
||||
|
||||
/**
|
||||
* A shortlist row: the generated candidate plus only the values that the
|
||||
@@ -68,23 +63,21 @@ interface FounderRow {
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatButtonModule,
|
||||
MatCardModule,
|
||||
MatIconModule,
|
||||
MatProgressBarModule,
|
||||
MatSlideToggleModule,
|
||||
MatSliderModule,
|
||||
MatTooltipModule,
|
||||
ScoreBarComponent,
|
||||
QueryParamPaginatorComponent,
|
||||
ChipComponent,
|
||||
DataTableComponent,
|
||||
MethodologyNoteComponent,
|
||||
],
|
||||
templateUrl: './founder-dashboard.component.html',
|
||||
styleUrl: './founder-dashboard.component.scss',
|
||||
})
|
||||
export class FounderDashboardComponent {
|
||||
readonly NETWORK_ICON = NETWORK_ICON;
|
||||
readonly FOUNDER_ICON = FOUNDER_ICON;
|
||||
|
||||
readonly statistics = input.required<FounderStatistics>();
|
||||
@@ -108,8 +101,12 @@ export class FounderDashboardComponent {
|
||||
initialValue: this.route.snapshot.queryParamMap,
|
||||
});
|
||||
|
||||
readonly threshold = computed(() => toNumber(this.queryParams().get('threshold')) ?? 90);
|
||||
readonly screened = computed(() => (this.queryParams().get('screened') ?? 'true') === 'true');
|
||||
readonly threshold = computed(
|
||||
() => toNumber(this.queryParams().get('threshold')) ?? 90,
|
||||
);
|
||||
readonly screened = computed(
|
||||
() => this.queryParams().get('screened') === 'true',
|
||||
);
|
||||
|
||||
/** Live value while dragging the slider; committed to the URL on release. */
|
||||
readonly thresholdDraft = signal<number>(90);
|
||||
@@ -159,8 +156,6 @@ export class FounderDashboardComponent {
|
||||
viewChild.required<TemplateRef<FounderRow>>('withinTemplate');
|
||||
private readonly evidenceTemplate =
|
||||
viewChild.required<TemplateRef<FounderRow>>('evidenceTemplate');
|
||||
private readonly actionsTemplate =
|
||||
viewChild.required<TemplateRef<FounderRow>>('actionsTemplate');
|
||||
|
||||
readonly columns = computed<GenericColumn<FounderRow>[]>(() => [
|
||||
{
|
||||
@@ -187,12 +182,6 @@ export class FounderDashboardComponent {
|
||||
type: 'display',
|
||||
cellTemplate: this.evidenceTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'actions',
|
||||
header: '',
|
||||
type: 'display',
|
||||
cellTemplate: this.actionsTemplate(),
|
||||
},
|
||||
]);
|
||||
|
||||
readonly total = computed(() => this.candidates().total ?? 0);
|
||||
@@ -212,25 +201,10 @@ export class FounderDashboardComponent {
|
||||
return rows[0] ?? null;
|
||||
});
|
||||
|
||||
/** The three multiplier roles of the selected person, with their tooltips. */
|
||||
readonly subScores = computed(() => {
|
||||
const peerRanks = this.selectedRow()?.candidate.multiplier_peer_ranks;
|
||||
return SUB_SCORE_KEYS.map((key) => ({
|
||||
key,
|
||||
label: tagLabel(key),
|
||||
hint: tagDescription(key),
|
||||
value: peerRanks?.[key] ?? 0,
|
||||
}));
|
||||
});
|
||||
|
||||
selectCandidate(id: string): void {
|
||||
this.selectedId.set(id);
|
||||
}
|
||||
|
||||
openNetwork(id: string): void {
|
||||
void this.router.navigate(['/founders', id]);
|
||||
}
|
||||
|
||||
// -- Controls -----------------------------------------------------------
|
||||
|
||||
/** Discrete label inside the Material slider thumb. */
|
||||
@@ -283,9 +257,6 @@ export class FounderDashboardComponent {
|
||||
|
||||
readonly fmtInt = fmtInt;
|
||||
readonly fmt1 = fmt1;
|
||||
readonly fmtSubScore = fmtSubScore;
|
||||
readonly tagLabel = tagLabel;
|
||||
readonly tagDescription = tagDescription;
|
||||
|
||||
/** Clamp a percentile into the 0-100 band for bar widths. */
|
||||
readonly clamp0 = (value: number | null) =>
|
||||
|
||||
@@ -1,34 +1,30 @@
|
||||
import { ResearcherMetrics } from '../../api';
|
||||
import {
|
||||
MULTIPLIER_TAG_DESCRIPTIONS,
|
||||
MULTIPLIER_TAG_LABELS,
|
||||
multiplierTagDescription,
|
||||
multiplierTagLabel,
|
||||
} from '../../shared/ui/multiplier-role-scores/multiplier-role-labels';
|
||||
|
||||
/**
|
||||
* Multiplier archetype labels. These stay in English on purpose: Bridger,
|
||||
* Mentor and Amplifier are the model's own role names and are not translated.
|
||||
*/
|
||||
export const TAG_LABELS: Record<string, string> = {
|
||||
bridger: 'Bridger',
|
||||
mentor: 'Mentor',
|
||||
amplifier: 'Amplifier',
|
||||
...MULTIPLIER_TAG_LABELS,
|
||||
};
|
||||
|
||||
/** What each multiplier archetype means, shown as a tooltip. */
|
||||
export const TAG_DESCRIPTIONS: Record<string, string> = {
|
||||
bridger:
|
||||
'Bridger: verbindet Personengruppen, die sonst nicht zusammenarbeiten würden. ' +
|
||||
'Hohe Brokerage zwischen ansonsten getrennten Koautor:innen-Netzen.',
|
||||
mentor:
|
||||
'Mentor: führt Nachwuchsforschende als Erstautor:innen in gemeinsame ' +
|
||||
'Publikationen und fördert deren weitere Laufbahn.',
|
||||
amplifier:
|
||||
'Amplifier: trägt Wissen nach außen – über Patente, ' +
|
||||
'Industriekollaborationen, Medienresonanz und EU-Projekte.',
|
||||
...MULTIPLIER_TAG_DESCRIPTIONS,
|
||||
};
|
||||
|
||||
export function tagLabel(tag: string): string {
|
||||
return TAG_LABELS[tag] ?? tag;
|
||||
return multiplierTagLabel(tag);
|
||||
}
|
||||
|
||||
export function tagDescription(tag: string): string {
|
||||
return TAG_DESCRIPTIONS[tag] ?? TAG_LABELS[tag] ?? tag;
|
||||
return multiplierTagDescription(tag);
|
||||
}
|
||||
|
||||
/** German labels for the data-quality screen reasons. */
|
||||
|
||||
+242
@@ -0,0 +1,242 @@
|
||||
<div class="multipliers-dashboard">
|
||||
<header class="hero">
|
||||
<p class="eyebrow">Multiplikatoren · {{ universityName() }}</p>
|
||||
<h1>Wer stärkt das Innovationsökosystem?</h1>
|
||||
<p class="lede">
|
||||
Entdecke Forschende, die Forschungsgruppen verbinden, Nachwuchs fördern
|
||||
oder Wissen in Wirtschaft und Öffentlichkeit tragen. Die Rollen-Scores
|
||||
vergleichen Forschende derselben Karrierestufe an der
|
||||
<strong>{{ universityName() }}</strong>.
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<app-methodology-note>
|
||||
<p>
|
||||
<strong>Datenbasis:</strong> Die UDE-Kohorte umfasst die Universität und
|
||||
acht zugehörige Einrichtungen. Forschende werden anhand jüngerer
|
||||
OpenAlex-Affiliationen ausgewählt; ihre Publikationen und
|
||||
Koautorenschaften werden anschließend institutionsübergreifend
|
||||
ausgewertet. Die Rollen-Scores vergleichen nur Personen derselben
|
||||
Karrierestufe.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Bridger:</strong> Netzwerkvermittlung, Verbindungen zwischen
|
||||
Fachgebieten und Institutionen.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Mentor:</strong> gemeinsame Publikationen mit Nachwuchs sowie
|
||||
Hinweise auf Betreuung und deren berufliche Entwicklung.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Amplifier:</strong> Industriekooperationen, verknüpfte Patente,
|
||||
EU-Projekte und relevante Medienerwähnungen.
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
Rohmetriken werden zunächst innerhalb der vier Karrierestufen
|
||||
<strong>Early, Emerging, Established, Senior</strong> in Peer-Ränge
|
||||
umgerechnet. Die drei Rollen-Scores sind gewichtete Mittel dieser Ränge:
|
||||
Bridger (35 % Betweenness, 25 % Brokerage, 20 % Feldbreite,
|
||||
20 % institutionsübergreifende Zusammenarbeit), Mentor (35 %
|
||||
Nachwuchs, 25 % Mentoring-Rate, 25 % typische Autor:innenrollen,
|
||||
15 % Nachwuchsentwicklung) und Amplifier (50 % Industrie,
|
||||
25 % Patente, 15 % EU-Projekte, 10 % Medien). Ab 85 %
|
||||
und mindestens zwei aktiven Jahren wird ein Badge vergeben. Ein Score
|
||||
beschreibt ein relatives Signal, keinen kausalen Nachweis.
|
||||
</p>
|
||||
<p>
|
||||
Die aktuelle Multiplikator-Auswertung ist für die definierte UDE-Kohorte
|
||||
berechnet. Für andere Universitäten erscheinen Daten erst, wenn deren
|
||||
Kohorte ebenfalls durch die Pipeline verarbeitet wurde.
|
||||
</p>
|
||||
</app-methodology-note>
|
||||
|
||||
<section class="filters-section" aria-label="Multiplikatoren filtern">
|
||||
<mat-card appearance="outlined" class="filters-card">
|
||||
<mat-card-content>
|
||||
<div class="filters-grid">
|
||||
<mat-form-field appearance="outline" class="name-filter">
|
||||
<mat-label>Name suchen</mat-label>
|
||||
<input
|
||||
matInput
|
||||
[value]="nameDraft()"
|
||||
(input)="onNameInput($event)"
|
||||
(keyup.enter)="onFilterCommit()"
|
||||
placeholder="Name oder Namensanfang" />
|
||||
<mat-icon matSuffix>{{ SEARCH_ICON }}</mat-icon>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Rollen-Badge</mat-label>
|
||||
<mat-select
|
||||
multiple
|
||||
[value]="selectedTags()"
|
||||
(selectionChange)="onTagsChange($event.value)">
|
||||
@for (role of roleOptions; track role.value) {
|
||||
<mat-option [value]="role.value">{{ role.label }}</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Karrierestufe</mat-label>
|
||||
<mat-select
|
||||
multiple
|
||||
[value]="selectedCareerBuckets()"
|
||||
(selectionChange)="onCareerBucketsChange($event.value)">
|
||||
@for (bucket of careerOptions; track bucket) {
|
||||
<mat-option [value]="bucket">{{ bucket }}</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Rolle für Mindest-Rang</mat-label>
|
||||
<mat-select
|
||||
[value]="selectedPeerRankField()"
|
||||
(selectionChange)="onPeerRankFieldChange($event.value)">
|
||||
@for (field of peerRankFields; track field.value) {
|
||||
<mat-option [value]="field.value">{{ field.label }}</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<div class="rank-filter">
|
||||
<label for="min-rank">Mindest-Rang: {{ minPeerRankDraft() }} %</label>
|
||||
<mat-slider
|
||||
id="min-rank"
|
||||
[min]="0"
|
||||
[max]="100"
|
||||
[step]="5"
|
||||
[discrete]="true"
|
||||
[displayWith]="formatPercent">
|
||||
<input
|
||||
matSliderThumb
|
||||
[value]="minPeerRankDraft()"
|
||||
(valueChange)="onMinRankInput($event)"
|
||||
(dragEnd)="onFilterCommit()"
|
||||
(keyup.enter)="onFilterCommit()"
|
||||
aria-label="Mindest-Rang" />
|
||||
</mat-slider>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="filter-actions">
|
||||
<span class="result-count">
|
||||
{{ fmtInt(pageTotal()) }}
|
||||
{{ pageTotal() === 1 ? 'Forschende:r' : 'Forschende' }}
|
||||
</span>
|
||||
<button mat-button type="button" (click)="clearFilters()">
|
||||
Filter zurücksetzen
|
||||
</button>
|
||||
<button
|
||||
mat-flat-button
|
||||
color="primary"
|
||||
type="button"
|
||||
(click)="onFilterCommit()">
|
||||
<mat-icon>{{ SEARCH_ICON }}</mat-icon>
|
||||
Anwenden
|
||||
</button>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</section>
|
||||
|
||||
<section class="table-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<h2>Multiplikator:innen in der Kohorte</h2>
|
||||
<p class="note">
|
||||
Nach dem stärksten Rollen-Rang sortiert. Öffne das Netzwerk, um
|
||||
Kooperationen und die zugrunde liegenden Metriken anzusehen.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<mat-card appearance="outlined" class="table-card">
|
||||
<mat-card-content>
|
||||
@if (rows().length > 0) {
|
||||
<app-data-table
|
||||
[columns]="columns()"
|
||||
[data]="rows()"
|
||||
[stickyHeader]="false"
|
||||
queryParamSortKey="sortBy"
|
||||
queryParamSortDirectionKey="sortOrder" />
|
||||
} @else if (pageTotal() === 0 && selectedTags().length === 0 && selectedCareerBuckets().length === 0 && !nameDraft() && appliedMinPeerRank() === 0) {
|
||||
<div class="empty-state">
|
||||
<mat-icon>hub</mat-icon>
|
||||
<h3>Noch keine Multiplikator-Daten</h3>
|
||||
<p>
|
||||
Für die <strong>{{ universityName() }}</strong> wurden noch keine
|
||||
Multiplikator-Scores berechnet.
|
||||
</p>
|
||||
</div>
|
||||
} @else {
|
||||
<div class="empty-state empty-state--filtered">
|
||||
<h3>Keine passenden Forschenden gefunden</h3>
|
||||
<p>Ändere oder entferne einen Filter, um weitere Ergebnisse zu sehen.</p>
|
||||
</div>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<app-query-param-paginator
|
||||
[total]="pageTotal()"
|
||||
[pageSizeOptions]="[10, 25, 50, 100]" />
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<ng-template #nameTemplate let-row>
|
||||
<div class="person-cell">
|
||||
<span class="person-cell__name">{{ row.name }}</span>
|
||||
<span class="person-cell__meta">
|
||||
{{ fmtInt(row.nWorks) }} Publikationen ·
|
||||
{{ fmtInt(row.activeYears) }} aktive Jahre
|
||||
@if (row.researcher.suspicious_profile) {
|
||||
· <span class="warning">Profil mit möglicher Zusammenführung</span>
|
||||
}
|
||||
</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #rolesTemplate let-row>
|
||||
<app-multiplier-role-scores
|
||||
presentation="compact"
|
||||
[scores]="row.researcher.multiplier_peer_ranks" />
|
||||
</ng-template>
|
||||
|
||||
<ng-template #tagsTemplate let-row>
|
||||
@if (row.tags.length) {
|
||||
<div class="tags-cell">
|
||||
@for (tag of row.tags; track tag) {
|
||||
<app-chip
|
||||
color="info"
|
||||
[matTooltip]="tagDescription(tag)"
|
||||
matTooltipPosition="above">
|
||||
{{ tagLabel(tag) }}
|
||||
</app-chip>
|
||||
}
|
||||
</div>
|
||||
} @else {
|
||||
<span class="muted">–</span>
|
||||
}
|
||||
</ng-template>
|
||||
|
||||
<ng-template #maxTemplate let-row>
|
||||
<span class="max-score">
|
||||
<mat-progress-bar mode="determinate" [value]="row.max * 100" />
|
||||
<strong>{{ fmtSubScore(row.max) }}</strong>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #actionTemplate let-row>
|
||||
<button
|
||||
mat-icon-button
|
||||
type="button"
|
||||
[attr.aria-label]="'Netzwerk von ' + row.name + ' öffnen'"
|
||||
matTooltip="Multiplikator-Netzwerk öffnen"
|
||||
(click)="openNetwork(row); $event.stopPropagation()">
|
||||
<mat-icon>{{ NETWORK_ICON }}</mat-icon>
|
||||
</button>
|
||||
</ng-template>
|
||||
+239
@@ -0,0 +1,239 @@
|
||||
.multipliers-dashboard {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 24px 8px 64px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
max-width: 75ch;
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 10px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0 0 12px;
|
||||
color: var(--sg-text);
|
||||
font-size: 30px;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.lede {
|
||||
margin: 0;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 15px;
|
||||
line-height: 1.55;
|
||||
|
||||
strong {
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.filters-section,
|
||||
.table-section {
|
||||
margin-top: 28px;
|
||||
}
|
||||
|
||||
.filters-card,
|
||||
.table-card {
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.filters-card .mat-mdc-card-content {
|
||||
padding: 16px 18px;
|
||||
}
|
||||
|
||||
.filters-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(150px, 1fr)) minmax(190px, 1.1fr);
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
|
||||
mat-form-field {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.name-filter {
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-filter {
|
||||
min-width: 0;
|
||||
padding: 0 8px;
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 2px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
mat-slider {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
.result-count {
|
||||
margin-right: auto;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12.5px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 12px;
|
||||
|
||||
h2 {
|
||||
margin: 0 0 4px;
|
||||
color: var(--sg-text);
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.note {
|
||||
margin: 0;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.table-card {
|
||||
overflow: hidden;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.person-cell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
min-width: 160px;
|
||||
|
||||
&__name {
|
||||
color: var(--sg-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&__meta {
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11.5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.warning {
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
.tags-cell {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.max-score {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 105px;
|
||||
color: var(--sg-text);
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
|
||||
.mat-mdc-progress-bar {
|
||||
--mat-progress-bar-track-height: 7px;
|
||||
--mat-progress-bar-active-indicator-height: 7px;
|
||||
--mat-progress-bar-track-color: var(--sg-surface-soft);
|
||||
--mat-progress-bar-active-indicator-color: var(--sg-success);
|
||||
width: 62px;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
display: flex;
|
||||
min-height: 190px;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 28px;
|
||||
text-align: center;
|
||||
|
||||
mat-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 34px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 10px 0 5px;
|
||||
color: var(--sg-text);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
p {
|
||||
max-width: 60ch;
|
||||
margin: 0;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&--filtered {
|
||||
min-height: 130px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.filters-grid {
|
||||
grid-template-columns: repeat(2, minmax(180px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.hero h1 {
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.filters-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.filter-actions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.section-heading h2 {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
+266
@@ -0,0 +1,266 @@
|
||||
import {
|
||||
Component,
|
||||
computed,
|
||||
effect,
|
||||
inject,
|
||||
input,
|
||||
signal,
|
||||
TemplateRef,
|
||||
viewChild,
|
||||
} from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
||||
import { toSignal } from '@angular/core/rxjs-interop';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatSliderModule } from '@angular/material/slider';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import {
|
||||
CareerBucket,
|
||||
MultiplierTag,
|
||||
PeerRankField,
|
||||
ResearcherSortBy,
|
||||
ResearcherSummary,
|
||||
ResearcherSummaryPage,
|
||||
} from '../../../api';
|
||||
import { fmtInt, fmtSubScore, tagDescription, tagLabel } from '../founder-potential.utils';
|
||||
import { ChipComponent } from '../../../shared/ui/chip/chip.component';
|
||||
import {
|
||||
DataTableComponent,
|
||||
GenericColumn,
|
||||
} from '../../../shared/ui/data-table/data-table.component';
|
||||
import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component';
|
||||
import { MultiplierRoleScoresComponent } from '../../../shared/ui/multiplier-role-scores/multiplier-role-scores.component';
|
||||
import { QueryParamPaginatorComponent } from '../../../shared/ui/query-param-paginator/query-param-paginator.component';
|
||||
import { CredentialService } from '../../../shared/services/credential.service';
|
||||
import { NETWORK_ICON, SEARCH_ICON } from '../../../shared/ui/icons';
|
||||
|
||||
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
|
||||
|
||||
interface MultiplierRow {
|
||||
researcher: ResearcherSummary;
|
||||
name: string;
|
||||
careerBucket: string;
|
||||
activeYears: number;
|
||||
nWorks: number;
|
||||
tags: string[];
|
||||
max: number;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-multipliers-dashboard',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule,
|
||||
MatButtonModule,
|
||||
MatCardModule,
|
||||
MatFormFieldModule,
|
||||
MatIconModule,
|
||||
MatInputModule,
|
||||
MatProgressBarModule,
|
||||
MatSelectModule,
|
||||
MatSliderModule,
|
||||
MatTooltipModule,
|
||||
ChipComponent,
|
||||
DataTableComponent,
|
||||
MethodologyNoteComponent,
|
||||
MultiplierRoleScoresComponent,
|
||||
QueryParamPaginatorComponent,
|
||||
],
|
||||
templateUrl: './multipliers-dashboard.component.html',
|
||||
styleUrl: './multipliers-dashboard.component.scss',
|
||||
})
|
||||
export class MultipliersDashboardComponent {
|
||||
readonly NETWORK_ICON = NETWORK_ICON;
|
||||
readonly SEARCH_ICON = SEARCH_ICON;
|
||||
|
||||
readonly researchers = input.required<ResearcherSummaryPage>();
|
||||
|
||||
private readonly router = inject(Router);
|
||||
private readonly route = inject(ActivatedRoute);
|
||||
private readonly credentials = inject(CredentialService, { optional: true });
|
||||
|
||||
private readonly queryParams = toSignal(this.route.queryParamMap, {
|
||||
initialValue: this.route.snapshot.queryParamMap,
|
||||
});
|
||||
|
||||
readonly universityName = computed(
|
||||
() => this.credentials?.organizationName() || FALLBACK_UNIVERSITY,
|
||||
);
|
||||
readonly pageTotal = computed(() => this.researchers().total ?? 0);
|
||||
readonly nameDraft = signal('');
|
||||
readonly minPeerRankDraft = signal(0);
|
||||
|
||||
readonly selectedTags = computed(() => this.queryParams().getAll('tag'));
|
||||
readonly selectedCareerBuckets = computed(() =>
|
||||
this.queryParams().getAll('careerBucket'),
|
||||
);
|
||||
readonly selectedPeerRankField = computed(
|
||||
() => this.queryParams().get('peerRankField') ?? PeerRankField.Max,
|
||||
);
|
||||
readonly appliedMinPeerRank = computed(
|
||||
() => Math.round((toNumber(this.queryParams().get('minPeerRank')) ?? 0) * 100),
|
||||
);
|
||||
|
||||
readonly roleOptions = [
|
||||
{ value: MultiplierTag.Bridger, label: tagLabel(MultiplierTag.Bridger) },
|
||||
{ value: MultiplierTag.Mentor, label: tagLabel(MultiplierTag.Mentor) },
|
||||
{ value: MultiplierTag.Amplifier, label: tagLabel(MultiplierTag.Amplifier) },
|
||||
];
|
||||
readonly careerOptions = Object.values(CareerBucket);
|
||||
readonly peerRankFields = [
|
||||
{ value: PeerRankField.Max, label: 'Stärkste Rolle' },
|
||||
{ value: PeerRankField.Bridger, label: tagLabel(MultiplierTag.Bridger) },
|
||||
{ value: PeerRankField.Mentor, label: tagLabel(MultiplierTag.Mentor) },
|
||||
{ value: PeerRankField.Amplifier, label: tagLabel(MultiplierTag.Amplifier) },
|
||||
];
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
this.nameDraft.set(this.queryParams().get('name') ?? '');
|
||||
this.minPeerRankDraft.set(this.appliedMinPeerRank());
|
||||
}, { allowSignalWrites: true });
|
||||
}
|
||||
|
||||
private readonly nameTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('nameTemplate');
|
||||
private readonly rolesTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('rolesTemplate');
|
||||
private readonly tagsTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('tagsTemplate');
|
||||
private readonly maxTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('maxTemplate');
|
||||
private readonly actionTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('actionTemplate');
|
||||
|
||||
readonly rows = computed<MultiplierRow[]>(() =>
|
||||
(this.researchers().elements ?? []).map((researcher) => ({
|
||||
researcher,
|
||||
name: researcher.display_name ?? researcher.author_id,
|
||||
careerBucket: researcher.career_bucket ?? '–',
|
||||
activeYears: researcher.active_years ?? 0,
|
||||
nWorks: researcher.n_works ?? 0,
|
||||
tags: researcher.tags ?? [],
|
||||
max: researcher.max_multiplier_peer_rank ?? 0,
|
||||
})),
|
||||
);
|
||||
|
||||
readonly columns = computed<GenericColumn<MultiplierRow>[]>(() => [
|
||||
{
|
||||
id: 'name',
|
||||
header: 'Forschende:r',
|
||||
type: 'display',
|
||||
cellTemplate: this.nameTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'roles',
|
||||
header: 'Multiplikator-Rollen',
|
||||
type: 'display',
|
||||
cellTemplate: this.rolesTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'tags',
|
||||
header: 'Badges',
|
||||
type: 'display',
|
||||
cellTemplate: this.tagsTemplate(),
|
||||
},
|
||||
{
|
||||
id: ResearcherSortBy.Max,
|
||||
header: 'Stärkster Rang',
|
||||
type: 'accessor',
|
||||
accessorKey: 'max',
|
||||
cellTemplate: this.maxTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'network',
|
||||
header: '',
|
||||
type: 'display',
|
||||
cellTemplate: this.actionTemplate(),
|
||||
},
|
||||
]);
|
||||
|
||||
readonly formatPercent = (value: number): string => `${value}%`;
|
||||
readonly fmtInt = fmtInt;
|
||||
readonly fmtSubScore = fmtSubScore;
|
||||
readonly tagLabel = tagLabel;
|
||||
readonly tagDescription = tagDescription;
|
||||
|
||||
onNameInput(event: Event): void {
|
||||
this.nameDraft.set((event.target as HTMLInputElement).value);
|
||||
}
|
||||
|
||||
onMinRankInput(value: number): void {
|
||||
this.minPeerRankDraft.set(value);
|
||||
}
|
||||
|
||||
onFilterCommit(): void {
|
||||
const rank = this.minPeerRankDraft();
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: {
|
||||
name: this.nameDraft().trim() || null,
|
||||
minPeerRank: rank > 0 ? rank / 100 : null,
|
||||
peerRankField: this.selectedPeerRankField() || PeerRankField.Max,
|
||||
page: 0,
|
||||
},
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
|
||||
onTagsChange(values: string[]): void {
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: { tag: values.length ? values : null, page: 0 },
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
|
||||
onCareerBucketsChange(values: string[]): void {
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: { careerBucket: values.length ? values : null, page: 0 },
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
|
||||
onPeerRankFieldChange(value: string): void {
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: { peerRankField: value, page: 0 },
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
|
||||
openNetwork(row: MultiplierRow): void {
|
||||
void this.router.navigate(['/founders', row.researcher.author_id]);
|
||||
}
|
||||
|
||||
clearFilters(): void {
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: {
|
||||
tag: null,
|
||||
careerBucket: null,
|
||||
name: null,
|
||||
minPeerRank: null,
|
||||
peerRankField: PeerRankField.Max,
|
||||
suspiciousProfile: null,
|
||||
page: 0,
|
||||
},
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function toNumber(value: string | null): number | null {
|
||||
if (value === null || value === '') return null;
|
||||
const parsed = Number(value);
|
||||
return Number.isFinite(parsed) && parsed >= 0 && parsed <= 1 ? parsed : null;
|
||||
}
|
||||
+84
-142
@@ -1,4 +1,9 @@
|
||||
<div class="researcher-network">
|
||||
<a mat-button class="back-link" routerLink="/multipliers">
|
||||
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
|
||||
Zurück zu den Multiplikatoren
|
||||
</a>
|
||||
|
||||
@if (unavailable(); as empty) {
|
||||
<mat-card appearance="outlined" class="unavailable">
|
||||
<mat-card-content>
|
||||
@@ -8,16 +13,16 @@
|
||||
@if (empty.hint) {
|
||||
<p class="unavailable__hint">{{ empty.hint }}</p>
|
||||
}
|
||||
<a mat-stroked-button color="primary" routerLink="/founders">
|
||||
<button mat-stroked-button color="primary" (click)="backToMultipliers()">
|
||||
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
|
||||
Zurück zum Gründungspotenzial
|
||||
</a>
|
||||
Zur Multiplikatoren-Übersicht
|
||||
</button>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
} @else {
|
||||
<header class="page">
|
||||
<p class="eyebrow">
|
||||
Smart-Guide · Multiplikator-Detektion · {{ universityName() }}
|
||||
Smart-Guide · Multiplikatoren · {{ universityName() }}
|
||||
</p>
|
||||
<h1>{{ name() }}</h1>
|
||||
<div class="meta-line">
|
||||
@@ -27,15 +32,15 @@
|
||||
[activeYears]="activeYears()"
|
||||
size="md" />
|
||||
}
|
||||
<span
|
||||
>{{ fmtInt(nWorks()) }} Publikationen ·
|
||||
{{ fmtInt(activeYears()) }} aktive Jahre</span
|
||||
>
|
||||
<span>
|
||||
{{ fmtInt(nWorks()) }} Publikationen ·
|
||||
{{ fmtInt(activeYears()) }} aktive Jahre
|
||||
</span>
|
||||
@if (suspicious()) {
|
||||
<span class="suspicious"
|
||||
><mat-icon>{{ WARNING_ICON }}</mat-icon> Zusammengeführtes
|
||||
Profil</span
|
||||
>
|
||||
<span class="suspicious">
|
||||
<mat-icon>{{ WARNING_ICON }}</mat-icon>
|
||||
Zusammengeführtes Profil · Daten vorsichtig interpretieren
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
@if (tags().length) {
|
||||
@@ -52,6 +57,24 @@
|
||||
}
|
||||
</header>
|
||||
|
||||
<app-methodology-note>
|
||||
<p>
|
||||
Für das Diagramm werden Koautor:innen-Paare aus Publikationen zu einem
|
||||
gewichteten Netzwerk verbunden. Arbeiten mit mehr als 50 Autor:innen
|
||||
werden nur aus dem Graphen ausgeschlossen (sie zählen weiterhin für
|
||||
Publikations- und Karrierewerte); ältere Kanten werden mit 0,8 pro Jahr
|
||||
abgewichtet. Gezeigt werden bis zu 42 starke Koautor:innen, wobei
|
||||
Nachwuchs-Koautor:innen bevorzugt aufgenommen werden.
|
||||
</p>
|
||||
<p>
|
||||
Die drei Rollen-Scores sind gewichtete Mittel von Metrik-Perzentilen
|
||||
gegenüber Forschenden derselben Karrierestufe an der
|
||||
<strong>{{ universityName() }}</strong>. Ein Score von 85 % ist
|
||||
damit ein relativer Peer-Rang, kein kausaler Nachweis. Die Badges
|
||||
markieren Rollen-Scores ab 85 %.
|
||||
</p>
|
||||
</app-methodology-note>
|
||||
|
||||
<div class="legend">
|
||||
@for (entry of roleLegend(); track entry.role) {
|
||||
<span class="legend__item">
|
||||
@@ -62,13 +85,14 @@
|
||||
{{ entry.label }}
|
||||
</span>
|
||||
}
|
||||
<span class="legend__item"
|
||||
><span class="legend__edge"></span>Kollaboration (Breite = Stärke)</span
|
||||
>
|
||||
<span class="legend__item"
|
||||
><span class="legend__edge legend__edge--dashed"></span>überwiegend
|
||||
institutionsübergreifend</span
|
||||
>
|
||||
<span class="legend__item">
|
||||
<span class="legend__edge"></span>
|
||||
Kollaboration (Breite = Stärke)
|
||||
</span>
|
||||
<span class="legend__item">
|
||||
<span class="legend__edge legend__edge--dashed"></span>
|
||||
überwiegend institutionsübergreifend
|
||||
</span>
|
||||
<span class="legend__item">Knotengröße = aktive Jahre</span>
|
||||
</div>
|
||||
|
||||
@@ -88,143 +112,61 @@
|
||||
<div class="netbox__empty">Kein Netzwerk verfügbar.</div>
|
||||
}
|
||||
<div class="netfoot">
|
||||
{{ fmtInt(netMeta().shown) }} der
|
||||
{{ fmtInt(netMeta().shown) }} von
|
||||
{{ fmtInt(netMeta().totalCoauthors) }} Koautor:innen dargestellt ·
|
||||
{{ fmtInt(netMeta().cohortCoauthors) }} aus der UDE-Kohorte ·
|
||||
{{ fmtInt(netMeta().mentees) }} Mentees
|
||||
{{ fmtInt(netMeta().cohortCoauthors) }} aus der
|
||||
Universitätskohorte · {{ fmtInt(netMeta().mentees) }} Mentees
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<mat-card appearance="outlined" class="detail-card">
|
||||
<mat-card-content>
|
||||
<div class="panel">
|
||||
<div>
|
||||
<h3>Multiplikator-Scores</h3>
|
||||
<p class="cap">
|
||||
Rang gegen Peers dieser Universität, gleiche Karrierestufe.
|
||||
Schwelle: 85.
|
||||
</p>
|
||||
@for (s of subScores(); track s.key) {
|
||||
<app-score-bar
|
||||
variant="success"
|
||||
[label]="s.label"
|
||||
[hint]="s.hint"
|
||||
[value]="s.value * 100"
|
||||
[display]="fmtSubScore(s.value)"
|
||||
[threshold]="tagThreshold" />
|
||||
}
|
||||
</div>
|
||||
<section class="panel">
|
||||
<h2>Multiplikator-Rollen</h2>
|
||||
<p class="cap">
|
||||
Peer-Rang innerhalb derselben Karrierestufe. Die gestrichelte
|
||||
Markierung zeigt die Badge-Schwelle von 85 %.
|
||||
</p>
|
||||
<app-multiplier-role-scores
|
||||
presentation="detailed"
|
||||
[scores]="researcher()?.multiplier_peer_ranks"
|
||||
[showThreshold]="true" />
|
||||
</section>
|
||||
|
||||
<div>
|
||||
<h3>Gründungspotenzial</h3>
|
||||
<p class="cap">
|
||||
Rang gegen ~9.000 Wissenschaftler:innen an anderen
|
||||
Universitäten.
|
||||
</p>
|
||||
<app-score-bar
|
||||
label="Score"
|
||||
[value]="founder().score ?? 0"
|
||||
[display]="fmt1(founder().score)" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 1 Jahr"
|
||||
[value]="founder().within1 ?? 0"
|
||||
[display]="fmt1(founder().within1)" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 3 Jahre"
|
||||
[value]="founder().within3 ?? 0"
|
||||
[display]="fmt1(founder().within3)" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 5 Jahre"
|
||||
[value]="founder().within5 ?? 0"
|
||||
[display]="fmt1(founder().within5)" />
|
||||
@if (
|
||||
founder().timingApplicable && founder().yearsToFounding !== null
|
||||
) {
|
||||
<p class="timing-note">
|
||||
@if ((founder().yearsToFounding ?? 0) <= 0) {
|
||||
Das Aktivitätsmuster wirkt bereits gründungsbereit.
|
||||
} @else {
|
||||
Voraussichtlich in
|
||||
{{ fmt1(founder().yearsToFounding) }} Jahren gründungsreif.
|
||||
}
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="facts">
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Publikationen <b>{{ fmtInt(facts().pubs) }}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Patente <b>{{ fmtInt(facts().patents) }}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Industrie-Publikationen
|
||||
<b>{{ fmtInt(facts().industry) }}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Förderungen <b>{{ fmtInt(facts().grants) }}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>aktive Jahre <b>{{ fmtInt(facts().activeYears) }}</b></app-chip
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="metrics">
|
||||
<h3>Metriken im Detail</h3>
|
||||
<p class="cap">
|
||||
Jeder Rohwert steht neben seinem Peer-Rang (0–1), damit
|
||||
nachvollziehbar bleibt, warum eine Person so eingestuft wurde.
|
||||
</p>
|
||||
<div class="scroller">
|
||||
<table mat-table [dataSource]="metricRows()" class="mx">
|
||||
<ng-container matColumnDef="metric">
|
||||
<th mat-header-cell *matHeaderCellDef>Metrik</th>
|
||||
<td mat-cell *matCellDef="let row">{{ row.label }}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="value">
|
||||
<th mat-header-cell *matHeaderCellDef class="num">Wert</th>
|
||||
<td mat-cell *matCellDef="let row" class="num">
|
||||
{{ fmtMetricValue(row.metric.raw) }}
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="rank">
|
||||
<th mat-header-cell *matHeaderCellDef class="num">
|
||||
Peer-Rang
|
||||
</th>
|
||||
<td
|
||||
mat-cell
|
||||
*matCellDef="let row"
|
||||
class="num"
|
||||
[class.hot]="(row.metric.peer_rank ?? 0) >= 0.9">
|
||||
{{ fmtPeerRank(row.metric.peer_rank) }}
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr
|
||||
mat-header-row
|
||||
*matHeaderRowDef="displayedMetricColumns"></tr>
|
||||
<tr
|
||||
mat-row
|
||||
*matRowDef="let row; columns: displayedMetricColumns"></tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="metrics">
|
||||
<h2>Metriken im Detail</h2>
|
||||
<p class="cap">
|
||||
Rohwerte und zugehörige Peer-Ränge zeigen, welche Netzwerk- und
|
||||
Kooperationssignale in die Rollen-Scores einfließen.
|
||||
</p>
|
||||
<app-data-table
|
||||
[columns]="metricColumns()"
|
||||
[data]="metricRows()"
|
||||
[stickyHeader]="false" />
|
||||
</section>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
<footer class="page">
|
||||
Konfiguration
|
||||
Netzwerk-Konfiguration
|
||||
<span class="mono">{{ network()?.config_hash ?? '–' }}</span> · berechnet
|
||||
am
|
||||
<span class="mono">{{
|
||||
network()?.computed_at | date: 'dd.MM.yyyy HH:mm'
|
||||
}}</span>
|
||||
<span class="mono">{{ network()?.computed_at | date: 'dd.MM.yyyy HH:mm' }}</span>
|
||||
</footer>
|
||||
}
|
||||
</div>
|
||||
|
||||
<ng-template #metricTemplate let-row>
|
||||
{{ row.label }}
|
||||
</ng-template>
|
||||
|
||||
<ng-template #metricValueTemplate let-row>
|
||||
<span class="num">{{ fmtMetricValue(row.metric.raw) }}</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #metricRankTemplate let-row>
|
||||
<span class="num" [class.hot]="(row.metric.peer_rank ?? 0) >= 0.9">
|
||||
{{ fmtPeerRank(row.metric.peer_rank) }}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
+20
-62
@@ -159,15 +159,13 @@
|
||||
.panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 22px;
|
||||
gap: 12px;
|
||||
|
||||
h3 {
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--sg-text-soft);
|
||||
margin: 0 0 8px;
|
||||
font-weight: 600;
|
||||
h2 {
|
||||
margin: 0;
|
||||
color: var(--sg-text);
|
||||
font-size: 17px;
|
||||
font-weight: 650;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,65 +176,25 @@
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.timing-note {
|
||||
font-size: 12.5px;
|
||||
color: var(--sg-success);
|
||||
margin: 2px 0 0;
|
||||
}
|
||||
|
||||
.facts {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 7px;
|
||||
|
||||
b {
|
||||
color: var(--sg-text);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
}
|
||||
|
||||
.metrics {
|
||||
min-width: 0;
|
||||
}
|
||||
margin-top: 24px;
|
||||
|
||||
.scroller {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table.mx {
|
||||
width: 100%;
|
||||
background: transparent;
|
||||
font-size: 12px;
|
||||
|
||||
.mat-mdc-header-cell {
|
||||
padding: 0 7px;
|
||||
height: 20px;
|
||||
color: var(--sg-text-soft);
|
||||
font-weight: 600;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.mat-mdc-cell {
|
||||
color: var(--sg-text-muted);
|
||||
vertical-align: middle;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.mat-mdc-row {
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
.num {
|
||||
text-align: right;
|
||||
font-variant-numeric: tabular-nums;
|
||||
h2 {
|
||||
margin: 0 0 6px;
|
||||
color: var(--sg-text);
|
||||
white-space: nowrap;
|
||||
font-size: 17px;
|
||||
}
|
||||
}
|
||||
|
||||
&.hot {
|
||||
font-weight: 700;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
.num {
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--sg-text);
|
||||
white-space: nowrap;
|
||||
|
||||
&.hot {
|
||||
font-weight: 700;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+64
-99
@@ -1,44 +1,36 @@
|
||||
import { Component, computed, inject, input } from '@angular/core';
|
||||
import { Component, computed, inject, input, TemplateRef, viewChild } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NavigationEnd, Router, RouterModule } from '@angular/router';
|
||||
import { Router, RouterModule } from '@angular/router';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { pipe } from 'rxjs';
|
||||
|
||||
import { MetricValue, ResearcherMetrics } from '../../../api';
|
||||
import {
|
||||
METRIC_DEFS,
|
||||
fmt1,
|
||||
fmtInt,
|
||||
fmtMetricValue,
|
||||
fmtPeerRank,
|
||||
fmtSubScore,
|
||||
tagDescription,
|
||||
tagLabel,
|
||||
} from '../founder-potential.utils';
|
||||
import { MetricValue, ResearcherMetrics } from '../../../api';
|
||||
import { ResearcherPageState } from '../../../resolvers/multiplier-researcher-page.resolver';
|
||||
import {
|
||||
MULTIPLIER_ROLE_LABELS,
|
||||
multiplierRoleColor,
|
||||
MultiplierNetworkGraphComponent,
|
||||
} from '../../../shared/ui/multiplier-network-graph/multiplier-network-graph.component';
|
||||
import { ScoreBarComponent } from '../../../shared/ui/score-bar/score-bar.component';
|
||||
import { DataTableComponent, GenericColumn } from '../../../shared/ui/data-table/data-table.component';
|
||||
import { CareerStageChipComponent } from '../../../shared/ui/career-stage-chip/career-stage-chip.component';
|
||||
import { ChipComponent } from '../../../shared/ui/chip/chip.component';
|
||||
import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component';
|
||||
import { MultiplierRoleScoresComponent } from '../../../shared/ui/multiplier-role-scores/multiplier-role-scores.component';
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
import { CredentialService } from '../../../shared/services/credential.service';
|
||||
import {
|
||||
ARROW_BACK_ICON,
|
||||
PERSON_OFF_ICON,
|
||||
WARNING_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
import { filter } from 'rxjs/operators';
|
||||
const TAG_THRESHOLD = 0.85;
|
||||
import { ARROW_BACK_ICON, PERSON_OFF_ICON, WARNING_ICON } from '../../../shared/ui/icons';
|
||||
|
||||
const ROLE_ORDER = ['ego', 'cohort', 'mentee', 'industry', 'external'];
|
||||
const SUB_SCORE_KEYS = ['bridger', 'mentor', 'amplifier'] as const;
|
||||
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
|
||||
|
||||
interface UnavailableView {
|
||||
@@ -47,7 +39,6 @@ interface UnavailableView {
|
||||
hint: string | null;
|
||||
}
|
||||
|
||||
/** A metric definition paired with the API's own raw/peer-rank block. */
|
||||
interface MetricRow {
|
||||
key: keyof ResearcherMetrics;
|
||||
label: string;
|
||||
@@ -63,33 +54,22 @@ interface MetricRow {
|
||||
MatButtonModule,
|
||||
MatCardModule,
|
||||
MatIconModule,
|
||||
MatTableModule,
|
||||
MatTooltipModule,
|
||||
DataTableComponent,
|
||||
MultiplierNetworkGraphComponent,
|
||||
ScoreBarComponent,
|
||||
CareerStageChipComponent,
|
||||
ChipComponent,
|
||||
MethodologyNoteComponent,
|
||||
MultiplierRoleScoresComponent,
|
||||
],
|
||||
templateUrl: './researcher-network.component.html',
|
||||
styleUrl: './researcher-network.component.scss',
|
||||
})
|
||||
export class ResearcherNetworkComponent {
|
||||
constructor() {
|
||||
this.router.events
|
||||
.pipe(filter((event: any) => event instanceof NavigationEnd))
|
||||
.subscribe(() => {
|
||||
document.body.scrollTo({
|
||||
top: 0,
|
||||
behavior: 'smooth',
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
readonly ARROW_BACK_ICON = ARROW_BACK_ICON;
|
||||
readonly WARNING_ICON = WARNING_ICON;
|
||||
readonly PERSON_OFF_ICON = PERSON_OFF_ICON;
|
||||
|
||||
/** Resolved detail + network, or the backend's explanation why they are missing. */
|
||||
readonly page = input.required<ResearcherPageState>();
|
||||
|
||||
private readonly router = inject(Router);
|
||||
@@ -114,26 +94,25 @@ export class ResearcherNetworkComponent {
|
||||
|
||||
const university = this.universityName();
|
||||
const who = page.displayName ?? 'diese Person';
|
||||
|
||||
if (page.reason === 'OTHER_INSTITUTION') {
|
||||
return {
|
||||
title: 'Kein Gründungspotenzial für diese Universität',
|
||||
body: `Für ${who} wurde kein Gründungspotenzial für die ${university} berechnet.`,
|
||||
title: 'Keine Multiplikator-Daten für diese Universität',
|
||||
body: `Für ${who} wurde an der ${university} keine Multiplikator-Auswertung erstellt.`,
|
||||
hint: page.authorInstitution
|
||||
? `Die Person ist aktuell der Einrichtung „${page.authorInstitution}“ zugeordnet, nicht der ${university}.`
|
||||
? `Die Person ist aktuell der Einrichtung „${page.authorInstitution}“ zugeordnet.`
|
||||
: `Die Person ist keiner Einrichtung der ${university} zugeordnet.`,
|
||||
};
|
||||
}
|
||||
if (page.reason === 'NOT_INDEXED') {
|
||||
return {
|
||||
title: 'Noch keine berechneten Daten',
|
||||
body: `Für ${who} wurde noch kein Gründungspotenzial berechnet.`,
|
||||
title: 'Noch keine Multiplikator-Daten',
|
||||
body: `Für ${who} wurden noch keine Multiplikator-Scores berechnet.`,
|
||||
hint: `Die Person gehört zur ${university}, ist aber noch nicht in der Auswertung enthalten.`,
|
||||
};
|
||||
}
|
||||
return {
|
||||
title: 'Keine Daten zu dieser Person',
|
||||
body: 'Zu dieser Person liegen keine berechneten Daten vor.',
|
||||
title: 'Keine Multiplikator-Daten zu dieser Person',
|
||||
body: 'Zu dieser Person liegen keine berechneten Multiplikator-Daten vor.',
|
||||
hint: null,
|
||||
};
|
||||
});
|
||||
@@ -145,70 +124,59 @@ 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 subScores = computed(() => {
|
||||
const pr = this.researcher()?.multiplier_peer_ranks;
|
||||
return SUB_SCORE_KEYS.map((key) => ({
|
||||
key,
|
||||
label: tagLabel(key),
|
||||
hint: tagDescription(key),
|
||||
value: pr?.[key] ?? 0,
|
||||
}));
|
||||
});
|
||||
|
||||
readonly founder = computed(() => {
|
||||
const fp = this.researcher()?.founder_potential;
|
||||
return {
|
||||
score: fp?.external_percentile ?? null,
|
||||
within1: fp?.external_percentile_within_1y ?? null,
|
||||
within3: fp?.external_percentile_within_3y ?? null,
|
||||
within5: fp?.external_percentile_within_5y ?? null,
|
||||
yearsToFounding: fp?.timing?.years_to_founding ?? null,
|
||||
timingApplicable: fp?.timing_applicable ?? false,
|
||||
};
|
||||
});
|
||||
|
||||
readonly facts = computed(() => {
|
||||
const ff = this.researcher()?.founder_features;
|
||||
return {
|
||||
pubs: ff?.publications ?? 0,
|
||||
patents: ff?.patents ?? 0,
|
||||
industry: ff?.industry_collab_papers ?? 0,
|
||||
grants: ff?.grants ?? 0,
|
||||
activeYears: this.activeYears(),
|
||||
};
|
||||
});
|
||||
readonly tagLabel = tagLabel;
|
||||
readonly tagDescription = tagDescription;
|
||||
|
||||
readonly netMeta = computed(() => {
|
||||
const n = this.network();
|
||||
const network = this.network();
|
||||
return {
|
||||
totalCoauthors: n?.total_coauthors ?? 0,
|
||||
cohortCoauthors: n?.cohort_coauthors ?? 0,
|
||||
mentees: n?.mentee_count ?? 0,
|
||||
shown: n?.shown ?? 0,
|
||||
totalCoauthors: network?.total_coauthors ?? 0,
|
||||
cohortCoauthors: network?.cohort_coauthors ?? 0,
|
||||
mentees: network?.mentee_count ?? 0,
|
||||
shown: network?.shown ?? 0,
|
||||
};
|
||||
});
|
||||
|
||||
private readonly metricTemplate =
|
||||
viewChild.required<TemplateRef<MetricRow>>('metricTemplate');
|
||||
private readonly metricValueTemplate =
|
||||
viewChild.required<TemplateRef<MetricRow>>('metricValueTemplate');
|
||||
private readonly metricRankTemplate =
|
||||
viewChild.required<TemplateRef<MetricRow>>('metricRankTemplate');
|
||||
|
||||
readonly metricRows = computed<MetricRow[]>(() =>
|
||||
METRIC_DEFS.map((def) => ({
|
||||
key: def.key,
|
||||
label: def.label,
|
||||
metric: this.researcher()?.metrics?.[def.key] ?? {},
|
||||
METRIC_DEFS.map((definition) => ({
|
||||
key: definition.key,
|
||||
label: definition.label,
|
||||
metric: this.researcher()?.metrics?.[definition.key] ?? {},
|
||||
})),
|
||||
);
|
||||
|
||||
readonly displayedMetricColumns = ['metric', 'value', 'rank'];
|
||||
readonly metricColumns = computed<GenericColumn<MetricRow>[]>(() => [
|
||||
{
|
||||
id: 'metric',
|
||||
header: 'Metrik',
|
||||
type: 'display',
|
||||
cellTemplate: this.metricTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'value',
|
||||
header: 'Wert',
|
||||
type: 'display',
|
||||
cellTemplate: this.metricValueTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'rank',
|
||||
header: 'Peer-Rang',
|
||||
type: 'display',
|
||||
cellTemplate: this.metricRankTemplate(),
|
||||
},
|
||||
]);
|
||||
|
||||
readonly roleLegend = computed(() =>
|
||||
ROLE_ORDER.map((role) => ({
|
||||
@@ -219,17 +187,14 @@ export class ResearcherNetworkComponent {
|
||||
);
|
||||
|
||||
onNodeClick(event: { id: string }): void {
|
||||
if (event?.id) {
|
||||
void this.router.navigate(['/person', event.id]);
|
||||
}
|
||||
if (event?.id) void this.router.navigate(['/person', event.id]);
|
||||
}
|
||||
|
||||
backToMultipliers(): void {
|
||||
void this.router.navigate(['/multipliers']);
|
||||
}
|
||||
|
||||
readonly fmtInt = fmtInt;
|
||||
readonly fmt1 = fmt1;
|
||||
readonly fmtSubScore = fmtSubScore;
|
||||
readonly fmtPeerRank = fmtPeerRank;
|
||||
readonly fmtMetricValue = fmtMetricValue;
|
||||
readonly tagLabel = tagLabel;
|
||||
readonly tagDescription = tagDescription;
|
||||
readonly tagThreshold = TAG_THRESHOLD * 100;
|
||||
readonly fmtPeerRank = fmtPeerRank;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
import { inject } from '@angular/core';
|
||||
import { ResolveFn } from '@angular/router';
|
||||
|
||||
import {
|
||||
CareerBucket,
|
||||
MultiplierTag,
|
||||
MultiplicatorsService,
|
||||
PeerRankField,
|
||||
ResearcherSortBy,
|
||||
ResearcherSummaryPage,
|
||||
SortDirection,
|
||||
} from '../api';
|
||||
|
||||
const VALID_TAGS = Object.values(MultiplierTag);
|
||||
const VALID_CAREER_BUCKETS = Object.values(CareerBucket);
|
||||
const VALID_PEER_RANK_FIELDS = Object.values(PeerRankField);
|
||||
const VALID_SORT_FIELDS = Object.values(ResearcherSortBy);
|
||||
|
||||
/**
|
||||
* Cohort-wide multiplier table, driven by URL params so filter, pagination,
|
||||
* and sort changes re-query Elasticsearch on the server.
|
||||
*/
|
||||
export const multiplicatorResearchersResolver: ResolveFn<ResearcherSummaryPage> = (
|
||||
route,
|
||||
) => {
|
||||
const service = inject(MultiplicatorsService);
|
||||
const params = route.queryParamMap;
|
||||
|
||||
const page = toInt(params.get('page'), 0);
|
||||
const size = toInt(params.get('size'), 25);
|
||||
const tags = validValues(params.getAll('tag'), VALID_TAGS);
|
||||
const careerBuckets = validValues(
|
||||
params.getAll('careerBucket'),
|
||||
VALID_CAREER_BUCKETS,
|
||||
);
|
||||
const minPeerRank = toNumber(params.get('minPeerRank'));
|
||||
const peerRankField = validValue(
|
||||
params.get('peerRankField'),
|
||||
VALID_PEER_RANK_FIELDS,
|
||||
PeerRankField.Max,
|
||||
);
|
||||
const name = params.get('name')?.trim() || undefined;
|
||||
const sortBy = validValue(
|
||||
params.get('sortBy'),
|
||||
VALID_SORT_FIELDS,
|
||||
ResearcherSortBy.Max,
|
||||
);
|
||||
const sortOrder = params.get('sortOrder') === SortDirection.Asc
|
||||
? SortDirection.Asc
|
||||
: SortDirection.Desc;
|
||||
const suspiciousRaw = params.get('suspiciousProfile');
|
||||
const suspiciousProfile =
|
||||
suspiciousRaw === 'true' ? true : suspiciousRaw === 'false' ? false : undefined;
|
||||
|
||||
return service.searchMultiplicatorResearchers(
|
||||
page,
|
||||
size,
|
||||
tags.length ? tags : undefined,
|
||||
careerBuckets.length ? careerBuckets : undefined,
|
||||
minPeerRank ?? undefined,
|
||||
peerRankField,
|
||||
suspiciousProfile,
|
||||
name,
|
||||
sortBy,
|
||||
sortOrder,
|
||||
);
|
||||
};
|
||||
|
||||
function toInt(value: string | null, fallback: number): number {
|
||||
if (!value) return fallback;
|
||||
const parsed = Number.parseInt(value, 10);
|
||||
return Number.isFinite(parsed) && parsed >= 0 ? parsed : fallback;
|
||||
}
|
||||
|
||||
function toNumber(value: string | null): number | null {
|
||||
if (value === null || value === '') return null;
|
||||
const parsed = Number(value);
|
||||
return Number.isFinite(parsed) && parsed >= 0 && parsed <= 1 ? parsed : null;
|
||||
}
|
||||
|
||||
function validValues<T extends string>(values: string[], valid: readonly T[]): T[] {
|
||||
return values.filter((value): value is T => valid.includes(value as T));
|
||||
}
|
||||
|
||||
function validValue<T extends string>(
|
||||
value: string | null,
|
||||
valid: readonly T[],
|
||||
fallback: T,
|
||||
): T {
|
||||
return value && valid.includes(value as T) ? (value as T) : fallback;
|
||||
}
|
||||
@@ -32,6 +32,7 @@ import {
|
||||
LOGOUT_ICON,
|
||||
MANAGE_ACCOUNTS_ICON,
|
||||
NEWS_ICON,
|
||||
NETWORK_ICON,
|
||||
ORGANIZATIONS_ICON,
|
||||
PATENT_ICON,
|
||||
PERSONS_ICON,
|
||||
@@ -100,12 +101,18 @@ export class AppMenuComponent {
|
||||
|
||||
isItemActive(item: NavItem): boolean {
|
||||
const path = this.currentPath();
|
||||
// `/founders/:authorId` is the multiplier-network detail route. Do not
|
||||
// highlight the founder-potential dashboard for that path.
|
||||
if (item.route === '/founders' && path.startsWith('/founders/')) {
|
||||
return false;
|
||||
}
|
||||
if ((item.detailRoutePrefixes ?? []).some((prefix) => path.startsWith(prefix))) {
|
||||
return true;
|
||||
}
|
||||
if (path === item.route || path.startsWith(`${item.route}/`)) {
|
||||
return true;
|
||||
}
|
||||
return (item.detailRoutePrefixes ?? []).some((prefix) =>
|
||||
path.startsWith(prefix),
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
readonly navItems = computed<NavItem[]>(() => {
|
||||
@@ -116,14 +123,6 @@ export class AppMenuComponent {
|
||||
route: '/dashboard',
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
label: 'Gründungspotenzial',
|
||||
icon: FOUNDER_ICON,
|
||||
route: '/founders',
|
||||
disabled: false,
|
||||
queryParams: { threshold: 90, screened: 'true', page: 0, size: 25 },
|
||||
detailRoutePrefixes: ['/founders/'],
|
||||
},
|
||||
{
|
||||
label: 'Personen',
|
||||
icon: PERSONS_ICON,
|
||||
@@ -225,6 +224,27 @@ export class AppMenuComponent {
|
||||
route: '/hierarchy',
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
label: 'Gründungspotenzial',
|
||||
icon: FOUNDER_ICON,
|
||||
route: '/founders',
|
||||
disabled: false,
|
||||
queryParams: { threshold: 90, screened: 'true', page: 0, size: 25 },
|
||||
},
|
||||
{
|
||||
label: 'Multiplikatoren',
|
||||
icon: NETWORK_ICON,
|
||||
route: '/multipliers',
|
||||
disabled: false,
|
||||
queryParams: {
|
||||
page: 0,
|
||||
size: 25,
|
||||
sortBy: 'max',
|
||||
sortOrder: 'desc',
|
||||
peerRankField: 'max',
|
||||
},
|
||||
detailRoutePrefixes: ['/founders/'],
|
||||
},
|
||||
{
|
||||
label: 'Accounts',
|
||||
icon: MANAGE_ACCOUNTS_ICON,
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<mat-expansion-panel class="methodology-note">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>
|
||||
<mat-icon>info</mat-icon>
|
||||
Datenbasis & Methodik
|
||||
</mat-panel-title>
|
||||
<mat-panel-description>Wie diese Ergebnisse entstanden sind</mat-panel-description>
|
||||
</mat-expansion-panel-header>
|
||||
<div class="methodology-note__content">
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
</mat-expansion-panel>
|
||||
@@ -0,0 +1,64 @@
|
||||
:host {
|
||||
display: block;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.methodology-note {
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: none;
|
||||
|
||||
mat-panel-title {
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--sg-text);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
mat-panel-description {
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
font-size: 18px;
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
&__content {
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
}
|
||||
|
||||
:host ::ng-deep .methodology-note__content p {
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
:host ::ng-deep .methodology-note__content p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
:host ::ng-deep .methodology-note__content ul {
|
||||
margin: 8px 0 10px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
:host ::ng-deep .methodology-note__content li + li {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
:host ::ng-deep .methodology-note__content strong {
|
||||
color: var(--sg-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.methodology-note mat-panel-description {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { MatExpansionModule } from '@angular/material/expansion';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
|
||||
/** A consistent, collapsible methodology note used by data-heavy views. */
|
||||
@Component({
|
||||
selector: 'app-methodology-note',
|
||||
standalone: true,
|
||||
imports: [MatExpansionModule, MatIconModule],
|
||||
templateUrl: './methodology-note.component.html',
|
||||
styleUrl: './methodology-note.component.scss',
|
||||
})
|
||||
export class MethodologyNoteComponent {}
|
||||
@@ -0,0 +1,24 @@
|
||||
/** Stable role names used by the multiplier model. */
|
||||
export const MULTIPLIER_TAG_LABELS: Record<string, string> = {
|
||||
bridger: 'Bridger',
|
||||
mentor: 'Mentor',
|
||||
amplifier: 'Amplifier',
|
||||
};
|
||||
|
||||
/** Coach-facing descriptions for the three multiplier archetypes. */
|
||||
export const MULTIPLIER_TAG_DESCRIPTIONS: Record<string, string> = {
|
||||
bridger:
|
||||
'Verbindet Forschungsgruppen, Fachgebiete oder Institutionen, die sonst wenig zusammenarbeiten.',
|
||||
mentor:
|
||||
'Publiziert mit Nachwuchsforschenden und zeigt Signale für deren Förderung und Entwicklung.',
|
||||
amplifier:
|
||||
'Trägt Wissen über Industriekooperationen, Patente, EU-Projekte und Medienresonanz nach außen.',
|
||||
};
|
||||
|
||||
export function multiplierTagLabel(tag: string): string {
|
||||
return MULTIPLIER_TAG_LABELS[tag] ?? tag;
|
||||
}
|
||||
|
||||
export function multiplierTagDescription(tag: string): string {
|
||||
return MULTIPLIER_TAG_DESCRIPTIONS[tag] ?? MULTIPLIER_TAG_LABELS[tag] ?? tag;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
@if (presentation() === 'compact') {
|
||||
<div class="role-scores role-scores--compact">
|
||||
@for (role of roles(); track role.key) {
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="info"
|
||||
[matTooltip]="role.hint"
|
||||
matTooltipPosition="above">
|
||||
{{ role.label }} <b>{{ role.display }}</b>
|
||||
</app-chip>
|
||||
}
|
||||
</div>
|
||||
} @else {
|
||||
<div class="role-scores role-scores--detailed">
|
||||
@for (role of roles(); track role.key) {
|
||||
<app-score-bar
|
||||
variant="success"
|
||||
[label]="role.label"
|
||||
[hint]="role.hint"
|
||||
[value]="role.value * 100"
|
||||
[display]="role.display"
|
||||
[threshold]="showThreshold() ? threshold : null" />
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
.role-scores {
|
||||
&--compact {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
font-size: 11px;
|
||||
|
||||
b {
|
||||
color: var(--sg-text);
|
||||
font-variant-numeric: tabular-nums;
|
||||
margin-left: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
&--detailed {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import { Component, computed, input } from '@angular/core';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import { MultiplierPeerRanks } from '../../../api';
|
||||
import { ChipComponent } from '../chip/chip.component';
|
||||
import { ScoreBarComponent } from '../score-bar/score-bar.component';
|
||||
import {
|
||||
multiplierTagDescription,
|
||||
multiplierTagLabel,
|
||||
} from './multiplier-role-labels';
|
||||
|
||||
const ROLE_KEYS = ['bridger', 'mentor', 'amplifier'] as const;
|
||||
|
||||
/** Reusable compact or detailed rendering of the three multiplier roles. */
|
||||
@Component({
|
||||
selector: 'app-multiplier-role-scores',
|
||||
standalone: true,
|
||||
imports: [MatTooltipModule, ChipComponent, ScoreBarComponent],
|
||||
templateUrl: './multiplier-role-scores.component.html',
|
||||
styleUrl: './multiplier-role-scores.component.scss',
|
||||
})
|
||||
export class MultiplierRoleScoresComponent {
|
||||
readonly scores = input<MultiplierPeerRanks | null | undefined>(null);
|
||||
readonly presentation = input<'compact' | 'detailed'>('detailed');
|
||||
readonly showThreshold = input(false);
|
||||
|
||||
readonly roles = computed(() =>
|
||||
ROLE_KEYS.map((key) => ({
|
||||
key,
|
||||
label: multiplierTagLabel(key),
|
||||
hint: multiplierTagDescription(key),
|
||||
value: this.scores()?.[key] ?? 0,
|
||||
display: formatScore(this.scores()?.[key] ?? 0),
|
||||
})),
|
||||
);
|
||||
|
||||
readonly threshold = 85;
|
||||
}
|
||||
|
||||
function formatScore(value: number): string {
|
||||
return `${(value * 100).toLocaleString('de-DE', {
|
||||
minimumFractionDigits: 1,
|
||||
maximumFractionDigits: 1,
|
||||
})} %`;
|
||||
}
|
||||
Reference in New Issue
Block a user