Merge dev into dfg PG authors
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/pr-dev Build started...

This commit is contained in:
spsaefan
2026-07-25 23:53:49 +02:00
636 changed files with 263187 additions and 20304 deletions
@@ -23,10 +23,31 @@
</div>
</a>
<a
class="statistics-card"
[routerLink]="['/institution', institutionRouteId(), 'patents']"
[class.disabled]="!institutionRouteId()"
[attr.aria-disabled]="!institutionRouteId()"
[attr.aria-label]="'Patente von ' + organizationName() + ' anzeigen'">
<div class="statistics-icon statistics-icon--patents">
<mat-icon>description</mat-icon>
</div>
<div>
<span>Patente</span>
<strong>
{{
isStatisticLoading('patents')
? '…'
: ((statistics?.patents | number) ?? '–')
}}
</strong>
</div>
</a>
<a
class="statistics-card"
routerLink="/persons"
[queryParams]="{ institutionName: organizationName() }"
[queryParams]="personListQueryParams()"
[attr.aria-label]="'Personen von ' + organizationName() + ' anzeigen'">
<div class="statistics-icon statistics-icon--persons">
<mat-icon>groups</mat-icon>
@@ -108,67 +129,139 @@
<p class="statistics-error">Die Kennzahlen konnten nicht geladen werden.</p>
}
@if (topicHeatmapLoading || topicHeatmapError || hasTopicHeatmapData()) {
@if (
euProjectStatusesLoading ||
bmbfProjectStatusesLoading ||
euProjectStatusesError ||
bmbfProjectStatusesError ||
(euProjectStatuses && bmbfProjectStatuses)
) {
<section class="topic-heatmap-section">
<header class="topic-heatmap-header">
<div>
<h2>Projektstatus nach Fördergeber</h2>
<p>
Laufende, kommende und abgeschlossene EU- und Bund-Projekte Ihrer
Organisation.
</p>
</div>
@if (euProjectStatuses && bmbfProjectStatuses) {
<div class="project-status-summary">
<span>
EU:
{{
euProjectStatuses.ongoing +
euProjectStatuses.upcoming +
euProjectStatuses.completed | number
}}
</span>
<span>
Bund:
{{
bmbfProjectStatuses.ongoing +
bmbfProjectStatuses.upcoming +
bmbfProjectStatuses.completed | number
}}
</span>
</div>
}
</header>
@if (euProjectStatusesLoading || bmbfProjectStatusesLoading) {
<div class="project-status-loading" role="status" aria-live="polite">
<app-loading
text="Projektstatus wird geladen …"
icon="stacked_bar_chart"
size="64"
diameter="64"></app-loading>
</div>
} @else if (euProjectStatusesError || bmbfProjectStatusesError) {
<p class="statistics-error">
Der Status der EU- und Bund-Projekte konnte nicht geladen werden.
</p>
} @else if (euProjectStatuses && bmbfProjectStatuses) {
<app-eu-project-status-chart
[statuses]="euProjectStatuses"
[bmbfStatuses]="bmbfProjectStatuses"></app-eu-project-status-chart>
}
</section>
}
@if (topicTreemapLoading || topicTreemapError || hasTopicTreemapData()) {
<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 class="topic-treemap-year-slider">
<app-year-range-slider
[minYear]="topicTreemapMinYear"
[maxYear]="topicTreemapMaxYear"
[(startYear)]="topicTreemapFromYear"
[(endYear)]="topicTreemapToYear"
(startYearChange)="onTopicTreemapRangeChange()"
(endYearChange)="onTopicTreemapRangeChange()">
</app-year-range-slider>
</div>
</header>
@if (topicHeatmapError) {
@if (topicTreemapLoading) {
<div class="topic-heatmap-loading" role="status" aria-live="polite">
<app-loading
text="Treemap-Daten für den gewählten Zeitraum werden geladen …"
icon="account_tree"
size="72"
diameter="72"></app-loading>
</div>
} @else if (topicTreemapError) {
<p class="statistics-error">
Die Field-Treemap konnte nicht geladen werden.
</p>
} @else {
<app-topic-heatmap
[heatmap]="topicHeatmap"
[loading]="topicHeatmapLoading"></app-topic-heatmap>
<app-topic-treemap
[data]="topicTreemap"
[selectedNodeId]="selectedTopicTreemapNode"
(selectedNodeIdChange)="onTopicTreemapNodeChange($event)"
(topicSelect)="onTopicTreemapTopicSelect($event)">
</app-topic-treemap>
}
</section>
}
@if (dfgTopicsLoading || dfgTopicsError || dfgProjectTopics) {
<section class="topic-heatmap-section">
<header class="topic-heatmap-header">
<div>
<h2>DFG-Projekt-Topics</h2>
<p>
Verteilung der gematchten Topics aus den DFG-Projekten Ihrer
Organisation.
</p>
</div>
@if (dfgProjectTopics) {
<p class="dfg-topic-summary">
{{ dfgProjectTopics.matched_project_count | number }} von
{{ dfgProjectTopics.project_count | number }} Projekten gematcht
</p>
}
</header>
@if (dfgTopicsLoading) {
<div class="topic-heatmap-loading" role="status" aria-live="polite">
<app-loading
text="DFG-Topics werden geladen …"
icon="account_tree"
size="72"
diameter="72"></app-loading>
</div>
} @else if (dfgTopicsError) {
<p class="statistics-error">
Das DFG-Topic-Diagramm konnte nicht geladen werden.
</p>
} @else {
<app-dfg-topic-donut
[topics]="dfgProjectTopics?.topics ?? []"></app-dfg-topic-donut>
}
</section>
}