Merge branch 'dev' of https://project.nes.uni-due.de/gitea/lbs/smartguide into feature/Keyword_search_rework

This commit is contained in:
Kazgatari
2026-07-13 16:45:56 +02:00
205 changed files with 18843 additions and 3756 deletions
@@ -1,41 +1,256 @@
<div class="dashboard-wrapper">
<header class="dashboard-header">
<h2>University Performance Dashboard</h2>
<div class="controls">
<select
[value]="selectedTopic"
(change)="onTopicChange($any($event.target).value)">
@for (t of topics; track t) {
<option [value]="t">{{ t }}</option>
}
</select>
<div class="toggle-group">
<button
[class.active]="metric === 'publications'"
(click)="setMetric('publications')">
Publications
</button>
<button
[class.active]="metric === 'citations'"
(click)="setMetric('citations')">
Citations
</button>
<section class="statistics-grid" aria-label="Kennzahlen">
<a
class="statistics-card"
[routerLink]="['/institution', institutionRouteId(), 'publications']"
[class.disabled]="!institutionRouteId()"
[attr.aria-disabled]="!institutionRouteId()"
[attr.aria-label]="
'Publikationen von ' + organizationName() + ' anzeigen'
">
<div class="statistics-icon statistics-icon--publications">
<mat-icon>menu_book</mat-icon>
</div>
</div>
</header>
<div>
<span>Publikationen</span>
<strong>
{{
isStatisticLoading('publications')
? '…'
: ((statistics?.publications | number) ?? '–')
}}
</strong>
</div>
</a>
<div class="content-grid">
<section class="chart-section">
<app-university-line-chart
[data]="rawDataSource"
[metric]="metric"></app-university-line-chart>
<a
class="statistics-card"
routerLink="/persons"
[queryParams]="{ institutionName: organizationName() }"
[attr.aria-label]="'Personen von ' + organizationName() + ' anzeigen'">
<div class="statistics-icon statistics-icon--persons">
<mat-icon>groups</mat-icon>
</div>
<div>
<span>Personen</span>
<strong>
{{
isStatisticLoading('persons')
? '…'
: ((statistics?.persons | number) ?? '–')
}}
</strong>
</div>
</a>
<a
class="statistics-card"
routerLink="/projects"
[queryParams]="{ selected_project_types: 'eu' }"
aria-label="EU-Projekte anzeigen">
<div class="statistics-icon statistics-icon--eu-projects">
<mat-icon>public</mat-icon>
</div>
<div>
<span>EU-Projekte</span>
<strong>
{{
isStatisticLoading('eu_projects')
? '…'
: ((statistics?.eu_projects | number) ?? '–')
}}
</strong>
</div>
</a>
<a
class="statistics-card"
routerLink="/projects"
[queryParams]="{ selected_project_types: 'bund' }"
aria-label="Bund-Projekte anzeigen">
<div class="statistics-icon statistics-icon--bund-projects">
<mat-icon>account_balance</mat-icon>
</div>
<div>
<span>Bund-Projekte</span>
<strong>
{{
isStatisticLoading('bmbf_projects')
? '…'
: ((statistics?.bmbf_projects | number) ?? '–')
}}
</strong>
</div>
</a>
<a
class="statistics-card"
routerLink="/projects"
[queryParams]="{ selected_project_types: 'dfg' }"
aria-label="DFG-Projekte anzeigen">
<div class="statistics-icon statistics-icon--dfg-projects">
<mat-icon>science</mat-icon>
</div>
<div>
<span>DFG-Projekte</span>
<strong>
{{
isStatisticLoading('dfg_projects')
? '…'
: ((statistics?.dfg_projects | number) ?? '–')
}}
</strong>
</div>
</a>
</section>
@if (statisticsError) {
<p class="statistics-error">Die Kennzahlen konnten nicht geladen werden.</p>
}
@if (topicHeatmapLoading || topicHeatmapError || hasTopicHeatmapData()) {
<section class="topic-heatmap-section">
<header class="topic-heatmap-header">
<div>
<h2>Field Treemap</h2>
<p>Publikationen Ihrer Organisation nach Field.</p>
</div>
<div class="topic-treemap-period-controls" aria-label="Zeitraum">
<div class="topic-treemap-period-toggle">
<button
type="button"
[class.active]="topicTreemapPeriod === 'last_5_years'"
(click)="setTopicTreemapPeriod('last_5_years')">
5 Jahre
</button>
<button
type="button"
[class.active]="topicTreemapPeriod === 'last_10_years'"
(click)="setTopicTreemapPeriod('last_10_years')">
10 Jahre
</button>
<button
type="button"
[class.active]="topicTreemapPeriod === 'all_time'"
(click)="setTopicTreemapPeriod('all_time')">
Alle
</button>
</div>
<label>
Von
<input
type="number"
min="1900"
max="2100"
[value]="topicTreemapFromYear"
(change)="
onTopicTreemapYearChange('from', $any($event.target).value)
" />
</label>
<label>
Bis
<input
type="number"
min="1900"
max="2100"
[value]="topicTreemapToYear"
(change)="
onTopicTreemapYearChange('to', $any($event.target).value)
" />
</label>
</div>
</header>
@if (topicHeatmapError) {
<p class="statistics-error">
Die Field-Treemap konnte nicht geladen werden.
</p>
} @else {
<app-topic-heatmap
[heatmap]="topicHeatmap"
[loading]="topicHeatmapLoading"></app-topic-heatmap>
}
</section>
}
<aside class="table-section">
<app-university-ranking-table
[rankings]="computedRankings"
[loading]="isLoading"></app-university-ranking-table>
</aside>
</div>
@if (topAuthorsLoading || topAuthorsError || hasTopAuthorData()) {
<section class="top-authors-section">
<header class="top-authors-header">
<div>
<h2>Top 10 Personen aller Zeiten</h2>
<p>Nach Anzahl der Works, Patente und News Ihrer Organisation.</p>
</div>
<div class="top-authors-period-toggle" aria-label="Works-Zeitraum">
<button
type="button"
[class.active]="topAuthorsWorksPeriod === 'all_time'"
(click)="setTopAuthorsWorksPeriod('all_time')">
Alle Zeiten
</button>
<button
type="button"
[class.active]="topAuthorsWorksPeriod === 'last_5_years'"
(click)="setTopAuthorsWorksPeriod('last_5_years')">
Letzte 5 Jahre
</button>
</div>
</header>
@if (topAuthorsError) {
<p class="statistics-error">
Die Autorenstatistiken konnten nicht geladen werden.
</p>
} @else {
<div class="top-authors-grid" [class.loading]="topAuthorsLoading">
@for (dataset of visibleTopAuthorDatasets(); track dataset.title) {
<article class="top-authors-chart">
<h3>
<mat-icon>{{ dataset.icon }}</mat-icon
>{{ dataset.title }}
</h3>
@for (
entry of dataset.entries;
track entry.id || entry.name;
let rank = $index
) {
<div class="author-bar-row">
<span class="author-rank">{{ rank + 1 }}</span>
<div class="author-bar-content">
<div class="author-bar-label">
@if (entry.id) {
<a
class="author-link"
[routerLink]="['/person', entry.id, 'overview']"
[title]="entry.name">
{{ entry.name }}
</a>
} @else {
<span [title]="entry.name">{{ entry.name }}</span>
}
<strong>{{ entry.count | number }}</strong>
</div>
<div class="author-bar-track">
<span
class="author-bar-fill"
[style.width.%]="
authorBarWidth(dataset.entries, entry.count)
"></span>
</div>
</div>
</div>
} @empty {
<p class="empty-chart">
{{
topAuthorsLoading
? 'Wird geladen …'
: 'Keine Daten vorhanden.'
}}
</p>
}
</article>
}
</div>
}
</section>
}
</div>