Files
smartguide/webapp/src/app/modules/dashboard/dashboard.component.html
T
farajollahi acad12bf27
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/pr-dev This commit looks good
remove dfg projects analyse
2026-07-12 20:32:01 +02:00

254 lines
7.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div class="dashboard-wrapper">
<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>
<span>Publikationen</span>
<strong>
{{
isStatisticLoading('publications')
? '…'
: ((statistics?.publications | number) ?? '–')
}}
</strong>
</div>
</a>
<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>
}
@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>