splitted multiplicators and founding potential components
This commit is contained in:
@@ -3,8 +3,8 @@ import { guestOnlyGuard } from './shared/guards/guest-only.guard';
|
||||
import { personListResolver } from './resolvers/person-list.resolver';
|
||||
import { founderStatisticsResolver } from './resolvers/founder-statistics.resolver';
|
||||
import { founderCandidatesResolver } from './resolvers/founder-candidates.resolver';
|
||||
import { multiplierResearcherResolver } from './resolvers/multiplier-researcher.resolver';
|
||||
import { multiplierResearcherNetworkResolver } from './resolvers/multiplier-researcher-network.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';
|
||||
@@ -140,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: [
|
||||
@@ -158,12 +177,7 @@ export const routes: Routes = [
|
||||
statistics: founderStatisticsResolver,
|
||||
candidates: founderCandidatesResolver,
|
||||
},
|
||||
runGuardsAndResolvers: (from, to) => {
|
||||
const keys = ['threshold', 'screened', 'page', 'size', 'sortBy', 'sortOrder'];
|
||||
return keys.some(
|
||||
(key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key),
|
||||
);
|
||||
},
|
||||
runGuardsAndResolvers: 'paramsOrQueryParamsChange',
|
||||
},
|
||||
{
|
||||
path: 'founders/:authorId',
|
||||
@@ -180,8 +194,7 @@ export const routes: Routes = [
|
||||
'./modules/founder-potential/researcher-network/researcher-network.component'
|
||||
).then((mod) => mod.ResearcherNetworkComponent),
|
||||
resolve: {
|
||||
researcher: multiplierResearcherResolver,
|
||||
network: multiplierResearcherNetworkResolver,
|
||||
page: multiplierResearcherPageResolver,
|
||||
},
|
||||
runGuardsAndResolvers: (from, to) =>
|
||||
from.params['authorId'] !== to.params['authorId'],
|
||||
|
||||
+253
@@ -0,0 +1,253 @@
|
||||
<app-page-container
|
||||
title="Multiplikatoren von {{ universityName() }}"
|
||||
[subtitle]="
|
||||
'Entdecke Forschende, die Forschungsgruppen verbinden, Nachwuchs fördern oder Wissen in Wirtschaft und Öffentlichkeit tragen. Die Rollen-Scores vergleichen Forschende derselben Karrierestufe an der ' +
|
||||
universityName() +
|
||||
'.'
|
||||
">
|
||||
<div class="multipliers-dashboard">
|
||||
<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>
|
||||
</app-page-container>
|
||||
|
||||
<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>
|
||||
+203
@@ -0,0 +1,203 @@
|
||||
.multipliers-dashboard {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.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: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px));
|
||||
font-weight: var(--sg-section-title-weight, 700);
|
||||
line-height: var(--sg-section-title-line-height, 1.3);
|
||||
}
|
||||
|
||||
.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) {
|
||||
.filters-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.filter-actions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
}
|
||||
+268
@@ -0,0 +1,268 @@
|
||||
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 { PageContainerComponent } from '../../../shared/ui/page-container/page-container.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,
|
||||
PageContainerComponent,
|
||||
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;
|
||||
}
|
||||
+90
-149
@@ -1,25 +1,28 @@
|
||||
<app-page-container
|
||||
[eyebrow]="unavailable() ? null : 'Smart-Guide · Multiplikatoren · ' + universityName()"
|
||||
[title]="unavailable()?.title ?? name()"
|
||||
[subtitle]="unavailable()?.body ?? null">
|
||||
<a pageActions mat-button class="back-link" routerLink="/multipliers">
|
||||
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
|
||||
Zurück zu den Multiplikatoren
|
||||
</a>
|
||||
|
||||
<div class="researcher-network">
|
||||
@if (unavailable(); as empty) {
|
||||
<mat-card appearance="outlined" class="unavailable">
|
||||
<mat-card-content>
|
||||
<mat-icon class="unavailable__icon">{{ PERSON_OFF_ICON }}</mat-icon>
|
||||
<h1>{{ empty.title }}</h1>
|
||||
<p class="unavailable__body">{{ empty.body }}</p>
|
||||
@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() }}
|
||||
</p>
|
||||
<h1>{{ name() }}</h1>
|
||||
<section class="researcher-meta">
|
||||
<div class="meta-line">
|
||||
@if (careerBucket()) {
|
||||
<app-career-stage-chip
|
||||
@@ -27,15 +30,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) {
|
||||
@@ -50,7 +53,25 @@
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</header>
|
||||
</section>
|
||||
|
||||
<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) {
|
||||
@@ -62,13 +83,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 +110,62 @@
|
||||
<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>
|
||||
</app-page-container>
|
||||
|
||||
<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>
|
||||
|
||||
+26
-93
@@ -1,7 +1,6 @@
|
||||
.researcher-network {
|
||||
max-width: 1440px;
|
||||
margin: 0 auto;
|
||||
padding: 24px 8px 64px;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.back-link {
|
||||
@@ -21,26 +20,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.page {
|
||||
max-width: 72ch;
|
||||
|
||||
.eyebrow {
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
color: var(--sg-text-soft);
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 30px;
|
||||
line-height: 1.15;
|
||||
margin: 0 0 12px;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
.meta-line {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -159,15 +138,14 @@
|
||||
.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: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px));
|
||||
font-weight: var(--sg-section-title-weight, 700);
|
||||
line-height: var(--sg-section-title-line-height, 1.3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,71 +156,33 @@
|
||||
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: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px));
|
||||
font-weight: var(--sg-section-title-weight, 700);
|
||||
line-height: var(--sg-section-title-line-height, 1.3);
|
||||
}
|
||||
}
|
||||
|
||||
&.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);
|
||||
}
|
||||
}
|
||||
|
||||
.unavailable {
|
||||
margin-top: 32px;
|
||||
max-width: 68ch;
|
||||
width: 100%;
|
||||
background: var(--sg-surface-muted);
|
||||
|
||||
.mat-mdc-card-content {
|
||||
@@ -257,13 +197,6 @@ table.mx {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
line-height: 1.2;
|
||||
margin: 0 0 10px;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&__body {
|
||||
font-size: 15px;
|
||||
line-height: 1.55;
|
||||
|
||||
@@ -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