Compare commits
20
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba834f8596 | ||
|
|
9edb02799c | ||
|
|
05c20a34f7 | ||
|
|
45db15b22b | ||
|
|
1b4d0e053d | ||
|
|
1fe273c747 | ||
|
|
a2a4798ba7 | ||
|
|
4280ac24b8 | ||
|
|
23de1204f8 | ||
|
|
60198c2225 | ||
|
|
e42c81e32a | ||
|
|
ddd5e4e891 | ||
|
|
5d10af42f0 | ||
|
|
e25b5ed41b | ||
|
|
c04f462b08 | ||
|
|
7e79e8ed16 | ||
|
|
2ca33edaa4 | ||
|
|
a5ae3a4605 | ||
|
|
ad1e789e8e | ||
|
|
32d1e27fc5 |
@@ -502,9 +502,9 @@ def _eu_year_filters(field: str, years: list[str]) -> dict[str, Any]:
|
||||
def _eu_sort_field(sort_by: str) -> str:
|
||||
mapping = {
|
||||
"title": "title.keyword",
|
||||
"funding_start": "startDate",
|
||||
"funding_end": "endDate",
|
||||
"funding_amount": "ecMaxContribution",
|
||||
"startDate": "startDate",
|
||||
"endDate": "endDate",
|
||||
"ecMaxContribution": "ecMaxContribution",
|
||||
"id": "id",
|
||||
"project_type": "_index",
|
||||
}
|
||||
@@ -998,7 +998,7 @@ async def search_eu_cordis_projects(
|
||||
if sort_direction not in ["asc", "desc"]:
|
||||
sort_direction = "asc"
|
||||
|
||||
sort_field = _eu_sort_field(sort_by.strip().lower())
|
||||
sort_field = _eu_sort_field(sort_by)
|
||||
response = await elasticsearch.search(
|
||||
index=indices,
|
||||
cluster=ESCluster.INSE,
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
"
|
||||
(click)="showPassword = !showPassword">
|
||||
<mat-icon>{{
|
||||
showPassword ? VISIBILITY_ICON : VISIBILITY_OFF_ICON
|
||||
showPassword ? OVERVIEW_ICON : VISIBILITY_OFF_ICON
|
||||
}}</mat-icon>
|
||||
</button>
|
||||
@if (credentialsForm.controls.password.hasError('required')) {
|
||||
|
||||
@@ -17,8 +17,8 @@ import { Router, RouterLink } from '@angular/router';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
import {
|
||||
EMAIL_UNREAD_ICON,
|
||||
OVERVIEW_ICON,
|
||||
TIMER_ICON,
|
||||
VISIBILITY_ICON,
|
||||
VISIBILITY_OFF_ICON,
|
||||
} from '../../shared/ui/icons';
|
||||
|
||||
@@ -43,7 +43,7 @@ type LoginStep = 'credentials' | 'otk';
|
||||
export class AppLoginComponent implements OnDestroy {
|
||||
readonly EMAIL_UNREAD_ICON = EMAIL_UNREAD_ICON;
|
||||
readonly TIMER_ICON = TIMER_ICON;
|
||||
readonly VISIBILITY_ICON = VISIBILITY_ICON;
|
||||
readonly OVERVIEW_ICON = OVERVIEW_ICON;
|
||||
readonly VISIBILITY_OFF_ICON = VISIBILITY_OFF_ICON;
|
||||
|
||||
credentialsForm = new FormGroup({
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
@if (shouldDisplay()) {
|
||||
<section class="field-treemap-section">
|
||||
<header class="field-treemap-header">
|
||||
<hgroup>
|
||||
<h2>Field Treemap</h2>
|
||||
<p>Publikationen Ihrer Organisation nach Field.</p>
|
||||
</hgroup>
|
||||
</header>
|
||||
|
||||
@if (loading()) {
|
||||
<div class="field-treemap-loading" role="status" aria-live="polite">
|
||||
<app-loading
|
||||
text="Treemap-Daten für den gewählten Zeitraum werden geladen …"
|
||||
[icon]="loadingIcon"
|
||||
size="72"
|
||||
diameter="72" />
|
||||
</div>
|
||||
} @else if (error()) {
|
||||
<p class="statistics-error">
|
||||
Die Field-Treemap konnte nicht geladen werden.
|
||||
</p>
|
||||
} @else {
|
||||
<app-topic-treemap
|
||||
[data]="treemap()"
|
||||
[selectedNodeId]="selectedNodeId()"
|
||||
(selectedNodeIdChange)="selectedNodeId.set($event)"
|
||||
(topicSelect)="openTopic($event)" />
|
||||
}
|
||||
</section>
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.field-treemap-section {
|
||||
margin-bottom: 2.5rem;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-card-bg);
|
||||
}
|
||||
|
||||
.field-treemap-header {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
hgroup,
|
||||
h2,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0.35rem;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.field-treemap-loading {
|
||||
display: grid;
|
||||
min-height: 25rem;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.statistics-error {
|
||||
color: var(--sg-error);
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
import { Component, computed, inject, input, model } from '@angular/core';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { ACCOUNT_TREE_ICON } from '../../../../shared/ui/icons';
|
||||
import { LoadingComponent } from '../../../../shared/ui/loading/loading.component';
|
||||
import { TopicTreemapComponent } from '../../../../shared/ui/topic-treemap/topic-treemap.component';
|
||||
import {
|
||||
TopicTreemapData,
|
||||
TopicTreemapTopicSelect,
|
||||
} from '../../../../shared/ui/topic-treemap/topic-treemap.models';
|
||||
import { DashboardPeriodMode } from '../../dashboard.models';
|
||||
import {
|
||||
TopicWordCloudDialogComponent,
|
||||
TopicWordCloudDialogData,
|
||||
} from '../topic-wordcloud-dialog/topic-wordcloud-dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard-field-treemap',
|
||||
imports: [LoadingComponent, TopicTreemapComponent],
|
||||
templateUrl: './dashboard-field-treemap.component.html',
|
||||
styleUrl: './dashboard-field-treemap.component.scss',
|
||||
})
|
||||
export class DashboardFieldTreemapComponent {
|
||||
readonly treemap = input<TopicTreemapData>();
|
||||
readonly loading = input(false);
|
||||
readonly error = input(false);
|
||||
readonly selectedNodeId = model<string>();
|
||||
readonly periodMode = input.required<DashboardPeriodMode>();
|
||||
readonly fromYear = input.required<number>();
|
||||
readonly toYear = input.required<number>();
|
||||
readonly institutionId = input.required<string>();
|
||||
|
||||
readonly loadingIcon = ACCOUNT_TREE_ICON;
|
||||
readonly hasData = computed(() =>
|
||||
(this.treemap()?.fields ?? []).some(
|
||||
(field) =>
|
||||
field.total > 0 || field.values.some((value) => value.count > 0),
|
||||
),
|
||||
);
|
||||
readonly shouldDisplay = computed(
|
||||
() => this.loading() || this.error() || this.hasData(),
|
||||
);
|
||||
|
||||
private readonly dialog = inject(MatDialog);
|
||||
|
||||
openTopic(topic: TopicTreemapTopicSelect): void {
|
||||
const hasCustomPeriod = this.periodMode() !== 'all_time';
|
||||
this.dialog.open<TopicWordCloudDialogComponent, TopicWordCloudDialogData>(
|
||||
TopicWordCloudDialogComponent,
|
||||
{
|
||||
width: '85vw',
|
||||
maxWidth: '92vw',
|
||||
data: {
|
||||
...topic,
|
||||
fromYear: hasCustomPeriod ? this.fromYear() : undefined,
|
||||
toYear: hasCustomPeriod ? this.toYear() : undefined,
|
||||
institutionId: this.institutionId(),
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
<section class="dashboard-period-filter" aria-label="Dashboard-Zeitraum">
|
||||
<app-filter-card>
|
||||
<div class="dashboard-period-presets">
|
||||
<button
|
||||
type="button"
|
||||
[class.active]="periodMode() === 'all_time'"
|
||||
(click)="selectPeriodMode('all_time')">
|
||||
Alle Zeiten
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
[class.active]="periodMode() === 'last_10_years'"
|
||||
(click)="selectPeriodMode('last_10_years')">
|
||||
Letzte 10 Jahre
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
[class.active]="periodMode() === 'last_5_years'"
|
||||
(click)="selectPeriodMode('last_5_years')">
|
||||
Letzte 5 Jahre
|
||||
</button>
|
||||
</div>
|
||||
</app-filter-card>
|
||||
|
||||
<div class="dashboard-period-slider">
|
||||
<app-year-range-slider
|
||||
[minYear]="minYear()"
|
||||
[maxYear]="maxYear()"
|
||||
[startYear]="startYear()"
|
||||
[endYear]="endYear()"
|
||||
(startYearChange)="updateStartYear($event)"
|
||||
(endYearChange)="updateEndYear($event)">
|
||||
</app-year-range-slider>
|
||||
</div>
|
||||
|
||||
<mat-form-field
|
||||
class="dashboard-institution-filter"
|
||||
appearance="outline"
|
||||
subscriptSizing="dynamic">
|
||||
<mat-label>Institution</mat-label>
|
||||
<mat-select
|
||||
[value]="selectedInstitutionId()"
|
||||
[disabled]="institutionsLoading() || institutions().length === 0"
|
||||
(selectionChange)="institutionSelected.emit($event.value)">
|
||||
<mat-option value="all">Alle Institutionen</mat-option>
|
||||
@for (institution of institutions(); track institution.id) {
|
||||
<mat-option [value]="institution.id">
|
||||
{{ institution.display_name }}
|
||||
</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</section>
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dashboard-period-filter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.dashboard-period-presets {
|
||||
display: inline-flex;
|
||||
overflow: hidden;
|
||||
flex: 0 0 auto;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 6px;
|
||||
background: var(--sg-surface);
|
||||
|
||||
button {
|
||||
padding: 0.55rem 0.8rem;
|
||||
border: 0;
|
||||
border-right: 1px solid var(--sg-border);
|
||||
background: transparent;
|
||||
color: var(--sg-text);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
|
||||
&.active {
|
||||
background: var(--sg-blue-highlight);
|
||||
color: var(--sg-card-bg);
|
||||
}
|
||||
}
|
||||
|
||||
button:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-period-slider {
|
||||
width: 280px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.dashboard-institution-filter {
|
||||
width: 280px;
|
||||
max-width: 100%;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.dashboard-institution-filter,
|
||||
.dashboard-period-slider {
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
import { Component, input, model, output } from '@angular/core';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { YearRangeSliderComponent } from '../../../../shared/ui/year-range-slider/year-range-slider.component';
|
||||
import { DashboardInstitution } from '../../dashboard-statistics.service';
|
||||
import { DashboardPeriodMode } from '../../dashboard.models';
|
||||
import { FilterCardComponent } from '../../../../shared/ui/filter-card/filter-card.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard-filter',
|
||||
imports: [MatFormFieldModule, MatSelectModule, YearRangeSliderComponent, FilterCardComponent],
|
||||
templateUrl: './dashboard-filter.component.html',
|
||||
styleUrl: './dashboard-filter.component.scss',
|
||||
})
|
||||
export class DashboardFilterComponent {
|
||||
readonly periodMode = input.required<DashboardPeriodMode>();
|
||||
readonly minYear = input.required<number>();
|
||||
readonly maxYear = input.required<number>();
|
||||
readonly startYear = model.required<number>();
|
||||
readonly endYear = model.required<number>();
|
||||
readonly institutions = input<DashboardInstitution[]>([]);
|
||||
readonly institutionsLoading = input(false);
|
||||
readonly selectedInstitutionId = input('all');
|
||||
|
||||
readonly periodModeSelected = output<DashboardPeriodMode>();
|
||||
readonly periodRangeChanged = output<void>();
|
||||
readonly institutionSelected = output<string>();
|
||||
|
||||
selectPeriodMode(mode: DashboardPeriodMode): void {
|
||||
this.periodModeSelected.emit(mode);
|
||||
}
|
||||
|
||||
updateStartYear(year: number): void {
|
||||
this.startYear.set(year);
|
||||
this.periodRangeChanged.emit();
|
||||
}
|
||||
|
||||
updateEndYear(year: number): void {
|
||||
this.endYear.set(year);
|
||||
this.periodRangeChanged.emit();
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
<section
|
||||
class="dashboard-institution-tabs"
|
||||
aria-label="Institutionen für Analysebereiche">
|
||||
<div class="dashboard-institution-tab-bar">
|
||||
<button
|
||||
type="button"
|
||||
class="dashboard-institution-tab-arrow"
|
||||
[class.is-hidden]="!canScrollLeft"
|
||||
[disabled]="!canScrollLeft"
|
||||
aria-label="Vorherige Institutionen anzeigen"
|
||||
(click)="scroll(-1)">
|
||||
<mat-icon>{{ CHEVRON_LEFT_ICON }}</mat-icon>
|
||||
</button>
|
||||
|
||||
<div
|
||||
#tabList
|
||||
class="dashboard-institution-tab-list sg-tab-nav"
|
||||
role="tablist"
|
||||
(scroll)="updateScrollState()">
|
||||
@for (institution of institutions(); track institution.id) {
|
||||
<button
|
||||
type="button"
|
||||
role="tab"
|
||||
[attr.aria-selected]="selectedInstitutionId() === institution.id"
|
||||
[class.active]="selectedInstitutionId() === institution.id"
|
||||
(click)="selectInstitution(institution.id)">
|
||||
{{ institution.display_name }}
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="dashboard-institution-tab-arrow"
|
||||
[class.is-hidden]="!canScrollRight"
|
||||
[disabled]="!canScrollRight"
|
||||
aria-label="Weitere Institutionen anzeigen"
|
||||
(click)="scroll(1)">
|
||||
<mat-icon>{{ CHEVRON_RIGHT_ICON }}</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@if (error()) {
|
||||
<p class="statistics-error">
|
||||
Die Institutionen konnten nicht geladen werden.
|
||||
</p>
|
||||
}
|
||||
</section>
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dashboard-institution-tabs {
|
||||
margin: -0.25rem 0 2rem;
|
||||
}
|
||||
|
||||
.dashboard-institution-tab-bar {
|
||||
display: grid;
|
||||
grid-template-columns: 40px minmax(0, 1fr) 40px;
|
||||
align-items: stretch;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.dashboard-institution-tab-arrow {
|
||||
display: grid;
|
||||
width: 40px;
|
||||
height: 48px;
|
||||
padding: 0;
|
||||
place-items: center;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--sg-text-muted);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color 0.15s ease,
|
||||
background-color 0.15s ease,
|
||||
opacity 0.15s ease;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background: var(--sg-option-hover);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline-offset: -3px;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
&.is-hidden {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-institution-tab-list {
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
border-bottom: 0;
|
||||
background: transparent;
|
||||
scrollbar-width: none;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button {
|
||||
position: relative;
|
||||
flex: 0 0 auto;
|
||||
min-width: 120px;
|
||||
height: 48px;
|
||||
padding: 0 16px;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: var(--sg-text-muted);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 48px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
transition:
|
||||
color 0.15s ease,
|
||||
background-color 0.15s ease;
|
||||
|
||||
&::after {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
border-top: 3px solid transparent;
|
||||
background: transparent;
|
||||
content: '';
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--sg-option-hover);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 3px solid var(--sg-card-hover-border);
|
||||
outline-offset: -3px;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: var(--sg-blue-highlight);
|
||||
|
||||
&::after {
|
||||
border-top-color: var(--sg-blue-highlight);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.statistics-error {
|
||||
color: var(--sg-error);
|
||||
}
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
import {
|
||||
AfterViewInit,
|
||||
Component,
|
||||
ElementRef,
|
||||
HostListener,
|
||||
OnChanges,
|
||||
ViewChild,
|
||||
input,
|
||||
output,
|
||||
} from '@angular/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { DashboardInstitution } from '../../dashboard-statistics.service';
|
||||
import {
|
||||
CHEVRON_LEFT_ICON,
|
||||
CHEVRON_RIGHT_ICON,
|
||||
} from '../../../../shared/ui/icons';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard-institution-tabs',
|
||||
imports: [MatIconModule],
|
||||
templateUrl: './dashboard-institution-tabs.component.html',
|
||||
styleUrl: './dashboard-institution-tabs.component.scss',
|
||||
})
|
||||
export class DashboardInstitutionTabsComponent
|
||||
implements AfterViewInit, OnChanges
|
||||
{
|
||||
readonly CHEVRON_LEFT_ICON = CHEVRON_LEFT_ICON;
|
||||
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
|
||||
|
||||
@ViewChild('tabList') private tabList?: ElementRef<HTMLElement>;
|
||||
|
||||
readonly institutions = input<DashboardInstitution[]>([]);
|
||||
readonly selectedInstitutionId = input('');
|
||||
readonly error = input(false);
|
||||
readonly institutionSelected = output<string>();
|
||||
|
||||
canScrollLeft = false;
|
||||
canScrollRight = false;
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
setTimeout(() => this.updateScrollState());
|
||||
}
|
||||
|
||||
ngOnChanges(): void {
|
||||
setTimeout(() => this.updateScrollState());
|
||||
}
|
||||
|
||||
@HostListener('window:resize')
|
||||
onWindowResize(): void {
|
||||
this.updateScrollState();
|
||||
}
|
||||
|
||||
selectInstitution(institutionId: string): void {
|
||||
if (institutionId !== this.selectedInstitutionId()) {
|
||||
this.institutionSelected.emit(institutionId);
|
||||
}
|
||||
}
|
||||
|
||||
scroll(direction: -1 | 1): void {
|
||||
const tabList = this.tabList?.nativeElement;
|
||||
if (!tabList) return;
|
||||
|
||||
tabList.scrollBy({
|
||||
left: direction * Math.floor(tabList.clientWidth * 0.75),
|
||||
behavior: 'smooth',
|
||||
});
|
||||
}
|
||||
|
||||
updateScrollState(): void {
|
||||
const tabList = this.tabList?.nativeElement;
|
||||
if (!tabList) {
|
||||
this.canScrollLeft = false;
|
||||
this.canScrollRight = false;
|
||||
return;
|
||||
}
|
||||
|
||||
const maxScrollLeft = tabList.scrollWidth - tabList.clientWidth;
|
||||
this.canScrollLeft = tabList.scrollLeft > 1;
|
||||
this.canScrollRight = tabList.scrollLeft < maxScrollLeft - 1;
|
||||
}
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
@if (shouldDisplay()) {
|
||||
<section class="project-status-section">
|
||||
<header class="project-status-header">
|
||||
<div>
|
||||
<h2>Projektstatus nach Fördergeber</h2>
|
||||
<p>
|
||||
Laufende, kommende und abgeschlossene EU-, Bund- und DFG-Projekte
|
||||
Ihrer Organisation.
|
||||
</p>
|
||||
</div>
|
||||
@if (statusData(); as statuses) {
|
||||
<div class="project-status-summary">
|
||||
<span>EU: {{ total(statuses.eu) | number }}</span>
|
||||
<span>Bund: {{ total(statuses.bund) | number }}</span>
|
||||
<span>DFG: {{ total(statuses.dfg) | number }}</span>
|
||||
</div>
|
||||
}
|
||||
</header>
|
||||
|
||||
@if (loading()) {
|
||||
<div class="project-status-loading" role="status" aria-live="polite">
|
||||
<app-loading
|
||||
text="Projektstatus wird geladen …"
|
||||
[icon]="loadingIcon"
|
||||
size="64"
|
||||
diameter="64" />
|
||||
</div>
|
||||
} @else if (allFailed()) {
|
||||
<p class="statistics-error">
|
||||
Der Status der EU-, Bund- und DFG-Projekte konnte nicht geladen werden.
|
||||
</p>
|
||||
} @else if (statusData(); as statuses) {
|
||||
@if (failedSources()) {
|
||||
<p class="statistics-error">
|
||||
Projektstatusdaten für {{ failedSources() }} konnten nicht geladen
|
||||
werden. Die übrigen Daten werden weiterhin angezeigt.
|
||||
</p>
|
||||
}
|
||||
<app-eu-project-status-chart
|
||||
[statuses]="statuses.eu"
|
||||
[bmbfStatuses]="statuses.bund"
|
||||
[dfgStatuses]="statuses.dfg" />
|
||||
}
|
||||
</section>
|
||||
}
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.project-status-section {
|
||||
margin-bottom: 2.5rem;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-card-bg);
|
||||
}
|
||||
|
||||
.project-status-header {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
h2,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0.35rem;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.project-status-loading {
|
||||
display: grid;
|
||||
min-height: 15rem;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.project-status-summary {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
gap: 0.5rem;
|
||||
|
||||
span {
|
||||
padding: 0.35rem 0.65rem;
|
||||
border-radius: 999px;
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.statistics-error {
|
||||
color: var(--sg-error);
|
||||
}
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
import { DecimalPipe } from '@angular/common';
|
||||
import { Component, computed, input } from '@angular/core';
|
||||
import { STACKED_BAR_CHART_ICON } from '../../../../shared/ui/icons';
|
||||
import { LoadingComponent } from '../../../../shared/ui/loading/loading.component';
|
||||
import {
|
||||
BmbfProjectStatusStatistics,
|
||||
DfgProjectStatusStatistics,
|
||||
EuProjectStatusStatistics,
|
||||
} from '../../dashboard-statistics.service';
|
||||
import { EuProjectStatusChartComponent } from '../eu-project-status-chart/eu-project-status-chart.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard-project-status',
|
||||
imports: [DecimalPipe, EuProjectStatusChartComponent, LoadingComponent],
|
||||
templateUrl: './dashboard-project-status.component.html',
|
||||
styleUrl: './dashboard-project-status.component.scss',
|
||||
})
|
||||
export class DashboardProjectStatusComponent {
|
||||
readonly active = input(false);
|
||||
readonly euStatuses = input<EuProjectStatusStatistics>();
|
||||
readonly bundStatuses = input<BmbfProjectStatusStatistics>();
|
||||
readonly dfgStatuses = input<DfgProjectStatusStatistics>();
|
||||
readonly euLoading = input(false);
|
||||
readonly bundLoading = input(false);
|
||||
readonly dfgLoading = input(false);
|
||||
readonly euError = input(false);
|
||||
readonly bundError = input(false);
|
||||
readonly dfgError = input(false);
|
||||
|
||||
readonly loadingIcon = STACKED_BAR_CHART_ICON;
|
||||
readonly loading = computed(
|
||||
() => this.euLoading() || this.bundLoading() || this.dfgLoading(),
|
||||
);
|
||||
readonly allFailed = computed(
|
||||
() => this.euError() && this.bundError() && this.dfgError(),
|
||||
);
|
||||
readonly failedSources = computed(() =>
|
||||
[
|
||||
this.euError() ? 'EU' : undefined,
|
||||
this.bundError() ? 'Bund' : undefined,
|
||||
this.dfgError() ? 'DFG' : undefined,
|
||||
]
|
||||
.filter((source): source is string => source !== undefined)
|
||||
.join(' und '),
|
||||
);
|
||||
readonly statusData = computed(() => {
|
||||
const eu = this.euStatuses();
|
||||
const bund = this.bundStatuses();
|
||||
const dfg = this.dfgStatuses();
|
||||
return eu && bund && dfg ? { eu, bund, dfg } : undefined;
|
||||
});
|
||||
readonly shouldDisplay = computed(
|
||||
() =>
|
||||
this.active() &&
|
||||
(this.loading() ||
|
||||
this.euError() ||
|
||||
this.bundError() ||
|
||||
this.dfgError() ||
|
||||
Boolean(this.statusData())),
|
||||
);
|
||||
|
||||
total(statuses: {
|
||||
ongoing: number;
|
||||
upcoming: number;
|
||||
completed: number;
|
||||
}): number {
|
||||
return statuses.ongoing + statuses.upcoming + statuses.completed;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
<a
|
||||
class="statistics-card"
|
||||
[routerLink]="disabled() ? null : link()"
|
||||
[queryParams]="queryParams()"
|
||||
[class.disabled]="disabled()"
|
||||
[attr.aria-disabled]="disabled() || null"
|
||||
[attr.aria-label]="ariaLabel()"
|
||||
[attr.tabindex]="disabled() ? -1 : null"
|
||||
[matTooltip]="tooltip()"
|
||||
matTooltipPosition="above">
|
||||
<div class="statistics-icon" [class]="'statistics-icon--' + variant()">
|
||||
<mat-icon>{{ icon() }}</mat-icon>
|
||||
</div>
|
||||
<div>
|
||||
<span>{{ label() }}</span>
|
||||
<strong>{{ loading() ? '…' : ((value() | number) ?? '–') }}</strong>
|
||||
</div>
|
||||
</a>
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.statistics-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
min-height: 120px;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-card-bg);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
box-shadow 160ms ease,
|
||||
transform 160ms ease;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--sg-card-hover-border);
|
||||
box-shadow: var(--sg-shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 3px solid var(--sg-card-hover-border);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
span {
|
||||
display: block;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
strong {
|
||||
display: block;
|
||||
margin: 0.2rem 0;
|
||||
color: var(--sg-text);
|
||||
font-size: clamp(1.7rem, 3vw, 2.3rem);
|
||||
line-height: 1.1;
|
||||
}
|
||||
}
|
||||
|
||||
.statistics-icon {
|
||||
display: grid;
|
||||
flex: 0 0 52px;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
place-items: center;
|
||||
border-radius: 12px;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
|
||||
&--persons {
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
&--patents {
|
||||
background: var(--sg-error-soft);
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
&--bund-projects,
|
||||
&--dfg-projects {
|
||||
background: var(--sg-warning-soft);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
import { DecimalPipe } from '@angular/common';
|
||||
import { Component, input } from '@angular/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { Params, RouterLink, UrlTree } from '@angular/router';
|
||||
|
||||
export type DashboardStatisticCardVariant =
|
||||
| 'publications'
|
||||
| 'persons'
|
||||
| 'patents'
|
||||
| 'eu-projects'
|
||||
| 'bund-projects'
|
||||
| 'dfg-projects';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard-statistic-card',
|
||||
imports: [DecimalPipe, MatIconModule, MatTooltipModule, RouterLink],
|
||||
templateUrl: './dashboard-statistic-card.component.html',
|
||||
styleUrl: './dashboard-statistic-card.component.scss',
|
||||
})
|
||||
export class DashboardStatisticCardComponent {
|
||||
readonly label = input.required<string>();
|
||||
readonly value = input<number | null>();
|
||||
readonly loading = input(false);
|
||||
readonly icon = input.required<string>();
|
||||
readonly variant = input.required<DashboardStatisticCardVariant>();
|
||||
readonly link = input.required<string | readonly unknown[] | UrlTree>();
|
||||
readonly queryParams = input<Params | null>(null);
|
||||
readonly ariaLabel = input.required<string>();
|
||||
readonly tooltip = input.required<string>();
|
||||
readonly disabled = input(false);
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
<section class="statistics-grid" aria-label="Kennzahlen">
|
||||
<app-dashboard-statistic-card
|
||||
label="Publikationen"
|
||||
[value]="statistics()?.publications"
|
||||
[loading]="loading().publications"
|
||||
[icon]="PUBLICATION_ICON"
|
||||
variant="publications"
|
||||
[link]="['/institution', institutionRouteId(), 'publications']"
|
||||
[disabled]="!institutionRouteId()"
|
||||
[ariaLabel]="'Publikationen von ' + organizationName() + ' anzeigen'"
|
||||
tooltip="Anzahl der Publikationen im ausgewählten Zeitraum" />
|
||||
|
||||
<app-dashboard-statistic-card
|
||||
label="Personen"
|
||||
[value]="statistics()?.persons"
|
||||
[loading]="loading().persons"
|
||||
[icon]="PERSONS_ICON"
|
||||
variant="persons"
|
||||
link="/persons"
|
||||
[queryParams]="personListQueryParams()"
|
||||
[ariaLabel]="'Personen von ' + organizationName() + ' anzeigen'"
|
||||
tooltip="Anzahl der Personen im ausgewählten Zeitraum" />
|
||||
|
||||
<app-dashboard-statistic-card
|
||||
label="Patente"
|
||||
[value]="statistics()?.patents"
|
||||
[loading]="loading().patents"
|
||||
[icon]="PATENT_ICON"
|
||||
variant="patents"
|
||||
[link]="['/institution', institutionRouteId(), 'patents']"
|
||||
[disabled]="!institutionRouteId()"
|
||||
[ariaLabel]="'Patente von ' + organizationName() + ' anzeigen'"
|
||||
tooltip="Anzahl der Patente im ausgewählten Zeitraum" />
|
||||
|
||||
<app-dashboard-statistic-card
|
||||
label="EU-Projekte"
|
||||
[value]="statistics()?.eu_projects"
|
||||
[loading]="loading().eu_projects"
|
||||
[icon]="PUBLIC_ICON"
|
||||
variant="eu-projects"
|
||||
link="/projects"
|
||||
[queryParams]="{ selected_project_types: 'eu' }"
|
||||
ariaLabel="EU-Projekte anzeigen"
|
||||
tooltip="Anzahl der laufenden, abgeschlossenen und kommenden EU-Projekte im ausgewählten Zeitraum" />
|
||||
|
||||
<app-dashboard-statistic-card
|
||||
label="Bund-Projekte"
|
||||
[value]="statistics()?.bmbf_projects"
|
||||
[loading]="loading().bmbf_projects"
|
||||
[icon]="BUND_ICON"
|
||||
variant="bund-projects"
|
||||
link="/projects"
|
||||
[queryParams]="{ selected_project_types: 'bund' }"
|
||||
ariaLabel="Bund-Projekte anzeigen"
|
||||
tooltip="Anzahl der laufenden, abgeschlossenen und kommenden Bund-Projekte im ausgewählten Zeitraum" />
|
||||
|
||||
<app-dashboard-statistic-card
|
||||
label="DFG-Projekte"
|
||||
[value]="statistics()?.dfg_projects"
|
||||
[loading]="loading().dfg_projects"
|
||||
[icon]="DFG_ICON"
|
||||
variant="dfg-projects"
|
||||
link="/projects"
|
||||
[queryParams]="{ selected_project_types: 'dfg' }"
|
||||
ariaLabel="DFG-Projekte anzeigen"
|
||||
tooltip="Anzahl der laufenden, abgeschlossenen und kommenden DFG-Projekte im ausgewählten Zeitraum" />
|
||||
</section>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
.statistics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
import { Component, computed, input } from '@angular/core';
|
||||
import {
|
||||
BUND_ICON,
|
||||
DFG_ICON,
|
||||
PATENT_ICON,
|
||||
PERSONS_ICON,
|
||||
PUBLIC_ICON,
|
||||
PUBLICATION_ICON,
|
||||
} from '../../../../shared/ui/icons';
|
||||
import { institutionPersonListQueryParamsForPeriod } from '../../../../shared/person-list-query-params';
|
||||
import {
|
||||
DashboardInstitution,
|
||||
DashboardStatistics,
|
||||
} from '../../dashboard-statistics.service';
|
||||
import {
|
||||
DashboardPeriodMode,
|
||||
DashboardStatisticKey,
|
||||
} from '../../dashboard.models';
|
||||
import { DashboardStatisticCardComponent } from '../dashboard-statistic-card/dashboard-statistic-card.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard-statistics-grid',
|
||||
imports: [DashboardStatisticCardComponent],
|
||||
templateUrl: './dashboard-statistics-grid.component.html',
|
||||
styleUrl: './dashboard-statistics-grid.component.scss',
|
||||
})
|
||||
export class DashboardStatisticsGridComponent {
|
||||
readonly statistics = input<Partial<DashboardStatistics>>();
|
||||
readonly loading =
|
||||
input.required<Readonly<Record<DashboardStatisticKey, boolean>>>();
|
||||
readonly institutions = input<DashboardInstitution[]>([]);
|
||||
readonly selectedInstitutionId = input('all');
|
||||
readonly periodMode = input.required<DashboardPeriodMode>();
|
||||
readonly fromYear = input.required<number>();
|
||||
readonly toYear = input.required<number>();
|
||||
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly PERSONS_ICON = PERSONS_ICON;
|
||||
readonly PATENT_ICON = PATENT_ICON;
|
||||
readonly PUBLIC_ICON = PUBLIC_ICON;
|
||||
readonly BUND_ICON = BUND_ICON;
|
||||
readonly DFG_ICON = DFG_ICON;
|
||||
|
||||
readonly organizationName = computed(
|
||||
() => this.statistics()?.organization_name ?? 'Ihre Organisation',
|
||||
);
|
||||
|
||||
readonly institutionRouteId = computed(() => {
|
||||
const selectedInstitutionId = this.routeableInstitutionId(
|
||||
this.selectedInstitutionId(),
|
||||
);
|
||||
if (selectedInstitutionId) return selectedInstitutionId;
|
||||
|
||||
return this.routeableInstitutionId(this.institutions()[0]?.id) ?? '';
|
||||
});
|
||||
|
||||
readonly personListQueryParams = computed(() =>
|
||||
institutionPersonListQueryParamsForPeriod(
|
||||
this.institutionRouteId(),
|
||||
this.organizationName(),
|
||||
this.periodMode() === 'all_time' ? undefined : this.fromYear(),
|
||||
this.periodMode() === 'all_time' ? undefined : this.toYear(),
|
||||
),
|
||||
);
|
||||
|
||||
private routeableInstitutionId(institutionId?: string | null): string | null {
|
||||
const normalizedInstitutionId = institutionId
|
||||
?.replace('https://openalex.org/', '')
|
||||
.trim();
|
||||
|
||||
return normalizedInstitutionId && normalizedInstitutionId !== 'all'
|
||||
? normalizedInstitutionId
|
||||
: null;
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
@if (shouldDisplay()) {
|
||||
<section class="top-authors-section">
|
||||
<header class="top-authors-header">
|
||||
<hgroup>
|
||||
<h2>Top 10 Personen</h2>
|
||||
<p>
|
||||
Nach Anzahl der Works, DFG-Projekte, Patente und News Ihrer
|
||||
Organisation.
|
||||
</p>
|
||||
</hgroup>
|
||||
</header>
|
||||
|
||||
@if (error()) {
|
||||
<p class="statistics-error">
|
||||
Die Autorenstatistiken konnten nicht geladen werden.
|
||||
</p>
|
||||
} @else {
|
||||
<div class="top-authors-grid" [class.loading]="loading()">
|
||||
@for (dataset of visibleDatasets(); track dataset.title) {
|
||||
<app-top-author-chart [dataset]="dataset" [loading]="loading()" />
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.top-authors-section {
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
|
||||
.top-authors-header {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
hgroup,
|
||||
h2,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0.35rem;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.top-authors-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
|
||||
&.loading {
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.statistics-error {
|
||||
color: var(--sg-error);
|
||||
}
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
import { Component, computed, input } from '@angular/core';
|
||||
import {
|
||||
DFG_ICON,
|
||||
PUBLIC_ICON,
|
||||
PATENT_ICON,
|
||||
NEWS_ICON,
|
||||
PUBLICATION_ICON,
|
||||
} from '../../../../shared/ui/icons';
|
||||
import { TopAuthorStatistics } from '../../dashboard-statistics.service';
|
||||
import {
|
||||
TopAuthorChartComponent,
|
||||
TopAuthorDataset,
|
||||
} from '../top-author-chart/top-author-chart.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard-top-authors',
|
||||
imports: [TopAuthorChartComponent],
|
||||
templateUrl: './dashboard-top-authors.component.html',
|
||||
styleUrl: './dashboard-top-authors.component.scss',
|
||||
})
|
||||
export class DashboardTopAuthorsComponent {
|
||||
readonly statistics = input<TopAuthorStatistics>();
|
||||
readonly loading = input(false);
|
||||
readonly error = input(false);
|
||||
|
||||
readonly datasets = computed<TopAuthorDataset[]>(() => [
|
||||
{
|
||||
title: 'Publikationen',
|
||||
subtitle:
|
||||
'Top 10 Personen mit Publikationen der ausgewählten Institution. Die Zahl zeigt die Anzahl der Publikationen der jeweiligen Person.',
|
||||
icon: PUBLICATION_ICON,
|
||||
entries: this.statistics()?.works ?? [],
|
||||
},
|
||||
{
|
||||
title: 'EU-Projekte',
|
||||
subtitle:
|
||||
'Top 10 Personen, die an EU-Projekten der ausgewählten Institution beteiligt sind. Die Zahl zeigt, an wie vielen EU-Projekten die jeweilige Person beteiligt ist.',
|
||||
icon: PUBLIC_ICON,
|
||||
entries: this.statistics()?.eu_projects ?? [],
|
||||
},
|
||||
{
|
||||
title: 'Patente',
|
||||
subtitle:
|
||||
'Top 10 Personen mit Zuordnung zu Patenten der ausgewählten Institution. Die Zahl zeigt, wie vielen Patenten die jeweilige Person zugeordnet wurde.',
|
||||
icon: PATENT_ICON,
|
||||
entries: this.statistics()?.patents ?? [],
|
||||
},
|
||||
{
|
||||
title: 'DFG Projekte',
|
||||
subtitle:
|
||||
'Top 10 Personen, die an DFG-Projekten der ausgewählten Institution beteiligt sind. Die Zahl zeigt, an wie vielen DFG-Projekten die jeweilige Person beteiligt ist.',
|
||||
icon: DFG_ICON,
|
||||
entries: this.statistics()?.projects ?? [],
|
||||
stripAuthorTitle: true,
|
||||
},
|
||||
{
|
||||
title: 'News',
|
||||
subtitle:
|
||||
'Top 10 Personen der ausgewählten Institution, die in Nachrichten genannt werden. Die Zahl zeigt, in wie vielen Nachrichten die jeweilige Person vorkommt.',
|
||||
icon: NEWS_ICON,
|
||||
entries: this.statistics()?.news ?? [],
|
||||
},
|
||||
]);
|
||||
|
||||
readonly visibleDatasets = computed(() =>
|
||||
this.loading()
|
||||
? this.datasets()
|
||||
: this.datasets().filter((dataset) => dataset.entries.length > 0),
|
||||
);
|
||||
|
||||
readonly shouldDisplay = computed(
|
||||
() =>
|
||||
this.loading() ||
|
||||
this.error() ||
|
||||
this.datasets().some((dataset) => dataset.entries.length > 0),
|
||||
);
|
||||
}
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
import { Component, Input, OnChanges, effect, inject } from '@angular/core';
|
||||
import { EChartsOption } from 'echarts';
|
||||
import { NgxEchartsDirective } from 'ngx-echarts';
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
import { ChartThemeService } from '../../../../shared/services/chart-theme.service';
|
||||
|
||||
import { DfgProjectTopic } from '../dashboard-statistics.service';
|
||||
import { DfgProjectTopic } from '../../dashboard-statistics.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dfg-topic-donut',
|
||||
+2
-2
@@ -1,13 +1,13 @@
|
||||
import { Component, Input, OnChanges, effect, inject } from '@angular/core';
|
||||
import { EChartsOption } from 'echarts';
|
||||
import { NgxEchartsDirective } from 'ngx-echarts';
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
import { ChartThemeService } from '../../../../shared/services/chart-theme.service';
|
||||
|
||||
import {
|
||||
BmbfProjectStatusStatistics,
|
||||
DfgProjectStatusStatistics,
|
||||
EuProjectStatusStatistics,
|
||||
} from '../dashboard-statistics.service';
|
||||
} from '../../dashboard-statistics.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-eu-project-status-chart',
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
@if (shouldDisplay()) {
|
||||
<section class="topic-heatmap-section">
|
||||
<header class="topic-heatmap-header">
|
||||
<div>
|
||||
<h2>{{ sourceLabel() }}-Projekt-Topics</h2>
|
||||
<p>
|
||||
Gematchte {{ sourceLabel() }}-Projekte nach Field, Subfield und Topic.
|
||||
Ein Klick auf ein Topic zeigt die zugehörigen Keywords.
|
||||
</p>
|
||||
</div>
|
||||
@if (projectTopics(); as topics) {
|
||||
<p class="topic-summary">
|
||||
{{ topics.matched_project_count | number }} von
|
||||
{{ topics.project_count | number }} Projekten gematcht
|
||||
</p>
|
||||
}
|
||||
</header>
|
||||
|
||||
@if (loading()) {
|
||||
<div class="topic-heatmap-loading" role="status" aria-live="polite">
|
||||
<app-loading
|
||||
[text]="sourceLabel() + '-Topics werden geladen …'"
|
||||
[icon]="loadingIcon"
|
||||
size="72"
|
||||
diameter="72" />
|
||||
</div>
|
||||
} @else if (error()) {
|
||||
<p class="statistics-error">
|
||||
Die {{ sourceLabel() }}-Topic-Treemap konnte nicht geladen werden.
|
||||
</p>
|
||||
} @else {
|
||||
<app-topic-treemap
|
||||
[data]="treemap()"
|
||||
[selectedNodeId]="selectedNodeId()"
|
||||
[countLabel]="sourceLabel() + '-Projekte'"
|
||||
[showCountInTooltip]="false"
|
||||
(selectedNodeIdChange)="selectedNodeId.set($event)"
|
||||
(topicSelect)="openTopic($event)" />
|
||||
}
|
||||
</section>
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.topic-heatmap-section {
|
||||
margin-bottom: 2.5rem;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-card-bg);
|
||||
}
|
||||
|
||||
.topic-heatmap-header {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
h2,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0.35rem;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.topic-summary {
|
||||
flex: 0 0 auto;
|
||||
color: var(--sg-text-muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.topic-heatmap-loading {
|
||||
display: grid;
|
||||
min-height: 25rem;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.statistics-error {
|
||||
color: var(--sg-error);
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
import { DecimalPipe } from '@angular/common';
|
||||
import { Component, computed, inject, input, model } from '@angular/core';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { ACCOUNT_TREE_ICON } from '../../../../shared/ui/icons';
|
||||
import { LoadingComponent } from '../../../../shared/ui/loading/loading.component';
|
||||
import { TopicTreemapComponent } from '../../../../shared/ui/topic-treemap/topic-treemap.component';
|
||||
import {
|
||||
TopicTreemapData,
|
||||
TopicTreemapTopicSelect,
|
||||
} from '../../../../shared/ui/topic-treemap/topic-treemap.models';
|
||||
import {
|
||||
BundProjectTopics,
|
||||
DfgProjectTopics,
|
||||
EuProjectTopics,
|
||||
} from '../../dashboard-statistics.service';
|
||||
import {
|
||||
TopicWordCloudDialogComponent,
|
||||
TopicWordCloudDialogData,
|
||||
} from '../topic-wordcloud-dialog/topic-wordcloud-dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-project-topics',
|
||||
imports: [DecimalPipe, LoadingComponent, TopicTreemapComponent],
|
||||
templateUrl: './project-topics.component.html',
|
||||
styleUrl: './project-topics.component.scss',
|
||||
})
|
||||
export class ProjectTopicsComponent {
|
||||
readonly source = input.required<'eu' | 'bund' | 'dfg'>();
|
||||
readonly projectTopics = input<
|
||||
EuProjectTopics | BundProjectTopics | DfgProjectTopics
|
||||
>();
|
||||
readonly treemap = input<TopicTreemapData>();
|
||||
readonly loading = input(false);
|
||||
readonly error = input(false);
|
||||
readonly selectedNodeId = model<string>();
|
||||
|
||||
readonly loadingIcon = ACCOUNT_TREE_ICON;
|
||||
readonly sourceLabel = computed(() => {
|
||||
if (this.source() === 'eu') return 'EU';
|
||||
if (this.source() === 'dfg') return 'DFG';
|
||||
return 'BUND';
|
||||
});
|
||||
readonly shouldDisplay = computed(
|
||||
() => this.loading() || this.error() || Boolean(this.projectTopics()),
|
||||
);
|
||||
|
||||
private readonly dialog = inject(MatDialog);
|
||||
|
||||
openTopic(topic: TopicTreemapTopicSelect): void {
|
||||
const projectTopic = this.projectTopics()?.topics.find(
|
||||
(entry) => entry.id === topic.topicId,
|
||||
);
|
||||
if (!projectTopic) return;
|
||||
|
||||
this.dialog.open<TopicWordCloudDialogComponent, TopicWordCloudDialogData>(
|
||||
TopicWordCloudDialogComponent,
|
||||
{
|
||||
width: '85vw',
|
||||
maxWidth: '92vw',
|
||||
data: {
|
||||
...topic,
|
||||
source: this.source(),
|
||||
words: projectTopic.keywords.map((keyword) => ({
|
||||
id: keyword.name,
|
||||
name: keyword.name,
|
||||
count: keyword.project_count,
|
||||
})),
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
<article class="top-authors-chart">
|
||||
<h3><mat-icon>{{ dataset().icon }}</mat-icon>{{ dataset().title }}</h3>
|
||||
<p class="top-authors-chart-subtitle">{{ dataset().subtitle }}</p>
|
||||
|
||||
@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-name author-link"
|
||||
[routerLink]="['/person', entry.id, 'overview']"
|
||||
[appComponentTooltip]="AuthorTooltipComponent"
|
||||
[tooltipInputs]="{ authorId: entry.id }"
|
||||
tooltipMaxWidth="500px"
|
||||
[title]="authorDisplayName(entry)">
|
||||
{{ authorDisplayName(entry) }}
|
||||
</a>
|
||||
} @else {
|
||||
<span class="author-name" [title]="authorDisplayName(entry)">
|
||||
{{ authorDisplayName(entry) }}
|
||||
</span>
|
||||
}
|
||||
<strong>{{ entry.count | number }}</strong>
|
||||
</div>
|
||||
<div class="author-bar-track">
|
||||
<span
|
||||
class="author-bar-fill"
|
||||
[style.width.%]="authorBarWidth(entry.count)"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
} @empty {
|
||||
<p class="empty-chart">
|
||||
{{ loading() ? 'Wird geladen …' : 'Keine Daten vorhanden.' }}
|
||||
</p>
|
||||
}
|
||||
</article>
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.top-authors-chart {
|
||||
height: 100%;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-card-bg);
|
||||
|
||||
h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin: 0;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
.top-authors-chart-subtitle {
|
||||
margin: 0.35rem 0 1rem;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.author-bar-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
margin-top: 0.7rem;
|
||||
}
|
||||
|
||||
.author-rank {
|
||||
flex: 0 0 1.4rem;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.8rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.author-bar-content {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.author-bar-label {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 0.25rem;
|
||||
font-size: 0.85rem;
|
||||
|
||||
.author-name {
|
||||
overflow: hidden;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-weight: 600;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.author-link {
|
||||
overflow: hidden;
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
border-radius: 2px;
|
||||
outline: 2px solid var(--sg-card-hover-border);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.author-bar-track {
|
||||
overflow: hidden;
|
||||
height: 7px;
|
||||
border-radius: 999px;
|
||||
background: var(--sg-border);
|
||||
}
|
||||
|
||||
.author-bar-fill {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: var(--sg-blue-highlight);
|
||||
transition: width 220ms ease;
|
||||
}
|
||||
|
||||
.empty-chart {
|
||||
margin: 2rem 0;
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
import { DecimalPipe } from '@angular/common';
|
||||
import { Component, input } from '@angular/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { ComponentTooltipDirective } from '../../../../directives/component-tooltip.directive';
|
||||
import { AppAuthorTooltipComponent } from '../../../../shared/ui/app-author-tooltip/app-author-tooltip.component';
|
||||
import { TopAuthor } from '../../dashboard-statistics.service';
|
||||
|
||||
export interface TopAuthorDataset {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
icon: string;
|
||||
entries: TopAuthor[];
|
||||
stripAuthorTitle?: boolean;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-top-author-chart',
|
||||
imports: [
|
||||
DecimalPipe,
|
||||
MatIconModule,
|
||||
RouterLink,
|
||||
ComponentTooltipDirective,
|
||||
],
|
||||
templateUrl: './top-author-chart.component.html',
|
||||
styleUrl: './top-author-chart.component.scss',
|
||||
})
|
||||
export class TopAuthorChartComponent {
|
||||
readonly dataset = input.required<TopAuthorDataset>();
|
||||
readonly loading = input(false);
|
||||
readonly AuthorTooltipComponent = AppAuthorTooltipComponent;
|
||||
|
||||
authorBarWidth(count: number): number {
|
||||
const maximum = Math.max(
|
||||
...this.dataset().entries.map((entry) => entry.count),
|
||||
1,
|
||||
);
|
||||
return (count / maximum) * 100;
|
||||
}
|
||||
|
||||
authorDisplayName(entry: TopAuthor): string {
|
||||
if (!this.dataset().stripAuthorTitle) return entry.name;
|
||||
|
||||
return (
|
||||
entry.name
|
||||
.replace(
|
||||
/^(?:(?:(?:apl\.\s*)?prof(?:essor)?\.?|priv\.-doz\.?|pd|dr\.?)\s+)+/i,
|
||||
'',
|
||||
)
|
||||
.trim() || entry.name
|
||||
);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -64,7 +64,7 @@
|
||||
<span
|
||||
class="topic-context-icon topic-context-icon--topic"
|
||||
aria-hidden="true">
|
||||
<mat-icon>{{ LABEL_ICON }}</mat-icon>
|
||||
<mat-icon>{{ TOPIC_ICON }}</mat-icon>
|
||||
</span>
|
||||
<span class="topic-context-copy">
|
||||
<span class="topic-context-label">Topic</span>
|
||||
+4
-4
@@ -13,7 +13,7 @@ import { RouterLink } from '@angular/router';
|
||||
import {
|
||||
DashboardStatisticsService,
|
||||
TopicWordCloudWord,
|
||||
} from '../dashboard-statistics.service';
|
||||
} from '../../dashboard-statistics.service';
|
||||
import {
|
||||
ACCOUNT_TREE_ICON,
|
||||
CATEGORY_ICON,
|
||||
@@ -21,12 +21,12 @@ import {
|
||||
CLOSE_ICON,
|
||||
CLOUD_OFF_ICON,
|
||||
HOURGLASS_ICON,
|
||||
LABEL_ICON,
|
||||
MANAGE_SEARCH_ICON,
|
||||
SEARCH_ICON,
|
||||
SEARCH_OFF_ICON,
|
||||
TOPIC_ICON,
|
||||
TUNE_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
} from '../../../../shared/ui/icons';
|
||||
|
||||
export interface TopicWordCloudDialogData {
|
||||
topicId: string;
|
||||
@@ -64,7 +64,7 @@ export class TopicWordCloudDialogComponent {
|
||||
readonly CATEGORY_ICON = CATEGORY_ICON;
|
||||
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
|
||||
readonly ACCOUNT_TREE_ICON = ACCOUNT_TREE_ICON;
|
||||
readonly LABEL_ICON = LABEL_ICON;
|
||||
readonly TOPIC_ICON = TOPIC_ICON;
|
||||
readonly HOURGLASS_ICON = HOURGLASS_ICON;
|
||||
readonly CLOUD_OFF_ICON = CLOUD_OFF_ICON;
|
||||
readonly TUNE_ICON = TUNE_ICON;
|
||||
@@ -1,576 +1,91 @@
|
||||
<div class="dashboard-wrapper">
|
||||
<section class="dashboard-period-filter" aria-label="Dashboard-Zeitraum">
|
||||
<div class="dashboard-period-presets">
|
||||
<button
|
||||
type="button"
|
||||
[class.active]="dashboardPeriodMode === 'all_time'"
|
||||
(click)="setDashboardPeriodMode('all_time')">
|
||||
Alle Zeiten
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
[class.active]="dashboardPeriodMode === 'last_10_years'"
|
||||
(click)="setDashboardPeriodMode('last_10_years')">
|
||||
Letzte 10 Jahre
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
[class.active]="dashboardPeriodMode === 'last_5_years'"
|
||||
(click)="setDashboardPeriodMode('last_5_years')">
|
||||
Letzte 5 Jahre
|
||||
</button>
|
||||
</div>
|
||||
<div class="dashboard-period-slider">
|
||||
<app-year-range-slider
|
||||
[minYear]="topicTreemapMinYear"
|
||||
[maxYear]="topicTreemapMaxYear"
|
||||
[(startYear)]="dashboardFromYear"
|
||||
[(endYear)]="dashboardToYear"
|
||||
(startYearChange)="onDashboardPeriodRangeChange()"
|
||||
(endYearChange)="onDashboardPeriodRangeChange()">
|
||||
</app-year-range-slider>
|
||||
</div>
|
||||
<mat-form-field
|
||||
class="dashboard-institution-filter"
|
||||
appearance="outline"
|
||||
subscriptSizing="dynamic">
|
||||
<mat-label>Institution</mat-label>
|
||||
<mat-select
|
||||
[value]="selectedDashboardInstitutionId"
|
||||
[disabled]="
|
||||
dashboardInstitutionsLoading || dashboardInstitutions.length === 0
|
||||
"
|
||||
(selectionChange)="onDashboardInstitutionChange($event.value)">
|
||||
<mat-option value="all">Alle Institutionen</mat-option>
|
||||
@for (institution of dashboardInstitutions; track institution.id) {
|
||||
<mat-option [value]="institution.id">
|
||||
{{ institution.display_name }}
|
||||
</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</section>
|
||||
<app-dashboard-filter
|
||||
[periodMode]="dashboard.periodMode"
|
||||
[minYear]="dashboard.minYear"
|
||||
[maxYear]="dashboard.maxYear"
|
||||
[(startYear)]="dashboard.fromYear"
|
||||
[(endYear)]="dashboard.toYear"
|
||||
[institutions]="dashboard.institutions"
|
||||
[institutionsLoading]="dashboard.institutionsLoading"
|
||||
[selectedInstitutionId]="dashboard.selectedInstitutionId"
|
||||
(periodModeSelected)="setDashboardPeriodMode($event)"
|
||||
(periodRangeChanged)="onDashboardPeriodRangeChange()"
|
||||
(institutionSelected)="onDashboardInstitutionChange($event)" />
|
||||
|
||||
<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'
|
||||
"
|
||||
matTooltip="Anzahl der Publikationen im ausgewählten Zeitraum"
|
||||
matTooltipPosition="above">
|
||||
<div class="statistics-icon statistics-icon--publications">
|
||||
<mat-icon>{{ MENU_BOOK_ICON }}</mat-icon>
|
||||
</div>
|
||||
<div>
|
||||
<span>Publikationen</span>
|
||||
<strong>
|
||||
{{
|
||||
isStatisticLoading('publications')
|
||||
? '…'
|
||||
: ((statistics?.publications | number) ?? '–')
|
||||
}}
|
||||
</strong>
|
||||
</div>
|
||||
</a>
|
||||
<app-dashboard-statistics-grid
|
||||
[statistics]="dashboard.statistics"
|
||||
[loading]="dashboard.statisticLoading"
|
||||
[institutions]="dashboard.institutions"
|
||||
[selectedInstitutionId]="dashboard.selectedInstitutionId"
|
||||
[periodMode]="dashboard.periodMode"
|
||||
[fromYear]="dashboard.fromYear"
|
||||
[toYear]="dashboard.toYear" />
|
||||
|
||||
<a
|
||||
class="statistics-card"
|
||||
routerLink="/persons"
|
||||
[queryParams]="personListQueryParams()"
|
||||
[attr.aria-label]="'Personen von ' + organizationName() + ' anzeigen'"
|
||||
matTooltip="Anzahl der Personen im ausgewählten Zeitraum"
|
||||
matTooltipPosition="above">
|
||||
<div class="statistics-icon statistics-icon--persons">
|
||||
<mat-icon>{{ GROUPS_ICON }}</mat-icon>
|
||||
</div>
|
||||
<div>
|
||||
<span>Personen</span>
|
||||
<strong>
|
||||
{{
|
||||
isStatisticLoading('persons')
|
||||
? '…'
|
||||
: ((statistics?.persons | number) ?? '–')
|
||||
}}
|
||||
</strong>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="statistics-card"
|
||||
[routerLink]="['/institution', institutionRouteId(), 'patents']"
|
||||
[class.disabled]="!institutionRouteId()"
|
||||
[attr.aria-disabled]="!institutionRouteId()"
|
||||
[attr.aria-label]="'Patente von ' + organizationName() + ' anzeigen'"
|
||||
matTooltip="Anzahl der Patente im ausgewählten Zeitraum"
|
||||
matTooltipPosition="above">
|
||||
<div class="statistics-icon statistics-icon--patents">
|
||||
<mat-icon>{{ patentIcon }}</mat-icon>
|
||||
</div>
|
||||
<div>
|
||||
<span>Patente</span>
|
||||
<strong>
|
||||
{{
|
||||
isStatisticLoading('patents')
|
||||
? '…'
|
||||
: ((statistics?.patents | number) ?? '–')
|
||||
}}
|
||||
</strong>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="statistics-card"
|
||||
routerLink="/projects"
|
||||
[queryParams]="{ selected_project_types: 'eu' }"
|
||||
aria-label="EU-Projekte anzeigen"
|
||||
matTooltip="Anzahl der laufenden, abgeschlossenen und kommenden EU-Projekte im ausgewählten Zeitraum"
|
||||
matTooltipPosition="above">
|
||||
<div class="statistics-icon statistics-icon--eu-projects">
|
||||
<mat-icon>{{ PUBLIC_ICON }}</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"
|
||||
matTooltip="Anzahl der laufenden, abgeschlossenen und kommenden Bund-Projekte im ausgewählten Zeitraum"
|
||||
matTooltipPosition="above">
|
||||
<div class="statistics-icon statistics-icon--bund-projects">
|
||||
<mat-icon>{{ ACCOUNT_BALANCE_ICON }}</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"
|
||||
matTooltip="Anzahl der laufenden, abgeschlossenen und kommenden DFG-Projekte im ausgewählten Zeitraum"
|
||||
matTooltipPosition="above">
|
||||
<div class="statistics-icon statistics-icon--dfg-projects">
|
||||
<mat-icon>{{ SCIENCE_ICON }}</mat-icon>
|
||||
</div>
|
||||
<div>
|
||||
<span>DFG-Projekte</span>
|
||||
<strong>
|
||||
{{
|
||||
isStatisticLoading('dfg_projects')
|
||||
? '…'
|
||||
: ((statistics?.dfg_projects | number) ?? '–')
|
||||
}}
|
||||
</strong>
|
||||
</div>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
@if (statisticsError) {
|
||||
@if (dashboard.statisticsError) {
|
||||
<p class="statistics-error">Die Kennzahlen konnten nicht geladen werden.</p>
|
||||
}
|
||||
|
||||
<section
|
||||
class="dashboard-institution-tabs"
|
||||
aria-label="Institutionen für Analysebereiche">
|
||||
<h2>Institution auswählen</h2>
|
||||
<div class="dashboard-institution-tab-bar">
|
||||
<button
|
||||
type="button"
|
||||
class="dashboard-institution-tab-arrow"
|
||||
[class.is-hidden]="!canScrollAnalyticalInstitutionTabsLeft"
|
||||
[disabled]="!canScrollAnalyticalInstitutionTabsLeft"
|
||||
aria-label="Vorherige Institutionen anzeigen"
|
||||
(click)="scrollAnalyticalInstitutionTabs(-1)">
|
||||
<mat-icon>{{ CHEVRON_LEFT_ICON }}</mat-icon>
|
||||
</button>
|
||||
<div
|
||||
#analyticalInstitutionTabList
|
||||
class="dashboard-institution-tab-list sg-tab-nav"
|
||||
role="tablist"
|
||||
(scroll)="updateAnalyticalInstitutionTabScrollState()">
|
||||
@for (institution of dashboardInstitutions; track institution.id) {
|
||||
<button
|
||||
type="button"
|
||||
role="tab"
|
||||
[attr.aria-selected]="
|
||||
selectedAnalyticalInstitutionId === institution.id
|
||||
"
|
||||
[class.active]="selectedAnalyticalInstitutionId === institution.id"
|
||||
(click)="onAnalyticalInstitutionChange(institution.id)">
|
||||
{{ institution.display_name }}
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
class="dashboard-institution-tab-arrow"
|
||||
[class.is-hidden]="!canScrollAnalyticalInstitutionTabsRight"
|
||||
[disabled]="!canScrollAnalyticalInstitutionTabsRight"
|
||||
aria-label="Weitere Institutionen anzeigen"
|
||||
(click)="scrollAnalyticalInstitutionTabs(1)">
|
||||
<mat-icon>{{ CHEVRON_RIGHT_ICON }}</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
@if (dashboardInstitutionsError) {
|
||||
<p class="statistics-error">
|
||||
Die Institutionen konnten nicht geladen werden.
|
||||
</p>
|
||||
}
|
||||
</section>
|
||||
<app-dashboard-institution-tabs
|
||||
[institutions]="dashboard.institutions"
|
||||
[selectedInstitutionId]="selectedAnalyticalInstitutionId"
|
||||
[error]="dashboard.institutionsError"
|
||||
(institutionSelected)="onAnalyticalInstitutionChange($event)" />
|
||||
|
||||
<app-dashboard-project-status
|
||||
[active]="!!selectedAnalyticalInstitutionId"
|
||||
[euStatuses]="dashboard.euProjectStatuses"
|
||||
[bundStatuses]="dashboard.bmbfProjectStatuses"
|
||||
[dfgStatuses]="dashboard.dfgProjectStatuses"
|
||||
[euLoading]="dashboard.euProjectStatusesLoading"
|
||||
[bundLoading]="dashboard.bmbfProjectStatusesLoading"
|
||||
[dfgLoading]="dashboard.dfgProjectStatusesLoading"
|
||||
[euError]="dashboard.euProjectStatusesError"
|
||||
[bundError]="dashboard.bmbfProjectStatusesError"
|
||||
[dfgError]="dashboard.dfgProjectStatusesError" />
|
||||
|
||||
@if (selectedAnalyticalInstitutionId) {
|
||||
@if (
|
||||
euProjectStatusesLoading ||
|
||||
bmbfProjectStatusesLoading ||
|
||||
dfgProjectStatusesLoading ||
|
||||
euProjectStatusesError ||
|
||||
bmbfProjectStatusesError ||
|
||||
dfgProjectStatusesError ||
|
||||
(euProjectStatuses && bmbfProjectStatuses && dfgProjectStatuses)
|
||||
) {
|
||||
<section class="topic-heatmap-section">
|
||||
<header class="topic-heatmap-header">
|
||||
<div>
|
||||
<h2>Projektstatus nach Fördergeber</h2>
|
||||
<p>
|
||||
Laufende, kommende und abgeschlossene EU-, Bund- und DFG-Projekte
|
||||
Ihrer Organisation.
|
||||
</p>
|
||||
</div>
|
||||
@if (euProjectStatuses && bmbfProjectStatuses && dfgProjectStatuses) {
|
||||
<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>
|
||||
<span>
|
||||
DFG:
|
||||
{{
|
||||
dfgProjectStatuses.ongoing +
|
||||
dfgProjectStatuses.upcoming +
|
||||
dfgProjectStatuses.completed | number
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
</header>
|
||||
|
||||
@if (
|
||||
euProjectStatusesLoading ||
|
||||
bmbfProjectStatusesLoading ||
|
||||
dfgProjectStatusesLoading
|
||||
) {
|
||||
<div class="project-status-loading" role="status" aria-live="polite">
|
||||
<app-loading
|
||||
text="Projektstatus wird geladen …"
|
||||
[icon]="STACKED_BAR_CHART_ICON"
|
||||
size="64"
|
||||
diameter="64"></app-loading>
|
||||
</div>
|
||||
} @else if (
|
||||
euProjectStatusesError &&
|
||||
bmbfProjectStatusesError &&
|
||||
dfgProjectStatusesError
|
||||
) {
|
||||
<p class="statistics-error">
|
||||
Der Status der EU-, Bund- und DFG-Projekte konnte nicht geladen
|
||||
werden.
|
||||
</p>
|
||||
} @else if (
|
||||
euProjectStatuses && bmbfProjectStatuses && dfgProjectStatuses
|
||||
) {
|
||||
@if (
|
||||
euProjectStatusesError ||
|
||||
bmbfProjectStatusesError ||
|
||||
dfgProjectStatusesError
|
||||
) {
|
||||
<p class="statistics-error">
|
||||
Projektstatusdaten für {{ failedProjectStatusSources() }} konnten
|
||||
nicht geladen werden. Die übrigen Daten werden weiterhin
|
||||
angezeigt.
|
||||
</p>
|
||||
}
|
||||
<app-eu-project-status-chart
|
||||
[statuses]="euProjectStatuses"
|
||||
[bmbfStatuses]="bmbfProjectStatuses"
|
||||
[dfgStatuses]="dfgProjectStatuses"></app-eu-project-status-chart>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
<app-dashboard-field-treemap
|
||||
[treemap]="dashboard.topicTreemap"
|
||||
[loading]="dashboard.topicTreemapLoading"
|
||||
[error]="dashboard.topicTreemapError"
|
||||
[(selectedNodeId)]="selectedTopicTreemapNode"
|
||||
[periodMode]="dashboard.periodMode"
|
||||
[fromYear]="dashboard.fromYear"
|
||||
[toYear]="dashboard.toYear"
|
||||
[institutionId]="selectedAnalyticalInstitutionId"
|
||||
(selectedNodeIdChange)="onTopicTreemapNodeChange()" />
|
||||
|
||||
@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>
|
||||
</header>
|
||||
<app-project-topics
|
||||
source="dfg"
|
||||
[projectTopics]="dashboard.dfgProjectTopics"
|
||||
[treemap]="dashboard.dfgTopicTreemap"
|
||||
[loading]="dashboard.dfgTopicsLoading"
|
||||
[error]="dashboard.dfgTopicsError"
|
||||
[(selectedNodeId)]="selectedDfgTopicTreemapNode"
|
||||
(selectedNodeIdChange)="onDfgTopicTreemapNodeChange()" />
|
||||
|
||||
@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_ICON"
|
||||
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-treemap
|
||||
[data]="topicTreemap"
|
||||
[selectedNodeId]="selectedTopicTreemapNode"
|
||||
(selectedNodeIdChange)="onTopicTreemapNodeChange($event)"
|
||||
(topicSelect)="onTopicTreemapTopicSelect($event)">
|
||||
</app-topic-treemap>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
<app-project-topics
|
||||
source="eu"
|
||||
[projectTopics]="dashboard.euProjectTopics"
|
||||
[treemap]="dashboard.euTopicTreemap"
|
||||
[loading]="dashboard.euTopicsLoading"
|
||||
[error]="dashboard.euTopicsError"
|
||||
[(selectedNodeId)]="selectedEuTopicTreemapNode"
|
||||
(selectedNodeIdChange)="onEuTopicTreemapNodeChange()" />
|
||||
|
||||
@if (dfgTopicsLoading || dfgTopicsError || dfgProjectTopics) {
|
||||
<section class="topic-heatmap-section">
|
||||
<header class="topic-heatmap-header">
|
||||
<div>
|
||||
<h2>DFG-Projekt-Topics</h2>
|
||||
<p>
|
||||
Gematchte DFG-Projekte nach Field, Subfield und Topic. Ein Klick
|
||||
auf ein Topic zeigt die zugehörigen Keywords.
|
||||
</p>
|
||||
</div>
|
||||
@if (dfgProjectTopics) {
|
||||
<p class="dfg-topic-summary">
|
||||
{{ dfgProjectTopics.matched_project_count | number }} von
|
||||
{{ dfgProjectTopics.project_count | number }} Projekten gematcht
|
||||
</p>
|
||||
}
|
||||
</header>
|
||||
<app-project-topics
|
||||
source="bund"
|
||||
[projectTopics]="dashboard.bundProjectTopics"
|
||||
[treemap]="dashboard.bundTopicTreemap"
|
||||
[loading]="dashboard.bundTopicsLoading"
|
||||
[error]="dashboard.bundTopicsError"
|
||||
[(selectedNodeId)]="selectedBundTopicTreemapNode"
|
||||
(selectedNodeIdChange)="onBundTopicTreemapNodeChange()" />
|
||||
|
||||
@if (dfgTopicsLoading) {
|
||||
<div class="topic-heatmap-loading" role="status" aria-live="polite">
|
||||
<app-loading
|
||||
text="DFG-Topics werden geladen …"
|
||||
[icon]="ACCOUNT_TREE_ICON"
|
||||
size="72"
|
||||
diameter="72"></app-loading>
|
||||
</div>
|
||||
} @else if (dfgTopicsError) {
|
||||
<p class="statistics-error">
|
||||
Die DFG-Topic-Treemap konnte nicht geladen werden.
|
||||
</p>
|
||||
} @else {
|
||||
<app-topic-treemap
|
||||
[data]="dfgTopicTreemap"
|
||||
[selectedNodeId]="selectedDfgTopicTreemapNode"
|
||||
countLabel="DFG-Projekte"
|
||||
[showCountInTooltip]="false"
|
||||
(selectedNodeIdChange)="onDfgTopicTreemapNodeChange($event)"
|
||||
(topicSelect)="onDfgTopicTreemapTopicSelect($event)">
|
||||
</app-topic-treemap>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
|
||||
@if (euTopicsLoading || euTopicsError || euProjectTopics) {
|
||||
<section class="topic-heatmap-section">
|
||||
<header class="topic-heatmap-header">
|
||||
<div>
|
||||
<h2>EU-Projekt-Topics</h2>
|
||||
<p>
|
||||
Gematchte EU-Projekte nach Field, Subfield und Topic. Ein Klick
|
||||
auf ein Topic zeigt die zugehörigen Keywords.
|
||||
</p>
|
||||
</div>
|
||||
@if (euProjectTopics) {
|
||||
<p class="dfg-topic-summary">
|
||||
{{ euProjectTopics.matched_project_count | number }} von
|
||||
{{ euProjectTopics.project_count | number }} Projekten gematcht
|
||||
</p>
|
||||
}
|
||||
</header>
|
||||
|
||||
@if (euTopicsLoading) {
|
||||
<div class="topic-heatmap-loading" role="status" aria-live="polite">
|
||||
<app-loading
|
||||
text="EU-Topics werden geladen …"
|
||||
[icon]="ACCOUNT_TREE_ICON"
|
||||
size="72"
|
||||
diameter="72"></app-loading>
|
||||
</div>
|
||||
} @else if (euTopicsError) {
|
||||
<p class="statistics-error">
|
||||
Die EU-Topic-Treemap konnte nicht geladen werden.
|
||||
</p>
|
||||
} @else {
|
||||
<app-topic-treemap
|
||||
[data]="euTopicTreemap"
|
||||
[selectedNodeId]="selectedEuTopicTreemapNode"
|
||||
countLabel="EU-Projekte"
|
||||
[showCountInTooltip]="false"
|
||||
(selectedNodeIdChange)="onEuTopicTreemapNodeChange($event)"
|
||||
(topicSelect)="onEuTopicTreemapTopicSelect($event)">
|
||||
</app-topic-treemap>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
|
||||
@if (bundTopicsLoading || bundTopicsError || bundProjectTopics) {
|
||||
<section class="topic-heatmap-section">
|
||||
<header class="topic-heatmap-header">
|
||||
<div>
|
||||
<h2>BUND-Projekt-Topics</h2>
|
||||
<p>
|
||||
Gematchte BUND-Projekte nach Field, Subfield und Topic. Ein Klick
|
||||
auf ein Topic zeigt die zugehörigen Keywords.
|
||||
</p>
|
||||
</div>
|
||||
@if (bundProjectTopics) {
|
||||
<p class="dfg-topic-summary">
|
||||
{{ bundProjectTopics.matched_project_count | number }} von
|
||||
{{ bundProjectTopics.project_count | number }} Projekten gematcht
|
||||
</p>
|
||||
}
|
||||
</header>
|
||||
|
||||
@if (bundTopicsLoading) {
|
||||
<div class="topic-heatmap-loading" role="status" aria-live="polite">
|
||||
<app-loading
|
||||
text="BUND-Topics werden geladen …"
|
||||
[icon]="ACCOUNT_TREE_ICON"
|
||||
size="72"
|
||||
diameter="72"></app-loading>
|
||||
</div>
|
||||
} @else if (bundTopicsError) {
|
||||
<p class="statistics-error">
|
||||
Die BUND-Topic-Treemap konnte nicht geladen werden.
|
||||
</p>
|
||||
} @else {
|
||||
<app-topic-treemap
|
||||
[data]="bundTopicTreemap"
|
||||
[selectedNodeId]="selectedBundTopicTreemapNode"
|
||||
countLabel="BUND-Projekte"
|
||||
[showCountInTooltip]="false"
|
||||
(selectedNodeIdChange)="onBundTopicTreemapNodeChange($event)"
|
||||
(topicSelect)="onBundTopicTreemapTopicSelect($event)">
|
||||
</app-topic-treemap>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
|
||||
@if (topAuthorsLoading || topAuthorsError || hasTopAuthorData()) {
|
||||
<section class="top-authors-section">
|
||||
<header class="top-authors-header">
|
||||
<div>
|
||||
<h2>Top 10 Personen</h2>
|
||||
<p>
|
||||
Nach Anzahl der Works, DFG-Projekte, Patente und News Ihrer
|
||||
Organisation.
|
||||
</p>
|
||||
</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-name author-link"
|
||||
[routerLink]="authorLink(dataset, entry)"
|
||||
[queryParams]="authorQueryParams(dataset, entry)"
|
||||
[appComponentTooltip]="AuthorTooltipComponent"
|
||||
[tooltipInputs]="{ authorId: entry.id }"
|
||||
[tooltipMaxWidth]="'500px'"
|
||||
[title]="authorDisplayName(dataset, entry)">
|
||||
{{ authorDisplayName(dataset, entry) }}
|
||||
</a>
|
||||
} @else {
|
||||
<span
|
||||
class="author-name"
|
||||
[title]="authorDisplayName(dataset, entry)">
|
||||
{{ authorDisplayName(dataset, entry) }}
|
||||
</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>
|
||||
}
|
||||
<app-dashboard-top-authors
|
||||
[statistics]="dashboard.topAuthors"
|
||||
[loading]="dashboard.topAuthorsLoading"
|
||||
[error]="dashboard.topAuthorsError" />
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -2,460 +2,9 @@
|
||||
padding: 2rem;
|
||||
color: var(--sg-text);
|
||||
|
||||
.dashboard-period-filter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.dashboard-period-presets {
|
||||
display: inline-flex;
|
||||
overflow: hidden;
|
||||
flex: 0 0 auto;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 6px;
|
||||
background: var(--sg-surface);
|
||||
|
||||
button {
|
||||
padding: 0.55rem 0.8rem;
|
||||
border: 0;
|
||||
border-right: 1px solid var(--sg-border);
|
||||
background: transparent;
|
||||
color: var(--sg-text);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
|
||||
&.active {
|
||||
background: var(--sg-blue-highlight);
|
||||
color: var(--sg-card-bg);
|
||||
}
|
||||
}
|
||||
|
||||
button:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-period-slider {
|
||||
width: 280px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.dashboard-institution-filter {
|
||||
width: 280px;
|
||||
max-width: 100%;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.dashboard-institution-filter,
|
||||
.dashboard-period-slider {
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.statistics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.statistics-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
min-height: 120px;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-card-bg);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
box-shadow 160ms ease,
|
||||
transform 160ms ease;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--sg-card-hover-border);
|
||||
box-shadow: var(--sg-shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 3px solid var(--sg-card-hover-border);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
span,
|
||||
small {
|
||||
display: block;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
strong {
|
||||
display: block;
|
||||
margin: 0.2rem 0;
|
||||
color: var(--sg-text);
|
||||
font-size: clamp(1.7rem, 3vw, 2.3rem);
|
||||
line-height: 1.1;
|
||||
}
|
||||
}
|
||||
|
||||
.statistics-icon {
|
||||
display: grid;
|
||||
flex: 0 0 52px;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
place-items: center;
|
||||
border-radius: 12px;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
|
||||
&--persons {
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
&--patents {
|
||||
background: var(--sg-error-soft);
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
&--eu-projects {
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
&--bund-projects {
|
||||
background: var(--sg-warning-soft);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
&--dfg-projects {
|
||||
background: var(--sg-warning-soft);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
}
|
||||
|
||||
.statistics-error {
|
||||
margin: -1rem 0 2rem;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
.dashboard-institution-tabs {
|
||||
margin: -0.25rem 0 2rem;
|
||||
|
||||
h2 {
|
||||
margin: 0 0 0.75rem;
|
||||
font-size: 1.2rem;
|
||||
line-height: 1.25;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-institution-tab-bar {
|
||||
display: grid;
|
||||
grid-template-columns: 40px minmax(0, 1fr) 40px;
|
||||
align-items: stretch;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.dashboard-institution-tab-arrow {
|
||||
display: grid;
|
||||
width: 40px;
|
||||
height: 48px;
|
||||
padding: 0;
|
||||
place-items: center;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--sg-text-muted);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color 0.15s ease,
|
||||
background-color 0.15s ease,
|
||||
opacity 0.15s ease;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background: var(--sg-option-hover);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline-offset: -3px;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
&.is-hidden {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-institution-tab-list {
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
border-bottom: 0;
|
||||
background: transparent;
|
||||
scrollbar-width: none;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button {
|
||||
position: relative;
|
||||
flex: 0 0 auto;
|
||||
min-width: 120px;
|
||||
height: 48px;
|
||||
padding: 0 16px;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: var(--sg-text-muted);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 48px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
transition:
|
||||
color 0.15s ease,
|
||||
background-color 0.15s ease;
|
||||
|
||||
&::after {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
border-top: 3px solid transparent;
|
||||
background: transparent;
|
||||
content: '';
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--sg-option-hover);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 3px solid var(--sg-card-hover-border);
|
||||
outline-offset: -3px;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: var(--sg-blue-highlight);
|
||||
|
||||
&::after {
|
||||
border-top-color: var(--sg-blue-highlight);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.top-authors-section {
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
|
||||
.topic-heatmap-section {
|
||||
margin-bottom: 2.5rem;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-card-bg);
|
||||
}
|
||||
|
||||
.topic-heatmap-header {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
h2,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0.35rem;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.topic-heatmap-loading {
|
||||
min-height: 25rem;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.project-status-loading {
|
||||
min-height: 15rem;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.project-status-summary {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
gap: 0.5rem;
|
||||
|
||||
span {
|
||||
padding: 0.35rem 0.65rem;
|
||||
border-radius: 999px;
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.dfg-topic-summary {
|
||||
flex: 0 0 auto;
|
||||
color: var(--sg-text-muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.top-authors-header {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
h2,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0.35rem;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.top-authors-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
|
||||
&.loading {
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.top-authors-chart {
|
||||
padding: 1.25rem;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-card-bg);
|
||||
|
||||
h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin: 0 0 1rem;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
.author-bar-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
margin-top: 0.7rem;
|
||||
}
|
||||
|
||||
.author-rank {
|
||||
flex: 0 0 1.4rem;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.8rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.author-bar-content {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.author-bar-label {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 0.25rem;
|
||||
font-size: 0.85rem;
|
||||
|
||||
.author-name {
|
||||
overflow: hidden;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-weight: 600;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.author-link {
|
||||
overflow: hidden;
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
border-radius: 2px;
|
||||
outline: 2px solid var(--sg-card-hover-border);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.author-bar-track {
|
||||
overflow: hidden;
|
||||
height: 7px;
|
||||
border-radius: 999px;
|
||||
background: var(--sg-border);
|
||||
}
|
||||
|
||||
.author-bar-fill {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: var(--sg-blue-highlight);
|
||||
transition: width 220ms ease;
|
||||
}
|
||||
|
||||
.empty-chart {
|
||||
margin: 2rem 0;
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,13 @@
|
||||
export type DashboardPeriodMode =
|
||||
| 'all_time'
|
||||
| 'last_10_years'
|
||||
| 'last_5_years'
|
||||
| 'custom';
|
||||
|
||||
export type DashboardStatisticKey =
|
||||
| 'publications'
|
||||
| 'persons'
|
||||
| 'patents'
|
||||
| 'eu_projects'
|
||||
| 'bmbf_projects'
|
||||
| 'dfg_projects';
|
||||
@@ -0,0 +1,64 @@
|
||||
import { TopicTreemapData } from '../../../shared/ui/topic-treemap/topic-treemap.models';
|
||||
import {
|
||||
BundProjectTopics,
|
||||
DfgProjectTopic,
|
||||
DfgProjectTopics,
|
||||
EuProjectTopics,
|
||||
} from '../dashboard-statistics.service';
|
||||
|
||||
type ProjectTopics = DfgProjectTopics | EuProjectTopics | BundProjectTopics;
|
||||
|
||||
export function mapProjectTopicsToTreemap(
|
||||
projectTopics: ProjectTopics,
|
||||
): TopicTreemapData {
|
||||
const fields = new Map<
|
||||
string,
|
||||
Map<string, { topics: DfgProjectTopic[] }>
|
||||
>();
|
||||
|
||||
for (const topic of projectTopics.topics) {
|
||||
const fieldName = topic.field?.trim() || 'Ohne Field';
|
||||
const subfieldName = topic.subfield?.trim() || 'Ohne Subfield';
|
||||
const subfields =
|
||||
fields.get(fieldName) ??
|
||||
new Map<string, { topics: DfgProjectTopic[] }>();
|
||||
const subfield = subfields.get(subfieldName) ?? { topics: [] };
|
||||
subfield.topics.push(topic);
|
||||
subfields.set(subfieldName, subfield);
|
||||
fields.set(fieldName, subfields);
|
||||
}
|
||||
|
||||
return {
|
||||
institution_id: projectTopics.institution_id,
|
||||
organization_name: projectTopics.organization_name,
|
||||
years: [],
|
||||
fields: [...fields.entries()].map(([fieldName, subfields]) => {
|
||||
const mappedSubfields = [...subfields.entries()].map(
|
||||
([subfieldName, group]) => ({
|
||||
id: `${fieldName}::${subfieldName}`,
|
||||
name: subfieldName,
|
||||
total:
|
||||
group.topics[0]?.subfield_project_count ??
|
||||
group.topics.reduce((sum, topic) => sum + topic.project_count, 0),
|
||||
values: [],
|
||||
topics: group.topics.map((topic) => ({
|
||||
id: topic.id,
|
||||
name: topic.name,
|
||||
total: topic.project_count,
|
||||
values: [],
|
||||
})),
|
||||
}),
|
||||
);
|
||||
|
||||
return {
|
||||
id: fieldName,
|
||||
name: fieldName,
|
||||
total:
|
||||
[...subfields.values()][0]?.topics[0]?.field_project_count ??
|
||||
mappedSubfields.reduce((sum, subfield) => sum + subfield.total, 0),
|
||||
values: [],
|
||||
subfields: mappedSubfields,
|
||||
};
|
||||
}),
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,567 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { Observable, finalize } from 'rxjs';
|
||||
import { TopicTreemapData } from '../../../shared/ui/topic-treemap/topic-treemap.models';
|
||||
import {
|
||||
DashboardPeriodMode,
|
||||
DashboardStatisticKey,
|
||||
} from '../dashboard.models';
|
||||
import {
|
||||
BmbfProjectStatusStatistics,
|
||||
BundProjectTopics,
|
||||
DashboardInstitution,
|
||||
DashboardPeriodBounds,
|
||||
DashboardStatisticValue,
|
||||
DashboardStatistics,
|
||||
DashboardStatisticsService,
|
||||
DfgProjectStatusStatistics,
|
||||
DfgProjectTopics,
|
||||
EuProjectStatusStatistics,
|
||||
EuProjectTopics,
|
||||
TopAuthorStatistics,
|
||||
} from '../dashboard-statistics.service';
|
||||
import { mapProjectTopicsToTreemap } from './dashboard-topic-treemap.mapper';
|
||||
|
||||
@Injectable()
|
||||
export class DashboardFacade {
|
||||
readonly minYear = 1900;
|
||||
readonly maxYear = new Date().getFullYear();
|
||||
|
||||
periodMode: DashboardPeriodMode = 'all_time';
|
||||
fromYear = this.minYear;
|
||||
toYear = this.maxYear;
|
||||
institutions: DashboardInstitution[] = [];
|
||||
selectedInstitutionId = 'all';
|
||||
institutionsLoading = false;
|
||||
institutionsError = false;
|
||||
statistics?: Partial<DashboardStatistics>;
|
||||
statisticsLoading = false;
|
||||
statisticsError = false;
|
||||
statisticLoading: Record<DashboardStatisticKey, boolean> = {
|
||||
publications: false,
|
||||
persons: false,
|
||||
patents: false,
|
||||
eu_projects: false,
|
||||
bmbf_projects: false,
|
||||
dfg_projects: false,
|
||||
};
|
||||
statisticErrors: Record<DashboardStatisticKey, boolean> = {
|
||||
publications: false,
|
||||
persons: false,
|
||||
patents: false,
|
||||
eu_projects: false,
|
||||
bmbf_projects: false,
|
||||
dfg_projects: false,
|
||||
};
|
||||
dfgProjectTopics?: DfgProjectTopics;
|
||||
dfgTopicTreemap?: TopicTreemapData;
|
||||
dfgTopicsLoading = false;
|
||||
dfgTopicsError = false;
|
||||
euProjectTopics?: EuProjectTopics;
|
||||
euTopicTreemap?: TopicTreemapData;
|
||||
euTopicsLoading = false;
|
||||
euTopicsError = false;
|
||||
bundProjectTopics?: BundProjectTopics;
|
||||
bundTopicTreemap?: TopicTreemapData;
|
||||
bundTopicsLoading = false;
|
||||
bundTopicsError = false;
|
||||
topAuthors?: TopAuthorStatistics;
|
||||
topAuthorsLoading = false;
|
||||
topAuthorsError = false;
|
||||
topicTreemap?: TopicTreemapData;
|
||||
topicTreemapLoading = false;
|
||||
topicTreemapError = false;
|
||||
euProjectStatuses?: EuProjectStatusStatistics;
|
||||
euProjectStatusesLoading = false;
|
||||
euProjectStatusesError = false;
|
||||
bmbfProjectStatuses?: BmbfProjectStatusStatistics;
|
||||
bmbfProjectStatusesLoading = false;
|
||||
bmbfProjectStatusesError = false;
|
||||
dfgProjectStatuses?: DfgProjectStatusStatistics;
|
||||
dfgProjectStatusesLoading = false;
|
||||
dfgProjectStatusesError = false;
|
||||
|
||||
private pendingStatisticRequests = 0;
|
||||
private projectTopicsRequestId = 0;
|
||||
private analyticalRequestId = 0;
|
||||
|
||||
constructor(
|
||||
private readonly statisticsService: DashboardStatisticsService,
|
||||
private readonly route: ActivatedRoute,
|
||||
) {}
|
||||
|
||||
initialize(onInstitutionRestored: (institutionId: string) => void): void {
|
||||
this.restorePeriodState();
|
||||
this.loadStatistics();
|
||||
this.loadInstitutions(onInstitutionRestored);
|
||||
}
|
||||
|
||||
setPeriodMode(mode: DashboardPeriodMode): boolean {
|
||||
if (mode === this.periodMode) return false;
|
||||
this.periodMode = mode;
|
||||
this.applyPresetPeriod();
|
||||
return true;
|
||||
}
|
||||
|
||||
setCustomPeriod(): void {
|
||||
this.periodMode = 'custom';
|
||||
}
|
||||
|
||||
selectInstitution(institutionId: string): void {
|
||||
this.selectedInstitutionId = institutionId;
|
||||
this.loadStatistics();
|
||||
}
|
||||
|
||||
periodBounds(): DashboardPeriodBounds {
|
||||
return this.periodMode === 'all_time'
|
||||
? {}
|
||||
: { fromYear: this.fromYear, toYear: this.toYear };
|
||||
}
|
||||
|
||||
loadStatistics(): void {
|
||||
this.statisticsError = false;
|
||||
const period = this.periodBounds();
|
||||
const institutionId = this.selectedInstitutionId;
|
||||
this.loadStatistic(
|
||||
'publications',
|
||||
this.statisticsService.getPublicationCount(period, institutionId),
|
||||
);
|
||||
this.loadStatistic(
|
||||
'persons',
|
||||
this.statisticsService.getPersonCount(period, institutionId),
|
||||
);
|
||||
this.loadStatistic(
|
||||
'patents',
|
||||
this.statisticsService.getPatentCount(period, institutionId),
|
||||
);
|
||||
this.loadStatistic(
|
||||
'eu_projects',
|
||||
this.statisticsService.getEuProjectCount(period, institutionId),
|
||||
);
|
||||
this.loadStatistic(
|
||||
'bmbf_projects',
|
||||
this.statisticsService.getBmbfProjectCount(period, institutionId),
|
||||
);
|
||||
this.loadStatistic(
|
||||
'dfg_projects',
|
||||
this.statisticsService.getDfgProjectCount(period, institutionId),
|
||||
);
|
||||
}
|
||||
|
||||
loadProjectTopics(
|
||||
period: DashboardPeriodBounds,
|
||||
institutionId: string,
|
||||
): void {
|
||||
const requestId = ++this.projectTopicsRequestId;
|
||||
this.loadDfgProjectTopics(period, institutionId, requestId);
|
||||
this.loadEuProjectTopics(period, institutionId, requestId);
|
||||
this.loadBundProjectTopics(period, institutionId, requestId);
|
||||
}
|
||||
|
||||
invalidateProjectTopics(): void {
|
||||
this.projectTopicsRequestId += 1;
|
||||
this.dfgTopicsLoading = false;
|
||||
this.euTopicsLoading = false;
|
||||
this.bundTopicsLoading = false;
|
||||
}
|
||||
|
||||
loadAnalyticalData(institutionId: string): void {
|
||||
if (!institutionId) return;
|
||||
const requestId = ++this.analyticalRequestId;
|
||||
const period = this.periodBounds();
|
||||
this.euProjectStatuses = undefined;
|
||||
this.bmbfProjectStatuses = undefined;
|
||||
this.dfgProjectStatuses = undefined;
|
||||
this.loadTopAuthors(period, institutionId, requestId);
|
||||
this.loadTopicTreemap(period, institutionId, requestId);
|
||||
this.loadProjectTopics(period, institutionId);
|
||||
this.loadEuProjectStatuses(period, institutionId, requestId);
|
||||
this.loadBmbfProjectStatuses(period, institutionId, requestId);
|
||||
this.loadDfgProjectStatuses(period, institutionId, requestId);
|
||||
}
|
||||
|
||||
invalidateAnalyticalData(): void {
|
||||
this.analyticalRequestId += 1;
|
||||
this.invalidateProjectTopics();
|
||||
this.topAuthorsLoading = false;
|
||||
this.topicTreemapLoading = false;
|
||||
this.euProjectStatusesLoading = false;
|
||||
this.bmbfProjectStatusesLoading = false;
|
||||
this.dfgProjectStatusesLoading = false;
|
||||
}
|
||||
|
||||
private loadInstitutions(
|
||||
onInstitutionRestored: (institutionId: string) => void,
|
||||
): void {
|
||||
this.institutionsLoading = true;
|
||||
this.institutionsError = false;
|
||||
this.statisticsService
|
||||
.getInstitutions()
|
||||
.pipe(finalize(() => (this.institutionsLoading = false)))
|
||||
.subscribe({
|
||||
next: (institutions) => {
|
||||
this.institutions = institutions;
|
||||
const requestedInstitution =
|
||||
this.route.snapshot.queryParamMap.get('institution') ?? 'all';
|
||||
const restoredInstitution = institutions.some(
|
||||
(institution) => institution.id === requestedInstitution,
|
||||
)
|
||||
? requestedInstitution
|
||||
: 'all';
|
||||
if (restoredInstitution !== this.selectedInstitutionId) {
|
||||
this.selectedInstitutionId = restoredInstitution;
|
||||
this.loadStatistics();
|
||||
}
|
||||
onInstitutionRestored(
|
||||
restoredInstitution === 'all' ? '' : restoredInstitution,
|
||||
);
|
||||
},
|
||||
error: () => {
|
||||
this.institutions = [];
|
||||
this.institutionsError = true;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
private loadDfgProjectTopics(
|
||||
period: DashboardPeriodBounds,
|
||||
institutionId: string,
|
||||
requestId: number,
|
||||
): void {
|
||||
this.dfgTopicsLoading = true;
|
||||
this.dfgTopicsError = false;
|
||||
this.statisticsService
|
||||
.getDfgProjectTopics(period, institutionId)
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
if (requestId === this.projectTopicsRequestId) {
|
||||
this.dfgTopicsLoading = false;
|
||||
}
|
||||
}),
|
||||
)
|
||||
.subscribe({
|
||||
next: (topics) => {
|
||||
if (requestId !== this.projectTopicsRequestId) return;
|
||||
this.dfgProjectTopics = topics;
|
||||
this.dfgTopicTreemap = mapProjectTopicsToTreemap(topics);
|
||||
},
|
||||
error: () => {
|
||||
if (requestId === this.projectTopicsRequestId) {
|
||||
this.dfgTopicsError = true;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
private loadEuProjectTopics(
|
||||
period: DashboardPeriodBounds,
|
||||
institutionId: string,
|
||||
requestId: number,
|
||||
): void {
|
||||
this.euTopicsLoading = true;
|
||||
this.euTopicsError = false;
|
||||
this.statisticsService
|
||||
.getEuProjectTopics(period, institutionId)
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
if (requestId === this.projectTopicsRequestId) {
|
||||
this.euTopicsLoading = false;
|
||||
}
|
||||
}),
|
||||
)
|
||||
.subscribe({
|
||||
next: (topics) => {
|
||||
if (requestId !== this.projectTopicsRequestId) return;
|
||||
this.euProjectTopics = topics;
|
||||
this.euTopicTreemap = mapProjectTopicsToTreemap(topics);
|
||||
},
|
||||
error: () => {
|
||||
if (requestId === this.projectTopicsRequestId) {
|
||||
this.euTopicsError = true;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
private loadBundProjectTopics(
|
||||
period: DashboardPeriodBounds,
|
||||
institutionId: string,
|
||||
requestId: number,
|
||||
): void {
|
||||
this.bundTopicsLoading = true;
|
||||
this.bundTopicsError = false;
|
||||
this.statisticsService
|
||||
.getBundProjectTopics(period, institutionId)
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
if (requestId === this.projectTopicsRequestId) {
|
||||
this.bundTopicsLoading = false;
|
||||
}
|
||||
}),
|
||||
)
|
||||
.subscribe({
|
||||
next: (topics) => {
|
||||
if (requestId !== this.projectTopicsRequestId) return;
|
||||
this.bundProjectTopics = topics;
|
||||
this.bundTopicTreemap = mapProjectTopicsToTreemap(topics);
|
||||
},
|
||||
error: () => {
|
||||
if (requestId === this.projectTopicsRequestId) {
|
||||
this.bundTopicsError = true;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
private loadTopAuthors(
|
||||
period: DashboardPeriodBounds,
|
||||
institutionId: string,
|
||||
requestId: number,
|
||||
): void {
|
||||
this.topAuthorsLoading = true;
|
||||
this.topAuthorsError = false;
|
||||
this.statisticsService
|
||||
.getTopAuthors(period, institutionId)
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.topAuthorsLoading = false;
|
||||
}
|
||||
}),
|
||||
)
|
||||
.subscribe({
|
||||
next: (statistics) => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.topAuthors = statistics;
|
||||
}
|
||||
},
|
||||
error: () => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.topAuthorsError = true;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
private loadTopicTreemap(
|
||||
period: DashboardPeriodBounds,
|
||||
institutionId: string,
|
||||
requestId: number,
|
||||
): void {
|
||||
if (this.fromYear > this.toYear) {
|
||||
this.topicTreemapLoading = false;
|
||||
this.topicTreemapError = true;
|
||||
return;
|
||||
}
|
||||
this.topicTreemapLoading = true;
|
||||
this.topicTreemapError = false;
|
||||
this.statisticsService
|
||||
.getTopicTreemap(period.fromYear, period.toYear, institutionId)
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.topicTreemapLoading = false;
|
||||
}
|
||||
}),
|
||||
)
|
||||
.subscribe({
|
||||
next: (treemap) => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.topicTreemap = treemap;
|
||||
}
|
||||
},
|
||||
error: () => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.topicTreemapError = true;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
private loadEuProjectStatuses(
|
||||
period: DashboardPeriodBounds,
|
||||
institutionId: string,
|
||||
requestId: number,
|
||||
): void {
|
||||
this.euProjectStatusesLoading = true;
|
||||
this.euProjectStatusesError = false;
|
||||
this.statisticsService
|
||||
.getEuProjectStatuses(period, institutionId)
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.euProjectStatusesLoading = false;
|
||||
}
|
||||
}),
|
||||
)
|
||||
.subscribe({
|
||||
next: (statuses) => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.euProjectStatuses = statuses;
|
||||
}
|
||||
},
|
||||
error: () => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.euProjectStatusesError = true;
|
||||
this.euProjectStatuses = this.emptyProjectStatuses(institutionId);
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
private loadBmbfProjectStatuses(
|
||||
period: DashboardPeriodBounds,
|
||||
institutionId: string,
|
||||
requestId: number,
|
||||
): void {
|
||||
this.bmbfProjectStatusesLoading = true;
|
||||
this.bmbfProjectStatusesError = false;
|
||||
this.statisticsService
|
||||
.getBmbfProjectStatuses(period, institutionId)
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.bmbfProjectStatusesLoading = false;
|
||||
}
|
||||
}),
|
||||
)
|
||||
.subscribe({
|
||||
next: (statuses) => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.bmbfProjectStatuses = statuses;
|
||||
}
|
||||
},
|
||||
error: () => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.bmbfProjectStatusesError = true;
|
||||
this.bmbfProjectStatuses = this.emptyProjectStatuses(institutionId);
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
private loadDfgProjectStatuses(
|
||||
period: DashboardPeriodBounds,
|
||||
institutionId: string,
|
||||
requestId: number,
|
||||
): void {
|
||||
this.dfgProjectStatusesLoading = true;
|
||||
this.dfgProjectStatusesError = false;
|
||||
this.statisticsService
|
||||
.getDfgProjectStatuses(period, institutionId)
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.dfgProjectStatusesLoading = false;
|
||||
}
|
||||
}),
|
||||
)
|
||||
.subscribe({
|
||||
next: (statuses) => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.dfgProjectStatuses = statuses;
|
||||
}
|
||||
},
|
||||
error: () => {
|
||||
if (requestId === this.analyticalRequestId) {
|
||||
this.dfgProjectStatusesError = true;
|
||||
this.dfgProjectStatuses = this.emptyProjectStatuses(institutionId);
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
private emptyProjectStatuses(
|
||||
institutionId: string,
|
||||
): EuProjectStatusStatistics {
|
||||
const institution = this.institutions.find(({ id }) => id === institutionId);
|
||||
return {
|
||||
institution_id: institutionId,
|
||||
organization_name: institution?.display_name ?? '',
|
||||
ongoing: 0,
|
||||
upcoming: 0,
|
||||
completed: 0,
|
||||
};
|
||||
}
|
||||
|
||||
private restorePeriodState(): void {
|
||||
const params = this.route.snapshot.queryParamMap;
|
||||
const mode = params.get('period');
|
||||
if (
|
||||
mode === 'all_time' ||
|
||||
mode === 'last_10_years' ||
|
||||
mode === 'last_5_years' ||
|
||||
mode === 'custom'
|
||||
) {
|
||||
this.periodMode = mode;
|
||||
}
|
||||
this.applyPresetPeriod();
|
||||
if (this.periodMode !== 'all_time') {
|
||||
this.fromYear = this.parseYear(params.get('fromYear'), this.fromYear);
|
||||
this.toYear = this.parseYear(params.get('toYear'), this.toYear);
|
||||
}
|
||||
if (this.fromYear > this.toYear) this.fromYear = this.toYear;
|
||||
}
|
||||
|
||||
private applyPresetPeriod(): void {
|
||||
if (this.periodMode === 'all_time') {
|
||||
this.fromYear = this.minYear;
|
||||
this.toYear = this.maxYear;
|
||||
} else if (this.periodMode === 'last_10_years') {
|
||||
this.fromYear = this.maxYear - 9;
|
||||
this.toYear = this.maxYear;
|
||||
} else if (this.periodMode === 'last_5_years') {
|
||||
this.fromYear = this.maxYear - 4;
|
||||
this.toYear = this.maxYear;
|
||||
}
|
||||
}
|
||||
|
||||
private parseYear(value: string | null, fallback: number): number {
|
||||
const year = Number(value);
|
||||
return Number.isInteger(year) && year >= this.minYear && year <= this.maxYear
|
||||
? year
|
||||
: fallback;
|
||||
}
|
||||
|
||||
private loadStatistic(
|
||||
key: DashboardStatisticKey,
|
||||
request: Observable<DashboardStatisticValue>,
|
||||
): void {
|
||||
this.statisticLoading[key] = true;
|
||||
this.statisticErrors[key] = false;
|
||||
this.pendingStatisticRequests += 1;
|
||||
this.statisticsLoading = true;
|
||||
request
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
this.statisticLoading[key] = false;
|
||||
this.pendingStatisticRequests -= 1;
|
||||
this.statisticsLoading = this.pendingStatisticRequests > 0;
|
||||
}),
|
||||
)
|
||||
.subscribe({
|
||||
next: (statistic) => this.applyStatisticValue(key, statistic),
|
||||
error: () => {
|
||||
this.statisticErrors[key] = true;
|
||||
this.statisticsError = true;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
private applyStatisticValue(
|
||||
key: DashboardStatisticKey,
|
||||
statistic: DashboardStatisticValue,
|
||||
): void {
|
||||
const nextStatistics = {
|
||||
...(this.statistics ?? {}),
|
||||
institution_id: statistic.institution_id,
|
||||
organization_name: statistic.organization_name,
|
||||
[key]: statistic.value,
|
||||
};
|
||||
nextStatistics.projects =
|
||||
(nextStatistics.eu_projects ?? 0) +
|
||||
(nextStatistics.bmbf_projects ?? 0) +
|
||||
(nextStatistics.dfg_projects ?? 0);
|
||||
this.statistics = nextStatistics;
|
||||
}
|
||||
}
|
||||
@@ -147,19 +147,6 @@
|
||||
) {
|
||||
<p class="patent-detail-preview">{{ abstractPreview }}</p>
|
||||
}
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="patent-detail-action"
|
||||
(click)="openDetail()">
|
||||
<span class="patent-detail-action__label"
|
||||
>Patentdetails anzeigen</span
|
||||
>
|
||||
<mat-icon aria-hidden="true">{{ CHEVRON_RIGHT_ICON }}</mat-icon>
|
||||
</button>
|
||||
<p class="patent-detail-hint">
|
||||
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
|
||||
</p>
|
||||
</div>
|
||||
} @else {
|
||||
<div class="patent-detail overview">
|
||||
|
||||
@@ -261,45 +261,6 @@ app-query-param-paginator {
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.patent-detail-action {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
margin-top: 16px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 0.15s,
|
||||
background 0.15s,
|
||||
box-shadow 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--sg-blue-highlight);
|
||||
background: var(--sg-primary-soft);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.patent-detail-hint {
|
||||
margin: 8px 0 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.patent-full-detail {
|
||||
flex: 1;
|
||||
border: 1px solid var(--sg-border);
|
||||
|
||||
@@ -19,7 +19,6 @@ import { AppAuthorTooltipComponent } from '../../shared/ui/app-author-tooltip/ap
|
||||
import { PatentTableComponent } from '../../shared/ui/patent-table/patent-table.component';
|
||||
import { SourceFilterComponent } from '../../shared/ui/source-filter/source-filter.component';
|
||||
import {
|
||||
CHEVRON_RIGHT_ICON,
|
||||
FILTER_ICON,
|
||||
PATENT_ICON,
|
||||
RULE_ICON,
|
||||
@@ -53,7 +52,6 @@ export class InstitutionPatentsComponent implements OnInit {
|
||||
readonly RULE_ICON = RULE_ICON;
|
||||
readonly FILTER_ICON = FILTER_ICON;
|
||||
readonly SORT_ICON = SORT_ICON;
|
||||
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
|
||||
|
||||
readonly AuthorTooltipComponent = AppAuthorTooltipComponent;
|
||||
private route = inject(ActivatedRoute);
|
||||
@@ -155,11 +153,6 @@ export class InstitutionPatentsComponent implements OnInit {
|
||||
this.updateQueryParams();
|
||||
}
|
||||
|
||||
openDetail(): void {
|
||||
if (!this.selectedPatent) return;
|
||||
this.router.navigate(['/patent', this.selectedPatent.patent_id]);
|
||||
}
|
||||
|
||||
onPatentPageChange(event: PageEvent): void {
|
||||
this.pageIndex = event.pageIndex;
|
||||
this.pageSize = event.pageSize;
|
||||
|
||||
+1
-2
@@ -11,7 +11,6 @@ import { DehydratedInstitution, Institution } from '../../../../api';
|
||||
import { CountryFlagComponent } from '../../../../shared/ui/country-flag/country-flag.component';
|
||||
import { AppInstitutionChipComponent } from '../../../../shared/ui/app-institution-chip/app-institution-chip.component';
|
||||
import {
|
||||
APARTMENT_ICON,
|
||||
BUSINESS_ICON,
|
||||
CITATION_ICON,
|
||||
FUNDING_ICON,
|
||||
@@ -126,7 +125,7 @@ export class InstitutionOverviewComponent {
|
||||
return (
|
||||
INSTITUTION_TYPE_MAP[typeKey] ?? {
|
||||
label: 'Institution',
|
||||
icon: APARTMENT_ICON,
|
||||
icon: INSTITUTION_ICON,
|
||||
badgeClass: 'type-other',
|
||||
}
|
||||
);
|
||||
|
||||
@@ -206,7 +206,7 @@
|
||||
matTooltipPosition="above"
|
||||
[disabled]="row.status === 'running' || row.status === 'stopping'"
|
||||
(click)="runNow(row)">
|
||||
<mat-icon>{{ PLAY_ARROW_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PLAY_ICON }}</mat-icon>
|
||||
</button>
|
||||
<button
|
||||
mat-icon-button
|
||||
|
||||
@@ -64,7 +64,7 @@ import {
|
||||
DESCRIPTION_ICON,
|
||||
EDIT_CALENDAR_ICON,
|
||||
EDIT_ICON,
|
||||
PLAY_ARROW_ICON,
|
||||
PLAY_ICON,
|
||||
REFRESH_ICON,
|
||||
STOP_ICON,
|
||||
} from '../../shared/ui/icons';
|
||||
@@ -92,7 +92,7 @@ export class JobsComponent implements OnInit {
|
||||
readonly ADD_ICON = ADD_ICON;
|
||||
readonly REFRESH_ICON = REFRESH_ICON;
|
||||
readonly EDIT_ICON = EDIT_ICON;
|
||||
readonly PLAY_ARROW_ICON = PLAY_ARROW_ICON;
|
||||
readonly PLAY_ICON = PLAY_ICON;
|
||||
readonly STOP_ICON = STOP_ICON;
|
||||
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
|
||||
readonly EDIT_CALENDAR_ICON = EDIT_CALENDAR_ICON;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Eindeutiger Anzeigename des Jobs, z.B. „News-Themen-Mapping (Testlauf)“."
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
@if (form.controls.name.invalid) {
|
||||
<mat-error>Bitte einen Namen eingeben.</mat-error>
|
||||
@@ -28,7 +28,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Wird beim Start direkt im Container ausgeführt — wie in einem Terminal, z.B. „python sync.py --update-keywords --target-index docker-job_test“. Leer = Standard-Befehl des Images."
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
</mat-form-field>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Docker-Image für den Job. Tippen filtert die aus Nexus verfügbaren Images; du kannst auch einen eigenen Wert eingeben. Images aus unserer Registry (docker.nes.uni-due.de) erhalten die INSE-Zugangsdaten (Elasticsearch/LLM) automatisch, fremde Images nicht."
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
@if (form.controls.image.invalid && form.controls.image.touched) {
|
||||
<mat-error>Bitte ein Image auswählen oder eingeben.</mat-error>
|
||||
@@ -63,7 +63,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Freitext für die Job-Tabelle: Was macht der Job, was sollte man vor dem Start wissen?"
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
</mat-form-field>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Reine Anzeige-Info in der Tabelle. In welchen Index der Job wirklich schreibt, bestimmt allein der Befehl (z.B. --target-index / --output-index)."
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
</mat-form-field>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Zusätzliche Umgebungsvariablen für den Container, eine pro Zeile im Format KEY=value. Das Standard-Image bekommt die INSE-Zugangsdaten (Elasticsearch/LLM) automatisch — hier ist nur Spezielles nötig."
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
<mat-hint>Eine Variable pro Zeile im Format KEY=value.</mat-hint>
|
||||
@if (form.controls.env.hasError('invalidEnv')) {
|
||||
|
||||
@@ -15,7 +15,7 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { BackgroundJobTask, BackgroundJobsService } from '../../../api';
|
||||
import { ADD_ICON, INFO_OUTLINE_ICON } from '../../../shared/ui/icons';
|
||||
import { ADD_ICON, HELP_ICON } from '../../../shared/ui/icons';
|
||||
|
||||
const ENV_LINE_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*=.*$/;
|
||||
|
||||
@@ -37,7 +37,7 @@ const ENV_LINE_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*=.*$/;
|
||||
standalone: true,
|
||||
})
|
||||
export class TaskCreateDialogComponent implements OnInit {
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly ADD_ICON = ADD_ICON;
|
||||
|
||||
private readonly dialogRef =
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Eindeutiger Anzeigename des Jobs, z.B. „News-Themen-Mapping (Testlauf)“."
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
@if (form.controls.name.invalid) {
|
||||
<mat-error>Bitte einen Namen eingeben.</mat-error>
|
||||
@@ -28,7 +28,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Wird beim Start direkt im Container ausgeführt — wie in einem Terminal, z.B. „python sync.py --update-keywords --target-index docker-job_test“. Leer = Standard-Befehl des Images."
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
</mat-form-field>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Docker-Image für den Job. Tippen filtert die aus Nexus verfügbaren Images; du kannst auch einen eigenen Wert eingeben. Images aus unserer Registry (docker.nes.uni-due.de) erhalten die INSE-Zugangsdaten (Elasticsearch/LLM) automatisch, fremde Images nicht."
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
@if (form.controls.image.invalid && form.controls.image.touched) {
|
||||
<mat-error>Bitte ein Image auswählen oder eingeben.</mat-error>
|
||||
@@ -63,7 +63,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Freitext für die Job-Tabelle: Was macht der Job, was sollte man vor dem Start wissen?"
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
</mat-form-field>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Reine Anzeige-Info in der Tabelle. In welchen Index der Job wirklich schreibt, bestimmt allein der Befehl (z.B. --target-index / --output-index)."
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
</mat-form-field>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
matSuffix
|
||||
class="field-info"
|
||||
matTooltip="Zusätzliche Umgebungsvariablen für den Container, eine pro Zeile im Format KEY=value. Das Standard-Image bekommt die INSE-Zugangsdaten (Elasticsearch/LLM) automatisch — hier ist nur Spezielles nötig."
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
<mat-hint>Eine Variable pro Zeile im Format KEY=value.</mat-hint>
|
||||
@if (form.controls.env.hasError('invalidEnv')) {
|
||||
|
||||
@@ -19,7 +19,7 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { BackgroundJobTask, BackgroundJobsService } from '../../../api';
|
||||
import { INFO_OUTLINE_ICON, SAVE_ICON } from '../../../shared/ui/icons';
|
||||
import { HELP_ICON, SAVE_ICON } from '../../../shared/ui/icons';
|
||||
|
||||
const ENV_LINE_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*=.*$/;
|
||||
|
||||
@@ -45,7 +45,7 @@ export interface TaskEditDialogData {
|
||||
standalone: true,
|
||||
})
|
||||
export class TaskEditDialogComponent implements OnInit {
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly SAVE_ICON = SAVE_ICON;
|
||||
|
||||
private readonly dialogRef =
|
||||
|
||||
-13
@@ -81,19 +81,6 @@
|
||||
@if (getAbstractPreview(match.patent.abstract); as abstractPreview) {
|
||||
<p class="patent-detail-preview">{{ abstractPreview }}</p>
|
||||
}
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="patent-detail-action"
|
||||
(click)="openDetail()">
|
||||
<span class="patent-detail-action__label"
|
||||
>Patentdetails anzeigen</span
|
||||
>
|
||||
<mat-icon aria-hidden="true">{{ CHEVRON_RIGHT_ICON }}</mat-icon>
|
||||
</button>
|
||||
<p class="patent-detail-hint">
|
||||
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
|
||||
</p>
|
||||
</div>
|
||||
} @else {
|
||||
<div class="patent-detail overview">
|
||||
|
||||
-45
@@ -266,51 +266,6 @@ app-query-param-paginator {
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.patent-detail-action {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
margin-top: 12px;
|
||||
padding: 10px 12px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: var(--sg-primary);
|
||||
color: var(--sg-card-bg);
|
||||
margin-top: 16px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid #bdd4ff;
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
|
||||
color: #0b63ce;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 0.15s,
|
||||
background 0.15s,
|
||||
box-shadow 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: #0b63ce;
|
||||
background: #f0f6ff;
|
||||
box-shadow: 0 2px 8px rgba(11, 99, 206, 0.12);
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.patent-detail-hint {
|
||||
margin: 8px 0 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
color: #888;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.patents-content {
|
||||
flex-direction: column;
|
||||
|
||||
+2
-24
@@ -1,16 +1,8 @@
|
||||
import {
|
||||
Component,
|
||||
computed,
|
||||
inject,
|
||||
input,
|
||||
output,
|
||||
signal,
|
||||
} from '@angular/core';
|
||||
import { Component, computed, input, output, signal } from '@angular/core';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { PageEvent } from '@angular/material/paginator';
|
||||
import { Router } from '@angular/router';
|
||||
import { PatentEntry } from '../../../api/model/patentEntry';
|
||||
import { KeywordPatentMatch } from '../../../api/model/keywordPatentMatch';
|
||||
import { LoadingComponent } from '../../../shared/ui/loading/loading.component';
|
||||
@@ -28,12 +20,7 @@ import {
|
||||
SourceFilterComponent,
|
||||
SourceFilterValue,
|
||||
} from '../../../shared/ui/source-filter/source-filter.component';
|
||||
import {
|
||||
CHEVRON_RIGHT_ICON,
|
||||
FILTER_ICON,
|
||||
PATENT_ICON,
|
||||
SORT_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
import { FILTER_ICON, PATENT_ICON, SORT_ICON } from '../../../shared/ui/icons';
|
||||
|
||||
export type PatentSourceFilter = SourceFilterValue;
|
||||
export type PatentSortColumn = 'title' | 'publication_year' | 'source';
|
||||
@@ -68,9 +55,6 @@ export class KeywordsPatentsComponent {
|
||||
readonly PATENT_ICON = PATENT_ICON;
|
||||
readonly FILTER_ICON = FILTER_ICON;
|
||||
readonly SORT_ICON = SORT_ICON;
|
||||
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
|
||||
|
||||
private readonly router = inject(Router);
|
||||
|
||||
readonly matches = input<KeywordPatentMatch[]>([]);
|
||||
readonly totalCount = input<number>(0);
|
||||
@@ -162,12 +146,6 @@ export class KeywordsPatentsComponent {
|
||||
this.selectedMatch.set(item);
|
||||
}
|
||||
|
||||
openDetail(): void {
|
||||
const match = this.selectedMatch();
|
||||
if (!match) return;
|
||||
void this.router.navigate(['/patent', match.patent.patent_id]);
|
||||
}
|
||||
|
||||
formatDate(date: string | null | undefined): string {
|
||||
return formatPatentDate(date);
|
||||
}
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@
|
||||
<p class="results-hint">Lädt…</p>
|
||||
} @else if (authors().length === 0) {
|
||||
<div class="results-placeholder">
|
||||
<mat-icon>{{ GROUPS_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PERSONS_ICON }}</mat-icon>
|
||||
<h2>Keine Autoren gefunden</h2>
|
||||
<p>Passe die Keywords oder die Gewichtung an.</p>
|
||||
</div>
|
||||
@@ -77,7 +77,7 @@
|
||||
appearance="outline"
|
||||
class="filter-field"
|
||||
subscriptSizing="dynamic">
|
||||
<mat-icon matPrefix>{{ ARTICLE_ICON }}</mat-icon>
|
||||
<mat-icon matPrefix>{{ PUBLICATION_ICON }}</mat-icon>
|
||||
<mat-label>Art der Work</mat-label>
|
||||
<mat-select
|
||||
multiple
|
||||
|
||||
+7
-7
@@ -37,18 +37,18 @@ import {
|
||||
|
||||
import { SearchResultsStateService } from '../search-results-state.service';
|
||||
import {
|
||||
ARTICLE_ICON,
|
||||
BUSINESS_ICON,
|
||||
CITATION_ICON,
|
||||
CLOSE_ICON,
|
||||
GROUPS_ICON,
|
||||
INSIGHTS_ICON,
|
||||
LINK_ICON,
|
||||
OVERVIEW_ICON,
|
||||
PATENT_ICON,
|
||||
PERSONS_ICON,
|
||||
PUBLICATION_ICON,
|
||||
RESTART_ICON,
|
||||
SEARCH_ICON,
|
||||
TRENDING_UP_ICON,
|
||||
VISIBILITY_ICON,
|
||||
} from '../../../../shared/ui/icons';
|
||||
|
||||
@Component({
|
||||
@@ -73,10 +73,10 @@ import {
|
||||
styleUrl: './persons-results.component.scss',
|
||||
})
|
||||
export class KeywordsToPersonsResultsComponent implements OnInit {
|
||||
readonly GROUPS_ICON = GROUPS_ICON;
|
||||
readonly PERSONS_ICON = PERSONS_ICON;
|
||||
readonly INSIGHTS_ICON = INSIGHTS_ICON;
|
||||
readonly RESTART_ICON = RESTART_ICON;
|
||||
readonly ARTICLE_ICON = ARTICLE_ICON;
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly SEARCH_ICON = SEARCH_ICON;
|
||||
readonly CLOSE_ICON = CLOSE_ICON;
|
||||
readonly LINK_ICON = LINK_ICON;
|
||||
@@ -155,7 +155,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
|
||||
{
|
||||
key: 'works',
|
||||
label: 'Works',
|
||||
icon: ARTICLE_ICON,
|
||||
icon: PUBLICATION_ICON,
|
||||
description:
|
||||
'Gewichtet die Anzahl und Relevanz wissenschaftlicher Arbeiten.',
|
||||
defaultValue: 0.5,
|
||||
@@ -182,7 +182,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
|
||||
{
|
||||
key: 'news',
|
||||
label: 'Medien-Sichtbarkeit',
|
||||
icon: VISIBILITY_ICON,
|
||||
icon: OVERVIEW_ICON,
|
||||
description:
|
||||
'Gewichtet die öffentliche Sichtbarkeit über Nennungen in Nachrichtenartikeln.',
|
||||
nameMatched: true,
|
||||
|
||||
@@ -19,7 +19,6 @@ import {
|
||||
SearchResultsStateService,
|
||||
} from './search-results-state.service';
|
||||
import {
|
||||
ARTICLE_ICON,
|
||||
ARROW_BACK_ICON,
|
||||
BAR_CHART_ICON,
|
||||
MANAGE_SEARCH_ICON,
|
||||
@@ -27,6 +26,7 @@ import {
|
||||
PATENT_ICON,
|
||||
PERSONS_ICON,
|
||||
PROJECT_ICON,
|
||||
PUBLICATION_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
import {
|
||||
LinkTabNavBarComponent,
|
||||
@@ -67,7 +67,7 @@ export class KeywordsSearchResultsComponent {
|
||||
{ path: 'persons', label: 'Personen', icon: PERSONS_ICON },
|
||||
{ path: 'projects', label: 'Projekte', icon: PROJECT_ICON },
|
||||
{ path: 'patents', label: 'Patente', icon: PATENT_ICON },
|
||||
{ path: 'works', label: 'Publikationen', icon: ARTICLE_ICON },
|
||||
{ path: 'works', label: 'Publikationen', icon: PUBLICATION_ICON },
|
||||
{ path: 'news', label: 'Nachrichten', icon: NEWS_ICON },
|
||||
{ path: 'trends', label: 'Visualisierung', icon: BAR_CHART_ICON },
|
||||
];
|
||||
@@ -115,7 +115,7 @@ export class KeywordsSearchResultsComponent {
|
||||
},
|
||||
{
|
||||
label: 'Publikationen',
|
||||
icon: ARTICLE_ICON,
|
||||
icon: PUBLICATION_ICON,
|
||||
path: 'works',
|
||||
queryParams: {
|
||||
keywords: this.state.payload()?.keywords?.join(','),
|
||||
|
||||
@@ -87,14 +87,14 @@
|
||||
class="accordion-header"
|
||||
(click)="openPanel = openPanel === 'persons' ? null : 'persons'"
|
||||
[attr.aria-expanded]="openPanel === 'persons'">
|
||||
<mat-icon>{{ GROUP_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PERSONS_ICON }}</mat-icon>
|
||||
<span class="accordion-title">Erwähnte Personen</span>
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
matTooltip="Personen, die im Text erwähnt wurden. Klicke auf eine der UDE angehörige Person, um zu ihrem Profil zu gelangen."
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
@if (article.authors?.length) {
|
||||
<span class="count-badge">{{ article.authors!.length }}</span>
|
||||
@@ -170,14 +170,14 @@
|
||||
class="accordion-header"
|
||||
(click)="openPanel = openPanel === 'topics' ? null : 'topics'"
|
||||
[attr.aria-expanded]="openPanel === 'topics'">
|
||||
<mat-icon>{{ LABEL_ICON }}</mat-icon>
|
||||
<mat-icon>{{ TOPIC_ICON }}</mat-icon>
|
||||
<span class="accordion-title">Themen & Schlüsselwörter</span>
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
matTooltip="Themen, die mit den extrahierten Schlüsselwörtern des Artikels assoziiert werden. Klicke auf ein Schlüsselwort, um zum hervorgehobenen Begriff im Text zu springen."
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
@if (article.topics?.length) {
|
||||
<span class="count-badge">{{ article.topics!.length }}</span>
|
||||
|
||||
@@ -27,14 +27,13 @@ import {
|
||||
CHEVRON_RIGHT_ICON,
|
||||
EXPAND_LESS_ICON,
|
||||
EXPAND_MORE_ICON,
|
||||
GROUP_ICON,
|
||||
HELP_ICON,
|
||||
INFO_OUTLINE_ICON,
|
||||
LABEL_ICON,
|
||||
NEWS_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
PERSONS_ICON,
|
||||
SEARCH_ICON,
|
||||
SEARCH_OFF_ICON,
|
||||
TOPIC_ICON,
|
||||
} from '../../shared/ui/icons';
|
||||
|
||||
interface MentionedPerson {
|
||||
@@ -86,13 +85,12 @@ export class NewsDetailComponent implements OnInit {
|
||||
readonly CANCEL_ICON = CANCEL_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
|
||||
readonly GROUP_ICON = GROUP_ICON;
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
readonly PERSONS_ICON = PERSONS_ICON;
|
||||
readonly EXPAND_MORE_ICON = EXPAND_MORE_ICON;
|
||||
readonly EXPAND_LESS_ICON = EXPAND_LESS_ICON;
|
||||
readonly CHEVRON_LEFT_ICON = CHEVRON_LEFT_ICON;
|
||||
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
|
||||
readonly LABEL_ICON = LABEL_ICON;
|
||||
readonly TOPIC_ICON = TOPIC_ICON;
|
||||
readonly SEARCH_ICON = SEARCH_ICON;
|
||||
|
||||
@ViewChild('articleBody', { read: ElementRef })
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@
|
||||
<div class="institution-list" aria-live="polite">
|
||||
@for (entry of institutions(); track entry.id) {
|
||||
<article class="institution-item">
|
||||
<mat-icon class="institution-icon">{{ APARTMENT_ICON }}</mat-icon>
|
||||
<mat-icon class="institution-icon">{{ INSTITUTION_ICON }}</mat-icon>
|
||||
<div class="institution-details">
|
||||
<strong>{{ entry.institution.display_name }}</strong>
|
||||
<span class="institution-id">{{ entry.id }}</span>
|
||||
|
||||
+2
-2
@@ -45,8 +45,8 @@ import {
|
||||
} from '../../../api';
|
||||
import { InstitutionRemovalDialogComponent } from './institution-removal-dialog.component';
|
||||
import {
|
||||
APARTMENT_ICON,
|
||||
CLOSE_ICON,
|
||||
INSTITUTION_ICON,
|
||||
SAVE_ICON,
|
||||
SEARCH_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
@@ -117,7 +117,7 @@ const cleanInstitutionId = (id: string): string =>
|
||||
})
|
||||
export class OrganizationDialogComponent {
|
||||
readonly SEARCH_ICON = SEARCH_ICON;
|
||||
readonly APARTMENT_ICON = APARTMENT_ICON;
|
||||
readonly INSTITUTION_ICON = INSTITUTION_ICON;
|
||||
readonly CLOSE_ICON = CLOSE_ICON;
|
||||
readonly SAVE_ICON = SAVE_ICON;
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
|
||||
<div class="metrics" aria-label="Patentkennzahlen">
|
||||
<div>
|
||||
<mat-icon>{{ GROUPS_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PERSONS_ICON }}</mat-icon>
|
||||
<strong>{{ patent.inventors?.length ?? 0 }}</strong>
|
||||
<span>Erfinder</span>
|
||||
</div>
|
||||
@@ -112,7 +112,7 @@
|
||||
@if (patent.assignees?.length) {
|
||||
<section class="card">
|
||||
<div class="section-title">
|
||||
<mat-icon>{{ ACCOUNT_BALANCE_ICON }}</mat-icon>
|
||||
<mat-icon>{{ FUNDING_ICON }}</mat-icon>
|
||||
<h2>Anmelder</h2>
|
||||
<span>{{ patent.assignees?.length ?? 0 }}</span>
|
||||
</div>
|
||||
@@ -154,7 +154,7 @@
|
||||
<section
|
||||
class="card classification-card-section classification-card-section--ipc">
|
||||
<div class="section-title">
|
||||
<mat-icon>{{ LABEL_ICON }}</mat-icon>
|
||||
<mat-icon>{{ TOPIC_ICON }}</mat-icon>
|
||||
<h2>Klassifikation (IPC)</h2>
|
||||
</div>
|
||||
<div class="classification-cards">
|
||||
@@ -228,7 +228,7 @@
|
||||
} @else if (patent.ipc?.length) {
|
||||
<section class="card">
|
||||
<div class="section-title">
|
||||
<mat-icon>{{ LABEL_ICON }}</mat-icon>
|
||||
<mat-icon>{{ TOPIC_ICON }}</mat-icon>
|
||||
<h2>Klassifikation (IPC)</h2>
|
||||
</div>
|
||||
<div class="tags">
|
||||
@@ -243,7 +243,7 @@
|
||||
<section
|
||||
class="card classification-card-section classification-card-section--cpc">
|
||||
<div class="section-title">
|
||||
<mat-icon>{{ LABEL_ICON }}</mat-icon>
|
||||
<mat-icon>{{ TOPIC_ICON }}</mat-icon>
|
||||
<h2>Klassifikation (CPC)</h2>
|
||||
</div>
|
||||
<div class="classification-cards">
|
||||
@@ -317,7 +317,7 @@
|
||||
} @else if (patent.cpc?.length) {
|
||||
<section class="card">
|
||||
<div class="section-title">
|
||||
<mat-icon>{{ LABEL_ICON }}</mat-icon>
|
||||
<mat-icon>{{ TOPIC_ICON }}</mat-icon>
|
||||
<h2>Klassifikation (CPC)</h2>
|
||||
</div>
|
||||
<div class="tags">
|
||||
@@ -332,7 +332,7 @@
|
||||
<aside>
|
||||
<section class="card facts-card">
|
||||
<div class="section-title">
|
||||
<mat-icon>{{ INFO_ICON }}</mat-icon>
|
||||
<mat-icon>{{ HELP_ICON }}</mat-icon>
|
||||
<h2>Patentdaten</h2>
|
||||
</div>
|
||||
<dl>
|
||||
|
||||
@@ -16,18 +16,17 @@ import {
|
||||
} from '../../resolvers/utils/topic-colors';
|
||||
import { LoadingComponent } from '../../shared/ui/loading/loading.component';
|
||||
import {
|
||||
ACCOUNT_BALANCE_ICON,
|
||||
ARROW_BACK_ICON,
|
||||
BUSINESS_ICON,
|
||||
CATEGORY_ICON,
|
||||
ENGINEERING_ICON,
|
||||
GROUPS_ICON,
|
||||
INFO_ICON,
|
||||
LABEL_ICON,
|
||||
FUNDING_ICON,
|
||||
HELP_ICON,
|
||||
LINK_ICON,
|
||||
NORTH_EAST_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
PATENT_ICON,
|
||||
PERSONS_ICON,
|
||||
SEARCH_OFF_ICON,
|
||||
SUBJECT_ICON,
|
||||
TOPIC_ICON,
|
||||
@@ -61,15 +60,14 @@ export class PatentDetailComponent implements OnInit {
|
||||
readonly PATENT_ICON = PATENT_ICON;
|
||||
readonly SEARCH_OFF_ICON = SEARCH_OFF_ICON;
|
||||
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
|
||||
readonly GROUPS_ICON = GROUPS_ICON;
|
||||
readonly PERSONS_ICON = PERSONS_ICON;
|
||||
readonly BUSINESS_ICON = BUSINESS_ICON;
|
||||
readonly CATEGORY_ICON = CATEGORY_ICON;
|
||||
readonly SUBJECT_ICON = SUBJECT_ICON;
|
||||
readonly ENGINEERING_ICON = ENGINEERING_ICON;
|
||||
readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON;
|
||||
readonly FUNDING_ICON = FUNDING_ICON;
|
||||
readonly TOPIC_ICON = TOPIC_ICON;
|
||||
readonly LABEL_ICON = LABEL_ICON;
|
||||
readonly INFO_ICON = INFO_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly LINK_ICON = LINK_ICON;
|
||||
readonly NORTH_EAST_ICON = NORTH_EAST_ICON;
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@
|
||||
mat-button
|
||||
type="button"
|
||||
(click)="selectPatent(patent); $event.stopPropagation()">
|
||||
<mat-icon>{{ INFO_ICON }}</mat-icon>
|
||||
<mat-icon>{{ HELP_ICON }}</mat-icon>
|
||||
Übersicht
|
||||
</button>
|
||||
</mat-card-actions>
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
Page,
|
||||
} from '../../shared/ui/card-search/card-search.component';
|
||||
import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component';
|
||||
import { INFO_ICON, PATENT_ICON } from '../../shared/ui/icons';
|
||||
import { HELP_ICON, PATENT_ICON } from '../../shared/ui/icons';
|
||||
|
||||
type PatentSource = 'EPO' | 'USPTO';
|
||||
|
||||
@@ -61,7 +61,7 @@ const MIN_YEAR = 1978;
|
||||
})
|
||||
export class PatentsComponent {
|
||||
readonly PATENT_ICON = PATENT_ICON;
|
||||
readonly INFO_ICON = INFO_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
|
||||
private router = inject(Router);
|
||||
private route = inject(ActivatedRoute);
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
<div class="card-body">
|
||||
@if (institution(); as inst) {
|
||||
<div class="institution-row" style="margin-bottom: 8px">
|
||||
<div class="institution-row">
|
||||
<app-institution-chip
|
||||
[institution]="inst"
|
||||
size="mini"
|
||||
@@ -58,6 +58,21 @@
|
||||
[isClickable]="true"
|
||||
[isSelected]="isInstitutionActive()"
|
||||
(handleChipClick)="institutionClick.emit($event)" />
|
||||
@if (secondaryInstitutions().length > 0) {
|
||||
<button
|
||||
type="button"
|
||||
class="more-institutions-btn"
|
||||
[appComponentTooltip]="PersonInstitutionTooltipListComponent"
|
||||
[tooltipInputs]="{ institutions: secondaryInstitutions() }"
|
||||
[attr.aria-label]="
|
||||
secondaryInstitutions().length + ' weitere Institutionen'
|
||||
">
|
||||
<mat-icon class="more-info-icon">{{ MORE_INFO_ICON }}</mat-icon>
|
||||
<span class="count-text"
|
||||
>+{{ secondaryInstitutions().length }}</span
|
||||
>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
@@ -168,6 +168,49 @@
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.institution-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.more-institutions-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
padding: 2px 6px;
|
||||
height: 24px;
|
||||
border: 1px dashed var(--sg-border-strong, rgba(0, 0, 0, 0.2));
|
||||
border-radius: 999px;
|
||||
background: var(--sg-surface-muted, transparent);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
|
||||
.more-info-icon {
|
||||
font-size: 14px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.count-text {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
border-color: var(--sg-primary);
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.topic-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, input, computed, output } from '@angular/core';
|
||||
import { Component, input, computed, output, inject } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
@@ -9,9 +9,13 @@ import { TopicChipComponent } from '../../shared/ui/topic-chip/topic-chip.compon
|
||||
import { AppInstitutionChipComponent } from '../../shared/ui/app-institution-chip/app-institution-chip.component';
|
||||
import { CareerStageChipComponent } from '../../shared/ui/career-stage-chip/career-stage-chip.component';
|
||||
import { topicHierarchyColor } from '../../resolvers/utils/topic-colors';
|
||||
import { ComponentTooltipDirective } from '../../directives/component-tooltip.directive';
|
||||
import { PersonInstitutionTooltipListComponent } from '../../shared/ui/person-institution-tooltip-list/person-institution-tooltip-list.component';
|
||||
import { AuthorAffiliationService } from '../../shared/services/author-affiliation.service';
|
||||
import {
|
||||
BOOKMARK_BORDER_ICON,
|
||||
BOOKMARK_ICON,
|
||||
MORE_INFO_ICON,
|
||||
NETWORK_ICON,
|
||||
OVERVIEW_ICON,
|
||||
PUBLICATION_ICON,
|
||||
@@ -29,6 +33,7 @@ import {
|
||||
TopicChipComponent,
|
||||
AppInstitutionChipComponent,
|
||||
CareerStageChipComponent,
|
||||
ComponentTooltipDirective,
|
||||
],
|
||||
templateUrl: './person-card.component.html',
|
||||
styleUrl: './person-card.component.scss',
|
||||
@@ -39,6 +44,12 @@ export class PersonCardComponent {
|
||||
readonly OVERVIEW_ICON = OVERVIEW_ICON;
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly NETWORK_ICON = NETWORK_ICON;
|
||||
readonly MORE_INFO_ICON = MORE_INFO_ICON;
|
||||
|
||||
readonly PersonInstitutionTooltipListComponent =
|
||||
PersonInstitutionTooltipListComponent;
|
||||
|
||||
private readonly authorAffiliationService = inject(AuthorAffiliationService);
|
||||
|
||||
person = input.required<CustomAuthor>();
|
||||
isBookmarked = input<boolean>(false);
|
||||
@@ -61,26 +72,17 @@ export class PersonCardComponent {
|
||||
});
|
||||
|
||||
institution = computed<DehydratedInstitution | undefined>(() => {
|
||||
const p = this.person();
|
||||
if (p.last_known_institutions?.[0]) {
|
||||
return p.last_known_institutions[0];
|
||||
}
|
||||
return this.authorAffiliationService.resolveInstitution(
|
||||
this.person(),
|
||||
this.activeInstitutionId(),
|
||||
);
|
||||
});
|
||||
|
||||
const affiliations = p.affiliations ?? [];
|
||||
let newestInstitution: DehydratedInstitution | undefined =
|
||||
affiliations[0]?.institution ?? undefined;
|
||||
let newestYear = -1;
|
||||
|
||||
for (const affiliation of affiliations) {
|
||||
for (const jahr of affiliation.years ?? []) {
|
||||
if (jahr > newestYear) {
|
||||
newestYear = jahr;
|
||||
newestInstitution = affiliation.institution ?? undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return newestInstitution;
|
||||
secondaryInstitutions = computed<DehydratedInstitution[]>(() => {
|
||||
return this.authorAffiliationService.resolveSecondaryInstitutions(
|
||||
this.person(),
|
||||
this.activeInstitutionId(),
|
||||
);
|
||||
});
|
||||
|
||||
isInstitutionActive = computed<boolean>(() => {
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
<app-data-table
|
||||
[columns]="columns()"
|
||||
[data]="getPagedFunders()"
|
||||
[selectedRow]="selectedFunder"
|
||||
queryParamSortKey="sortBy"
|
||||
queryParamSortDirectionKey="sortDir"
|
||||
(rowClick)="selectFunder($event)"
|
||||
@@ -153,7 +152,7 @@
|
||||
[total]="getSelectedPublicationTotal()"
|
||||
queryParamPageKey="pubPage"
|
||||
queryParamSizeKey="pubSize"
|
||||
[pageSizeOptions]="[10, 25, 50]"
|
||||
[pageSizeOptions]="[10]"
|
||||
(handlePageChange)="onPublicationPageChange($event)" />
|
||||
</div>
|
||||
} @else {
|
||||
|
||||
@@ -341,14 +341,14 @@ app-query-param-paginator {
|
||||
align-items: center;
|
||||
vertical-align: middle;
|
||||
margin-left: 6px;
|
||||
color: #1976d2;
|
||||
color: var(--sg-text-muted);
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
transition: color 0.15s ease;
|
||||
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
color: #0b4f9e;
|
||||
color: var(--sg-blue-highlight);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<h3>Interessant für</h3>
|
||||
@if (tags().length > 0) {
|
||||
<span class="interest-footnote">
|
||||
<mat-icon class="footnote-icon">{{ ARTICLE_ICON }}</mat-icon>
|
||||
<mat-icon class="footnote-icon">{{ PUBLICATION_ICON }}</mat-icon>
|
||||
Anzahl Publikationen zum Thema
|
||||
</span>
|
||||
}
|
||||
@@ -27,7 +27,7 @@
|
||||
<div class="interest-tags-loading" aria-live="polite">
|
||||
<app-loading
|
||||
text="Themen werden geladen ..."
|
||||
[icon]="INTERESTS_ICON"
|
||||
[icon]="KEYWORDS_ICON"
|
||||
[size]="48"
|
||||
[diameter]="48" />
|
||||
</div>
|
||||
@@ -47,7 +47,7 @@
|
||||
[secondaryActionLabel]="tagAction(tag)?.label ?? null"
|
||||
[secondaryActionLink]="tagAction(tag)?.link ?? null"
|
||||
[secondaryActionQueryParams]="tagAction(tag)?.queryParams ?? null"
|
||||
[countIcon]="ARTICLE_ICON"
|
||||
[countIcon]="PUBLICATION_ICON"
|
||||
descriptionTooltipTarget="button"
|
||||
(chipClick)="onTagClick(tag)">
|
||||
</app-topic-chip>
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
toggleTopicLegendSubfieldSelection,
|
||||
} from '../../resolvers/utils/topic-legend';
|
||||
|
||||
import { ARTICLE_ICON, INTERESTS_ICON } from '../../shared/ui/icons';
|
||||
import { KEYWORDS_ICON, PUBLICATION_ICON } from '../../shared/ui/icons';
|
||||
|
||||
interface InterestTag {
|
||||
id: string;
|
||||
@@ -69,8 +69,8 @@ const MAX_TAGS = 5;
|
||||
styleUrl: './person-interesting.component.scss',
|
||||
})
|
||||
export class PersonInterestingComponent implements OnInit {
|
||||
readonly ARTICLE_ICON = ARTICLE_ICON;
|
||||
readonly INTERESTS_ICON = INTERESTS_ICON;
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly KEYWORDS_ICON = KEYWORDS_ICON;
|
||||
|
||||
private static readonly legendExpandedQueryParam =
|
||||
'interesting_legend_expanded';
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
[tooltipInputs]="getFilterTopicInputs(filter.value)"
|
||||
[tooltipMaxWidth]="'500px'">
|
||||
<mat-icon class="filter-topic-chip__icon">{{
|
||||
LABEL_ICON
|
||||
TOPIC_ICON
|
||||
}}</mat-icon>
|
||||
<span class="filter-topic-chip__label">{{
|
||||
filter.value
|
||||
@@ -65,7 +65,7 @@
|
||||
<span [skText]="loading" class="active-institution-filter">
|
||||
<span class="filter-institution-chip">
|
||||
<mat-icon class="filter-institution-chip__icon">{{
|
||||
APARTMENT_ICON
|
||||
INSTITUTION_ICON
|
||||
}}</mat-icon>
|
||||
<span class="filter-institution-chip__name">{{
|
||||
institutionFilterLabel(filter)
|
||||
@@ -234,7 +234,7 @@
|
||||
<div class="filter-section">
|
||||
<h3 class="filter-section-title">Institution</h3>
|
||||
<div class="topic-search-wrapper" [class.is-loading]="loading">
|
||||
<mat-icon>{{ APARTMENT_ICON }}</mat-icon>
|
||||
<mat-icon>{{ INSTITUTION_ICON }}</mat-icon>
|
||||
<input
|
||||
type="text"
|
||||
[formControl]="institutionControl"
|
||||
|
||||
@@ -48,13 +48,13 @@ import { BookmarkService } from '../../shared/services/bookmark.service';
|
||||
import { ComponentTooltipDirective } from '../../directives/component-tooltip.directive';
|
||||
import { AppTopicTooltipComponent } from '../../shared/ui/app-topic-tooltip/app-topic-tooltip.component';
|
||||
import {
|
||||
APARTMENT_ICON,
|
||||
CLOSE_ICON,
|
||||
FILTER_ICON,
|
||||
LABEL_ICON,
|
||||
INSTITUTION_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
PERSON_SEARCH_ICON,
|
||||
SEARCH_ICON,
|
||||
TOPIC_ICON,
|
||||
} from '../../shared/ui/icons';
|
||||
|
||||
type InstitutionYearFilterMode = 'in' | 'from' | 'between';
|
||||
@@ -86,8 +86,8 @@ type InstitutionYearFilterMode = 'in' | 'from' | 'between';
|
||||
})
|
||||
export class PersonListComponent {
|
||||
readonly CLOSE_ICON = CLOSE_ICON;
|
||||
readonly LABEL_ICON = LABEL_ICON;
|
||||
readonly APARTMENT_ICON = APARTMENT_ICON;
|
||||
readonly TOPIC_ICON = TOPIC_ICON;
|
||||
readonly INSTITUTION_ICON = INSTITUTION_ICON;
|
||||
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
|
||||
readonly PERSON_SEARCH_ICON = PERSON_SEARCH_ICON;
|
||||
readonly FILTER_ICON = FILTER_ICON;
|
||||
|
||||
@@ -59,18 +59,18 @@ import {
|
||||
import { form } from '@angular/forms/signals';
|
||||
import { collaborationGraphQueryParamKeys } from '../../resolvers/collaboration-graph.resolver';
|
||||
import {
|
||||
APARTMENT_ICON,
|
||||
CALENDAR_ICON,
|
||||
ERROR_ICON,
|
||||
FILTER_ICON,
|
||||
GRAPH_ICON,
|
||||
GROUP_ICON,
|
||||
LABEL_ICON,
|
||||
INSTITUTION_ICON,
|
||||
NETWORK_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
PERSON_ICON,
|
||||
PERSONS_ICON,
|
||||
PUBLICATION_ICON,
|
||||
SEARCH_ICON,
|
||||
TOPIC_ICON,
|
||||
} from '../../shared/ui/icons';
|
||||
import {
|
||||
FilterObserver,
|
||||
@@ -216,7 +216,7 @@ export class PersonNetworkComponent implements OnInit {
|
||||
{
|
||||
id: 'maxContributors',
|
||||
queryParamKey: collaborationGraphQueryParamKeys.maxCollaborators,
|
||||
icon: GROUP_ICON,
|
||||
icon: PERSONS_ICON,
|
||||
valueFormatter: (value: string) => {
|
||||
return value ? `Höchstens ${value} Autoren` : null;
|
||||
},
|
||||
@@ -224,7 +224,7 @@ export class PersonNetworkComponent implements OnInit {
|
||||
{
|
||||
id: 'topics',
|
||||
queryParamKey: collaborationGraphQueryParamKeys.topicId,
|
||||
icon: LABEL_ICON,
|
||||
icon: TOPIC_ICON,
|
||||
valueFormatter: (value: string) => {
|
||||
const topic = this.selectedTopics().elements?.find(
|
||||
(topic) => topic.id === value,
|
||||
@@ -236,7 +236,7 @@ export class PersonNetworkComponent implements OnInit {
|
||||
{
|
||||
id: 'institutions',
|
||||
queryParamKey: collaborationGraphQueryParamKeys.institutionId,
|
||||
icon: APARTMENT_ICON,
|
||||
icon: INSTITUTION_ICON,
|
||||
valueFormatter: (value: string) => {
|
||||
const institution = this.selectedInstitutions().elements?.find(
|
||||
(inst) => inst.id === value,
|
||||
@@ -444,7 +444,7 @@ export class PersonNetworkComponent implements OnInit {
|
||||
description: 'Personen',
|
||||
},
|
||||
{
|
||||
icon: APARTMENT_ICON,
|
||||
icon: INSTITUTION_ICON,
|
||||
value: this.institutions(),
|
||||
description: 'Institutionen',
|
||||
},
|
||||
|
||||
@@ -89,19 +89,6 @@
|
||||
) {
|
||||
<p class="patent-detail-preview">{{ abstractPreview }}</p>
|
||||
}
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="patent-detail-action"
|
||||
(click)="openDetail()">
|
||||
<span class="patent-detail-action__label"
|
||||
>Patentdetails anzeigen</span
|
||||
>
|
||||
<mat-icon aria-hidden="true">{{ CHEVRON_RIGHT_ICON }}</mat-icon>
|
||||
</button>
|
||||
<p class="patent-detail-hint">
|
||||
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
|
||||
</p>
|
||||
</div>
|
||||
} @else {
|
||||
<div class="patent-detail overview">
|
||||
|
||||
@@ -238,45 +238,6 @@ app-query-param-paginator {
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.patent-detail-action {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
margin-top: 16px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 0.15s,
|
||||
background 0.15s,
|
||||
box-shadow 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--sg-blue-highlight);
|
||||
background: var(--sg-surface-soft);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.patent-detail-hint {
|
||||
margin: 8px 0 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.patent-full-detail {
|
||||
flex: 1;
|
||||
border: 1px solid var(--sg-border);
|
||||
|
||||
@@ -18,12 +18,7 @@ import { PageEvent } from '@angular/material/paginator';
|
||||
import { QueryParamInputComponent } from '../../shared/ui/query-param-input/query-param-input.component';
|
||||
import { QueryParamPaginatorComponent } from '../../shared/ui/query-param-paginator/query-param-paginator.component';
|
||||
import { PatentTableComponent } from '../../shared/ui/patent-table/patent-table.component';
|
||||
import {
|
||||
CHEVRON_RIGHT_ICON,
|
||||
FILTER_ICON,
|
||||
PATENT_ICON,
|
||||
SORT_ICON,
|
||||
} from '../../shared/ui/icons';
|
||||
import { FILTER_ICON, PATENT_ICON, SORT_ICON } from '../../shared/ui/icons';
|
||||
import { SourceFilterComponent } from '../../shared/ui/source-filter/source-filter.component';
|
||||
|
||||
type SortColumn = 'title' | 'publication_year' | 'source';
|
||||
@@ -50,7 +45,6 @@ export class PersonPatentsComponent {
|
||||
readonly PATENT_ICON = PATENT_ICON;
|
||||
readonly FILTER_ICON = FILTER_ICON;
|
||||
readonly SORT_ICON = SORT_ICON;
|
||||
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
|
||||
|
||||
private route = inject(ActivatedRoute);
|
||||
private router = inject(Router);
|
||||
@@ -174,11 +168,6 @@ export class PersonPatentsComponent {
|
||||
this.updateQueryParams();
|
||||
}
|
||||
|
||||
openDetail(): void {
|
||||
if (!this.selectedPatent) return;
|
||||
this.router.navigate(['/patent', this.selectedPatent.patent_id]);
|
||||
}
|
||||
|
||||
private applyFilter(): void {
|
||||
let patents = this.patents;
|
||||
|
||||
|
||||
@@ -28,24 +28,30 @@
|
||||
}}</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="institution-line">
|
||||
<mat-icon class="institution-icon">{{ APARTMENT_ICON }}</mat-icon>
|
||||
@if (institutionId(); as institutionId) {
|
||||
<a
|
||||
class="institution-link"
|
||||
[routerLink]="['/institution', institutionId]">
|
||||
{{ institution() }}
|
||||
</a>
|
||||
} @else {
|
||||
<p class="institution-name">{{ institution() }}</p>
|
||||
}
|
||||
@if (countryCode(); as countryCode) {
|
||||
<span class="institution-country">
|
||||
<app-country-flag [countryCode]="countryCode" [rounded]="true" />
|
||||
{{ countryCode }}
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
@if (resolvedInstitution(); as inst) {
|
||||
<div class="institution-line">
|
||||
<app-institution-chip
|
||||
[institution]="inst"
|
||||
size="normal"
|
||||
[showIcon]="true"
|
||||
[isClickable]="false" />
|
||||
@if (secondaryInstitutions().length > 0) {
|
||||
<button
|
||||
type="button"
|
||||
class="more-institutions-btn"
|
||||
[appComponentTooltip]="PersonInstitutionTooltipListComponent"
|
||||
[tooltipInputs]="{ institutions: secondaryInstitutions() }"
|
||||
[attr.aria-label]="
|
||||
secondaryInstitutions().length + ' weitere Institutionen'
|
||||
">
|
||||
<mat-icon class="more-info-icon">{{ MORE_INFO_ICON }}</mat-icon>
|
||||
<span class="count-text"
|
||||
>+{{ secondaryInstitutions().length }}</span
|
||||
>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@if (
|
||||
worksCount() !== null || citedByCount() !== null || h_index() !== null
|
||||
) {
|
||||
|
||||
@@ -99,31 +99,45 @@
|
||||
.institution-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: 8px;
|
||||
margin: 10px 0 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.institution-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
font-size: 16px;
|
||||
.more-institutions-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 3px 8px;
|
||||
height: 28px;
|
||||
border: 1px dashed var(--sg-border-strong, rgba(0, 0, 0, 0.2));
|
||||
border-radius: 999px;
|
||||
background: var(--sg-surface-muted, transparent);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.institution-name,
|
||||
.institution-link {
|
||||
margin: 0;
|
||||
color: var(--sg-text);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
}
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
|
||||
.institution-link {
|
||||
text-decoration: none;
|
||||
}
|
||||
.more-info-icon {
|
||||
font-size: 16px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.institution-link:hover {
|
||||
text-decoration: underline;
|
||||
.count-text {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
border-color: var(--sg-primary);
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.profile-main > span {
|
||||
|
||||
@@ -35,13 +35,16 @@ import {
|
||||
} from 'rxjs';
|
||||
|
||||
import { PersonInterestingComponent } from '../person-interesting/person-interesting.component';
|
||||
import { CountryFlagComponent } from '../../shared/ui/country-flag/country-flag.component';
|
||||
import { CareerStageChipComponent } from '../../shared/ui/career-stage-chip/career-stage-chip.component';
|
||||
import { WorksService } from '../../api';
|
||||
import { AppInstitutionChipComponent } from '../../shared/ui/app-institution-chip/app-institution-chip.component';
|
||||
import { ComponentTooltipDirective } from '../../directives/component-tooltip.directive';
|
||||
import { PersonInstitutionTooltipListComponent } from '../../shared/ui/person-institution-tooltip-list/person-institution-tooltip-list.component';
|
||||
import { DehydratedInstitution, WorksService } from '../../api';
|
||||
import { LoadingComponent } from '../../shared/ui/loading/loading.component';
|
||||
import { PersonBioResolved } from '../../resolvers/person-bio.resolver';
|
||||
import { PersonDataResolved } from '../../resolvers/person.resolver';
|
||||
import { BookmarkService } from '../../shared/services/bookmark.service';
|
||||
import { AuthorAffiliationService } from '../../shared/services/author-affiliation.service';
|
||||
import { collaborationGraphQueryParamKeys } from '../../resolvers/collaboration-graph.resolver';
|
||||
import { workQueryParamKeys } from '../../resolvers/work-page.resolver';
|
||||
import {
|
||||
@@ -50,13 +53,14 @@ import {
|
||||
} from '../../shared/ui/link-tab-nav-bar/link-tab-nav-bar.component';
|
||||
import {
|
||||
AI_GENERATED_ICON,
|
||||
APARTMENT_ICON,
|
||||
BOOKMARK_BORDER_ICON,
|
||||
BOOKMARK_ICON,
|
||||
BUSINESS_ICON,
|
||||
CITATION_ICON,
|
||||
COMPANY_CONNECTION_ICON,
|
||||
DESCRIPTION_ICON,
|
||||
FUNDING_ICON,
|
||||
INSTITUTION_ICON,
|
||||
MORE_INFO_ICON,
|
||||
NETWORK_ICON,
|
||||
NEWS_ICON,
|
||||
OVERVIEW_ICON,
|
||||
@@ -79,9 +83,10 @@ import {
|
||||
RouterOutlet,
|
||||
RouterModule,
|
||||
LoadingComponent,
|
||||
CountryFlagComponent,
|
||||
CareerStageChipComponent,
|
||||
LinkTabNavBarComponent,
|
||||
AppInstitutionChipComponent,
|
||||
ComponentTooltipDirective,
|
||||
],
|
||||
templateUrl: './person.component.html',
|
||||
styleUrl: './person.component.scss',
|
||||
@@ -89,7 +94,7 @@ import {
|
||||
export class PersonComponent {
|
||||
readonly BOOKMARK_ICON = BOOKMARK_ICON;
|
||||
readonly BOOKMARK_BORDER_ICON = BOOKMARK_BORDER_ICON;
|
||||
readonly APARTMENT_ICON = APARTMENT_ICON;
|
||||
readonly INSTITUTION_ICON = INSTITUTION_ICON;
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly CITATION_ICON = CITATION_ICON;
|
||||
readonly TRENDING_UP_ICON = TRENDING_UP_ICON;
|
||||
@@ -97,6 +102,10 @@ export class PersonComponent {
|
||||
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
|
||||
readonly PERSON_ICON = PERSON_ICON;
|
||||
readonly AI_GENERATED_ICON = AI_GENERATED_ICON;
|
||||
readonly MORE_INFO_ICON = MORE_INFO_ICON;
|
||||
|
||||
readonly PersonInstitutionTooltipListComponent =
|
||||
PersonInstitutionTooltipListComponent;
|
||||
|
||||
private readonly router = inject(Router);
|
||||
private readonly activatedRoute = inject(ActivatedRoute);
|
||||
@@ -104,6 +113,7 @@ export class PersonComponent {
|
||||
private readonly worksApi = inject(WorksService);
|
||||
private readonly destroyRef = inject(DestroyRef);
|
||||
readonly bookmarkService = inject(BookmarkService);
|
||||
private readonly authorAffiliationService = inject(AuthorAffiliationService);
|
||||
|
||||
canFetchGdprRelevantData = input.required<boolean>();
|
||||
|
||||
@@ -227,32 +237,15 @@ export class PersonComponent {
|
||||
readonly primaryAffiliation = computed(
|
||||
() => this.person()?.affiliations?.[0] ?? null,
|
||||
);
|
||||
readonly lastAffiliation = computed(() => {
|
||||
const affiliations = this.person()?.affiliations ?? [];
|
||||
let newestAffiliation = affiliations[0] ?? null;
|
||||
let newestYear = -1;
|
||||
|
||||
for (const affiliation of affiliations) {
|
||||
for (const jahr of affiliation.years ?? []) {
|
||||
if (jahr > newestYear) {
|
||||
newestYear = jahr;
|
||||
newestAffiliation = affiliation;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return newestAffiliation;
|
||||
});
|
||||
readonly institution = computed(
|
||||
readonly lastAffiliation = computed(
|
||||
() =>
|
||||
this.lastAffiliation()?.institution?.display_name ??
|
||||
'Unbekannte Institution',
|
||||
this.authorAffiliationService.getLatestAffiliation(this.person()) ?? null,
|
||||
);
|
||||
readonly countryCode = computed(
|
||||
() => this.lastAffiliation()?.institution?.country_code ?? null,
|
||||
readonly resolvedInstitution = computed(() =>
|
||||
this.authorAffiliationService.resolveInstitution(this.person()),
|
||||
);
|
||||
readonly institutionId = computed(
|
||||
() => this.lastAffiliation()?.institution?.id?.split('/').pop() ?? null,
|
||||
readonly secondaryInstitutions = computed<DehydratedInstitution[]>(() =>
|
||||
this.authorAffiliationService.resolveSecondaryInstitutions(this.person()),
|
||||
);
|
||||
readonly worksCount = computed(() => this.person()?.works_count ?? null);
|
||||
readonly citedByCount = computed(() => this.person()?.cited_by_count ?? null);
|
||||
@@ -354,7 +347,7 @@ export class PersonComponent {
|
||||
{
|
||||
label: 'Unternehmen',
|
||||
description: 'Unternehmen, mit denen die Person verbunden ist',
|
||||
icon: COMPANY_CONNECTION_ICON,
|
||||
icon: BUSINESS_ICON,
|
||||
path: 'company-connections',
|
||||
disabled: false,
|
||||
},
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
</div>
|
||||
<!-- @if (bundProject.project_agency) {
|
||||
<div class="agency-info" (click)="searchForAgency(bundProject.project_agency)">
|
||||
<mat-icon>{{ ACCOUNT_BALANCE_ICON }}</mat-icon>
|
||||
<mat-icon>{{ FUNDING_ICON }}</mat-icon>
|
||||
<span>{{ bundProject.project_agency_fullname || bundProject.project_agency }}</span>
|
||||
</div>
|
||||
} -->
|
||||
@@ -122,7 +122,7 @@
|
||||
@if (getAssociatedPersons().length > 0) {
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<div class="section-header">
|
||||
<mat-icon>{{ PEOPLE_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PERSONS_ICON }}</mat-icon>
|
||||
<h2>Beteiligte Personen</h2>
|
||||
<span class="count-badge">{{
|
||||
getAssociatedPersons().length
|
||||
@@ -322,7 +322,7 @@
|
||||
<!-- Projektdetails -->
|
||||
<mat-card appearance="outlined" class="card details-card">
|
||||
<div class="section-header">
|
||||
<mat-icon>{{ INFO_ICON }}</mat-icon>
|
||||
<mat-icon>{{ HELP_ICON }}</mat-icon>
|
||||
<h2>Projektdetails</h2>
|
||||
</div>
|
||||
<dl class="details-list">
|
||||
|
||||
@@ -7,7 +7,6 @@ import { BundProjectDetails } from '../../../api/model/bundProjectDetails';
|
||||
import { ProjectOaTopicsComponent } from '../../../shared/ui/project-oa-topics/project-oa-topics.component';
|
||||
import {
|
||||
ACCESS_TIME_ICON,
|
||||
ACCOUNT_BALANCE_ICON,
|
||||
ASSIGNMENT_ICON,
|
||||
BUSINESS_ICON,
|
||||
CALENDAR_ICON,
|
||||
@@ -17,11 +16,12 @@ import {
|
||||
DESCRIPTION_ICON,
|
||||
ERROR_OUTLINE_ICON,
|
||||
EVENT_BUSY_ICON,
|
||||
INFO_ICON,
|
||||
FUNDING_ICON,
|
||||
HELP_ICON,
|
||||
LOCATION_ICON,
|
||||
MORE_INFO_ICON,
|
||||
PAID_ICON,
|
||||
PEOPLE_ICON,
|
||||
PERSONS_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
|
||||
export interface InstitutionEntry {
|
||||
@@ -49,13 +49,13 @@ export class BundDetailsComponent implements OnInit {
|
||||
readonly PAID_ICON = PAID_ICON;
|
||||
readonly ASSIGNMENT_ICON = ASSIGNMENT_ICON;
|
||||
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
|
||||
readonly PEOPLE_ICON = PEOPLE_ICON;
|
||||
readonly PERSONS_ICON = PERSONS_ICON;
|
||||
readonly BUSINESS_ICON = BUSINESS_ICON;
|
||||
readonly LOCATION_ICON = LOCATION_ICON;
|
||||
readonly MORE_INFO_ICON = MORE_INFO_ICON;
|
||||
readonly INFO_ICON = INFO_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON;
|
||||
readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON;
|
||||
readonly FUNDING_ICON = FUNDING_ICON;
|
||||
readonly CATEGORY_ICON = CATEGORY_ICON;
|
||||
|
||||
private readonly route = inject(ActivatedRoute);
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
<!-- Beteiligte Personen -->
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<div class="section-header">
|
||||
<mat-icon>{{ PEOPLE_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PERSONS_ICON }}</mat-icon>
|
||||
<h2>Beteiligte Personen</h2>
|
||||
<span class="count-badge">{{ getPersonCount() }}</span>
|
||||
</div>
|
||||
@@ -184,7 +184,7 @@
|
||||
<!-- Beteiligte Institutionen -->
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<div class="section-header">
|
||||
<mat-icon>{{ BUSINESS_ICON }}</mat-icon>
|
||||
<mat-icon>{{ INSTITUTION_ICON }}</mat-icon>
|
||||
<h2>Beteiligte Institutionen</h2>
|
||||
<span class="count-badge">{{ getInstitutionCount() }}</span>
|
||||
</div>
|
||||
@@ -196,7 +196,7 @@
|
||||
searchForInstitutionName(getInstitutionName(institution))
|
||||
"
|
||||
class="institution-item">
|
||||
<mat-icon>{{ APARTMENT_ICON }}</mat-icon>
|
||||
<mat-icon>{{ INSTITUTION_ICON }}</mat-icon>
|
||||
<div class="institution-details">
|
||||
<span>{{ getInstitutionName(institution) }}</span>
|
||||
@if (getInstitutionRoleLabel(institution)) {
|
||||
@@ -264,7 +264,7 @@
|
||||
@if (getPublications().length > 0) {
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<div class="section-header">
|
||||
<mat-icon>{{ MENU_BOOK_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PUBLICATION_ICON }}</mat-icon>
|
||||
<h2>Publikationen</h2>
|
||||
<span class="count-badge">{{ getPublications().length }}</span>
|
||||
</div>
|
||||
@@ -313,7 +313,7 @@
|
||||
<!-- Projektdetails -->
|
||||
<mat-card appearance="outlined" class="card details-card">
|
||||
<div class="section-header">
|
||||
<mat-icon>{{ INFO_ICON }}</mat-icon>
|
||||
<mat-icon>{{ HELP_ICON }}</mat-icon>
|
||||
<h2>Projektdetails</h2>
|
||||
</div>
|
||||
<dl class="details-list">
|
||||
|
||||
@@ -14,7 +14,6 @@ import { DfgClassificationComponent } from '../../../shared/ui/dfg-classificatio
|
||||
import {
|
||||
ACCESS_TIME_ICON,
|
||||
ACCOUNT_TREE_ICON,
|
||||
APARTMENT_ICON,
|
||||
BUSINESS_ICON,
|
||||
CALENDAR_ICON,
|
||||
CHEVRON_RIGHT_ICON,
|
||||
@@ -24,13 +23,14 @@ import {
|
||||
EVENT_BUSY_ICON,
|
||||
FACT_CHECK_ICON,
|
||||
GAVEL_ICON,
|
||||
INFO_ICON,
|
||||
HELP_ICON,
|
||||
INSTITUTION_ICON,
|
||||
LANGUAGE_ICON,
|
||||
MENU_BOOK_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
PAID_ICON,
|
||||
PEOPLE_ICON,
|
||||
PERSONS_ICON,
|
||||
PUBLIC_ICON,
|
||||
PUBLICATION_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
|
||||
@Component({
|
||||
@@ -59,12 +59,12 @@ export class DfgDetailsComponent implements OnInit {
|
||||
readonly PUBLIC_ICON = PUBLIC_ICON;
|
||||
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
|
||||
readonly FACT_CHECK_ICON = FACT_CHECK_ICON;
|
||||
readonly PEOPLE_ICON = PEOPLE_ICON;
|
||||
readonly PERSONS_ICON = PERSONS_ICON;
|
||||
readonly BUSINESS_ICON = BUSINESS_ICON;
|
||||
readonly APARTMENT_ICON = APARTMENT_ICON;
|
||||
readonly INSTITUTION_ICON = INSTITUTION_ICON;
|
||||
readonly ACCOUNT_TREE_ICON = ACCOUNT_TREE_ICON;
|
||||
readonly MENU_BOOK_ICON = MENU_BOOK_ICON;
|
||||
readonly INFO_ICON = INFO_ICON;
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON;
|
||||
|
||||
private route = inject(ActivatedRoute);
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
class="tab-btn"
|
||||
[class.active]="activeTab === 'overview'"
|
||||
(click)="setTab('overview')">
|
||||
<mat-icon>{{ INFO_ICON }}</mat-icon>
|
||||
<mat-icon>{{ HELP_ICON }}</mat-icon>
|
||||
Übersicht
|
||||
</button>
|
||||
<button
|
||||
@@ -317,7 +317,7 @@
|
||||
<!-- Projektdetails -->
|
||||
<mat-card appearance="outlined" class="card details-card">
|
||||
<div class="section-header">
|
||||
<mat-icon>{{ INFO_ICON }}</mat-icon>
|
||||
<mat-icon>{{ HELP_ICON }}</mat-icon>
|
||||
<h2>Projektdetails</h2>
|
||||
</div>
|
||||
<dl class="details-list">
|
||||
|
||||
@@ -19,7 +19,6 @@ import { TopicChipComponent } from '../../../shared/ui/topic-chip/topic-chip.com
|
||||
import { ProjectOaTopicsComponent } from '../../../shared/ui/project-oa-topics/project-oa-topics.component';
|
||||
import {
|
||||
ACCESS_TIME_ICON,
|
||||
ARTICLE_ICON,
|
||||
ASSIGNMENT_ICON,
|
||||
ATTACH_MONEY_ICON,
|
||||
BUSINESS_ICON,
|
||||
@@ -31,10 +30,11 @@ import {
|
||||
EURO_ICON,
|
||||
EVENT_BUSY_ICON,
|
||||
GAVEL_ICON,
|
||||
INFO_ICON,
|
||||
HELP_ICON,
|
||||
LINK_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
PERSON_ICON,
|
||||
PUBLICATION_ICON,
|
||||
SCHEDULE_ICON,
|
||||
SCIENCE_ICON,
|
||||
SEARCH_ICON,
|
||||
@@ -83,7 +83,7 @@ export class EuDetailsComponent implements OnInit, OnDestroy {
|
||||
readonly ATTACH_MONEY_ICON = ATTACH_MONEY_ICON;
|
||||
readonly BUSINESS_ICON = BUSINESS_ICON;
|
||||
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
|
||||
readonly INFO_ICON = INFO_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly GAVEL_ICON = GAVEL_ICON;
|
||||
readonly TOPIC_ICON = TOPIC_ICON;
|
||||
readonly TAG_ICON = TAG_ICON;
|
||||
@@ -112,16 +112,16 @@ export class EuDetailsComponent implements OnInit, OnDestroy {
|
||||
hasDeliverables = false;
|
||||
|
||||
// Subscriptions
|
||||
private subscriptions: Subscription = new Subscription();
|
||||
private subscriptions = new Subscription();
|
||||
|
||||
// Tab configuration
|
||||
private readonly tabConfig: Record<
|
||||
TabType,
|
||||
{ label: string; icon: string; order: number }
|
||||
> = {
|
||||
overview: { label: 'Übersicht', icon: INFO_ICON, order: 0 },
|
||||
overview: { label: 'Übersicht', icon: HELP_ICON, order: 0 },
|
||||
organizations: { label: 'Organisationen', icon: BUSINESS_ICON, order: 1 },
|
||||
publications: { label: 'Publikationen', icon: ARTICLE_ICON, order: 2 },
|
||||
publications: { label: 'Publikationen', icon: PUBLICATION_ICON, order: 2 },
|
||||
iprs: { label: 'IPRs', icon: GAVEL_ICON, order: 3 },
|
||||
deliverables: { label: 'Ergebnisse', icon: ASSIGNMENT_ICON, order: 4 },
|
||||
};
|
||||
|
||||
+1
-1
@@ -110,7 +110,7 @@
|
||||
class="link-button"
|
||||
matTooltip="Publikation öffnen"
|
||||
(click)="$event.stopPropagation()">
|
||||
<mat-icon class="link-icon">{{ ARTICLE_ICON }}</mat-icon>
|
||||
<mat-icon class="link-icon">{{ PUBLICATION_ICON }}</mat-icon>
|
||||
<span class="link-label">Link</span>
|
||||
</a>
|
||||
}
|
||||
|
||||
+2
-2
@@ -22,10 +22,10 @@ import {
|
||||
} from '../../../../shared/ui/data-table/data-table.component';
|
||||
import { ChipOverflowToggleComponent } from '../../../../shared/ui/chip-overflow-toggle/chip-overflow-toggle.component';
|
||||
import {
|
||||
ARTICLE_ICON,
|
||||
DESCRIPTION_ICON,
|
||||
FOLDER_OPEN_ICON,
|
||||
LINK_ICON,
|
||||
PUBLICATION_ICON,
|
||||
} from '../../../../shared/ui/icons';
|
||||
|
||||
@Component({
|
||||
@@ -47,7 +47,7 @@ export class PublicationsTableComponent {
|
||||
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
|
||||
readonly LINK_ICON = LINK_ICON;
|
||||
readonly FOLDER_OPEN_ICON = FOLDER_OPEN_ICON;
|
||||
readonly ARTICLE_ICON = ARTICLE_ICON;
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
|
||||
private router = inject(Router);
|
||||
public paginationService = inject(PaginationService);
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
@if (loading) {
|
||||
<app-loading
|
||||
text="Publikation wird geladen..."
|
||||
[icon]="MENU_BOOK_ICON"
|
||||
[icon]="PUBLICATION_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else if (notFound || !publication) {
|
||||
@@ -89,7 +89,7 @@
|
||||
<span>Zitationen</span>
|
||||
</div>
|
||||
<div>
|
||||
<mat-icon>{{ MENU_BOOK_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PUBLICATION_ICON }}</mat-icon>
|
||||
<strong>{{
|
||||
publication.referenced_works_count ?? 0 | number
|
||||
}}</strong>
|
||||
@@ -130,14 +130,14 @@
|
||||
class="accordion-header"
|
||||
(click)="authorsExpanded = !authorsExpanded"
|
||||
[attr.aria-expanded]="authorsExpanded">
|
||||
<mat-icon>{{ GROUP_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PERSONS_ICON }}</mat-icon>
|
||||
<span class="accordion-title">Autorinnen und Autoren</span>
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
matTooltip="Autorinnen und Autoren dieser Publikation. Klicke auf eine Person, um zu ihrem Profil zu gelangen."
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
@if (authors().length) {
|
||||
<span class="count-badge">{{ authors().length }}</span>
|
||||
@@ -224,7 +224,7 @@
|
||||
@if (publication.topics?.length) {
|
||||
<section class="card">
|
||||
<div class="section-title">
|
||||
<mat-icon>{{ LABEL_ICON }}</mat-icon>
|
||||
<mat-icon>{{ TOPIC_ICON }}</mat-icon>
|
||||
<h2>Themen</h2>
|
||||
</div>
|
||||
<div class="tags">
|
||||
@@ -248,7 +248,7 @@
|
||||
@if (publication.keywords?.length) {
|
||||
<section class="card">
|
||||
<div class="section-title">
|
||||
<mat-icon>{{ INTERESTS_ICON }}</mat-icon>
|
||||
<mat-icon>{{ KEYWORDS_ICON }}</mat-icon>
|
||||
<h2>Keywords</h2>
|
||||
</div>
|
||||
<div class="tags">
|
||||
@@ -273,7 +273,7 @@
|
||||
matTooltip="Quellen und Versionen, unter denen die Publikation verfügbar ist. Klicke auf das Symbol, um die Quelle zu öffnen."
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
<span class="count-badge">{{ sources().length }}</span>
|
||||
<mat-icon class="chevron" [class.rotated]="!sourcesExpanded">{{
|
||||
@@ -332,7 +332,7 @@
|
||||
<aside>
|
||||
<section class="card facts-card">
|
||||
<div class="section-title">
|
||||
<mat-icon>{{ INFO_ICON }}</mat-icon>
|
||||
<mat-icon>{{ HELP_ICON }}</mat-icon>
|
||||
<h2>Publikationsdaten</h2>
|
||||
</div>
|
||||
<dl>
|
||||
@@ -380,14 +380,14 @@
|
||||
class="accordion-header"
|
||||
(click)="institutionsExpanded = !institutionsExpanded"
|
||||
[attr.aria-expanded]="institutionsExpanded">
|
||||
<mat-icon>{{ ACCOUNT_BALANCE_ICON }}</mat-icon>
|
||||
<mat-icon>{{ FUNDING_ICON }}</mat-icon>
|
||||
<span class="accordion-title">Institutionen</span>
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
matTooltip="Institutionen, denen die Autorinnen und Autoren angehören. Klicke auf eine Institution, um zu ihrer Seite zu gelangen."
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
<span class="count-badge">{{ institutions().length }}</span>
|
||||
<mat-icon
|
||||
@@ -469,7 +469,7 @@
|
||||
matTooltip="Förderorganisationen und Förderungen, die zu dieser Publikation beigetragen haben."
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
<span class="count-badge">{{ fundingCount() }}</span>
|
||||
<mat-icon class="chevron" [class.rotated]="!fundingExpanded">{{
|
||||
@@ -515,7 +515,7 @@
|
||||
matTooltip="Externe Links zur Publikation, z. B. DOI oder Open-Access-Version. Klicke auf einen Link, um ihn in einem neuen Tab zu öffnen."
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
>{{ INFO_OUTLINE_ICON }}</mat-icon
|
||||
>{{ HELP_ICON }}</mat-icon
|
||||
>
|
||||
<span class="count-badge">{{ externalLinks().length }}</span>
|
||||
<mat-icon class="chevron" [class.rotated]="!linksExpanded">{{
|
||||
|
||||
@@ -24,27 +24,26 @@ import { LanguageCodePipe } from '../../shared/pipes/language-code.pipe';
|
||||
import { WorkPrimaryCategoryPipe } from '../../shared/pipes/work-primary-category.pipe';
|
||||
import { ResearchProfileComponent } from './research-profile/research-profile.component';
|
||||
import {
|
||||
ACCOUNT_BALANCE_ICON,
|
||||
ARROW_BACK_ICON,
|
||||
CHEVRON_LEFT_ICON,
|
||||
CHEVRON_RIGHT_ICON,
|
||||
CITATION_ICON,
|
||||
EXPAND_MORE_ICON,
|
||||
GROUP_ICON,
|
||||
INFO_ICON,
|
||||
INFO_OUTLINE_ICON,
|
||||
INTERESTS_ICON,
|
||||
LABEL_ICON,
|
||||
FUNDING_ICON,
|
||||
HELP_ICON,
|
||||
KEYWORDS_ICON,
|
||||
LIBRARY_BOOKS_ICON,
|
||||
LINK_ICON,
|
||||
LOCK_ICON,
|
||||
LOCK_OPEN_ICON,
|
||||
MENU_BOOK_ICON,
|
||||
NORTH_EAST_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
PAID_ICON,
|
||||
PERSONS_ICON,
|
||||
PUBLICATION_ICON,
|
||||
SEARCH_OFF_ICON,
|
||||
SUBJECT_ICON,
|
||||
TOPIC_ICON,
|
||||
WARNING_ICON,
|
||||
} from '../../shared/ui/icons';
|
||||
|
||||
@@ -82,7 +81,7 @@ interface InstitutionDetail {
|
||||
})
|
||||
export class PublicationDetailComponent implements OnInit {
|
||||
readonly ARROW_BACK_ICON = ARROW_BACK_ICON;
|
||||
readonly MENU_BOOK_ICON = MENU_BOOK_ICON;
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly SEARCH_OFF_ICON = SEARCH_OFF_ICON;
|
||||
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
|
||||
readonly CITATION_ICON = CITATION_ICON;
|
||||
@@ -90,16 +89,15 @@ export class PublicationDetailComponent implements OnInit {
|
||||
readonly LOCK_OPEN_ICON = LOCK_OPEN_ICON;
|
||||
readonly WARNING_ICON = WARNING_ICON;
|
||||
readonly SUBJECT_ICON = SUBJECT_ICON;
|
||||
readonly GROUP_ICON = GROUP_ICON;
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
readonly PERSONS_ICON = PERSONS_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly EXPAND_MORE_ICON = EXPAND_MORE_ICON;
|
||||
readonly CHEVRON_LEFT_ICON = CHEVRON_LEFT_ICON;
|
||||
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
|
||||
readonly LABEL_ICON = LABEL_ICON;
|
||||
readonly INTERESTS_ICON = INTERESTS_ICON;
|
||||
readonly TOPIC_ICON = TOPIC_ICON;
|
||||
readonly KEYWORDS_ICON = KEYWORDS_ICON;
|
||||
readonly LIBRARY_BOOKS_ICON = LIBRARY_BOOKS_ICON;
|
||||
readonly INFO_ICON = INFO_ICON;
|
||||
readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON;
|
||||
readonly FUNDING_ICON = FUNDING_ICON;
|
||||
readonly PAID_ICON = PAID_ICON;
|
||||
readonly LINK_ICON = LINK_ICON;
|
||||
readonly NORTH_EAST_ICON = NORTH_EAST_ICON;
|
||||
|
||||
+2
-2
@@ -67,7 +67,7 @@
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
aria-label="Erläuterung zur Konfidenz">
|
||||
{{ INFO_OUTLINE_ICON }}
|
||||
{{ HELP_ICON }}
|
||||
</mat-icon>
|
||||
</mat-card>
|
||||
}
|
||||
@@ -81,7 +81,7 @@
|
||||
matTooltipPosition="above"
|
||||
(click)="$event.stopPropagation()"
|
||||
aria-label="Erläuterung zur Informationsgrundlage">
|
||||
{{ INFO_OUTLINE_ICON }}
|
||||
{{ HELP_ICON }}
|
||||
</mat-icon>
|
||||
</mat-card>
|
||||
}
|
||||
|
||||
+2
-2
@@ -21,7 +21,7 @@ import { WorkPrimaryCategoryPipe } from '../../../shared/pipes/work-primary-cate
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
import { OrientationGaugeComponent } from '../../../shared/ui/orientation-gauge/orientation-gauge.component';
|
||||
import { TopicChipComponent } from '../../../shared/ui/topic-chip/topic-chip.component';
|
||||
import { INFO_OUTLINE_ICON, SCIENCE_ICON } from '../../../shared/ui/icons';
|
||||
import { HELP_ICON, SCIENCE_ICON } from '../../../shared/ui/icons';
|
||||
|
||||
type PasteurQuadrant =
|
||||
| 'pure_basic'
|
||||
@@ -85,7 +85,7 @@ const QUADRANTS: readonly QuadrantDefinition[] = [
|
||||
})
|
||||
export class ResearchProfileComponent {
|
||||
readonly SCIENCE_ICON = SCIENCE_ICON;
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
|
||||
private readonly destroyRef = inject(DestroyRef);
|
||||
private readonly chartTheme = inject(ChartThemeService);
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
} @else if (isCheckingLink()) {
|
||||
<div class="login-form">
|
||||
<div class="code-intro">
|
||||
<mat-icon>hourglass_top</mat-icon>
|
||||
<mat-icon>{{ HOURGLASS_ICON }}</mat-icon>
|
||||
<div>
|
||||
<strong>Link wird geprüft</strong>
|
||||
<span>Die Gültigkeit des Links wird überprüft.</span>
|
||||
@@ -98,7 +98,7 @@
|
||||
"
|
||||
(click)="showPasswords.set(!showPasswords())">
|
||||
<mat-icon>
|
||||
{{ showPasswords() ? VISIBILITY_ICON : VISIBILITY_OFF_ICON }}
|
||||
{{ showPasswords() ? OVERVIEW_ICON : VISIBILITY_OFF_ICON }}
|
||||
</mat-icon>
|
||||
</button>
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
"
|
||||
(click)="showPasswords.set(!showPasswords())">
|
||||
<mat-icon>
|
||||
{{ showPasswords() ? VISIBILITY_ICON : VISIBILITY_OFF_ICON }}
|
||||
{{ showPasswords() ? OVERVIEW_ICON : VISIBILITY_OFF_ICON }}
|
||||
</mat-icon>
|
||||
</button>
|
||||
|
||||
|
||||
@@ -22,7 +22,8 @@ import { CredentialService } from '../../shared/services/credential.service';
|
||||
import {
|
||||
CHECK_CIRCLE_ICON,
|
||||
ERROR_OUTLINE_ICON,
|
||||
VISIBILITY_ICON,
|
||||
HOURGLASS_ICON,
|
||||
OVERVIEW_ICON,
|
||||
VISIBILITY_OFF_ICON,
|
||||
} from '../../shared/ui/icons';
|
||||
|
||||
@@ -44,7 +45,8 @@ import {
|
||||
export class ResetPasswordComponent {
|
||||
readonly CHECK_CIRCLE_ICON = CHECK_CIRCLE_ICON;
|
||||
readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON;
|
||||
readonly VISIBILITY_ICON = VISIBILITY_ICON;
|
||||
readonly HOURGLASS_ICON = HOURGLASS_ICON;
|
||||
readonly OVERVIEW_ICON = OVERVIEW_ICON;
|
||||
readonly VISIBILITY_OFF_ICON = VISIBILITY_OFF_ICON;
|
||||
|
||||
private readonly destroyRef = inject(DestroyRef);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<mat-divider />
|
||||
<div class="metrics">
|
||||
<div class="metric-item">
|
||||
<mat-icon>{{ MENU_BOOK_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PUBLICATION_ICON }}</mat-icon>
|
||||
<span
|
||||
>{{
|
||||
topic.works_count | number: undefined : 'de'
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user