Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
339f12d553 | ||
|
|
cefc8c1b85 | ||
|
|
6794dde27e | ||
|
|
9e4a1c3c69 | ||
|
|
ba834f8596 | ||
|
|
9edb02799c | ||
|
|
05c20a34f7 | ||
|
|
45db15b22b | ||
|
|
1b4d0e053d | ||
|
|
1fe273c747 | ||
|
|
a2a4798ba7 | ||
|
|
4280ac24b8 | ||
|
|
23de1204f8 | ||
|
|
60198c2225 | ||
|
|
e42c81e32a | ||
|
|
ddd5e4e891 | ||
|
|
5d10af42f0 | ||
|
|
e25b5ed41b | ||
|
|
c04f462b08 |
@@ -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({
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@
|
||||
[disabled]="!canScrollLeft"
|
||||
aria-label="Vorherige Institutionen anzeigen"
|
||||
(click)="scroll(-1)">
|
||||
<mat-icon>chevron_left</mat-icon>
|
||||
<mat-icon>{{ CHEVRON_LEFT_ICON }}</mat-icon>
|
||||
</button>
|
||||
|
||||
<div
|
||||
@@ -36,7 +36,7 @@
|
||||
[disabled]="!canScrollRight"
|
||||
aria-label="Weitere Institutionen anzeigen"
|
||||
(click)="scroll(1)">
|
||||
<mat-icon>chevron_right</mat-icon>
|
||||
<mat-icon>{{ CHEVRON_RIGHT_ICON }}</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
+7
@@ -10,6 +10,10 @@ import {
|
||||
} 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',
|
||||
@@ -20,6 +24,9 @@ import { DashboardInstitution } from '../../dashboard-statistics.service';
|
||||
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[]>([]);
|
||||
|
||||
+4
-4
@@ -3,7 +3,7 @@
|
||||
label="Publikationen"
|
||||
[value]="statistics()?.publications"
|
||||
[loading]="loading().publications"
|
||||
[icon]="MENU_BOOK_ICON"
|
||||
[icon]="PUBLICATION_ICON"
|
||||
variant="publications"
|
||||
[link]="['/institution', institutionRouteId(), 'publications']"
|
||||
[disabled]="!institutionRouteId()"
|
||||
@@ -14,7 +14,7 @@
|
||||
label="Personen"
|
||||
[value]="statistics()?.persons"
|
||||
[loading]="loading().persons"
|
||||
[icon]="GROUPS_ICON"
|
||||
[icon]="PERSONS_ICON"
|
||||
variant="persons"
|
||||
link="/persons"
|
||||
[queryParams]="personListQueryParams()"
|
||||
@@ -47,7 +47,7 @@
|
||||
label="Bund-Projekte"
|
||||
[value]="statistics()?.bmbf_projects"
|
||||
[loading]="loading().bmbf_projects"
|
||||
[icon]="ACCOUNT_BALANCE_ICON"
|
||||
[icon]="BUND_ICON"
|
||||
variant="bund-projects"
|
||||
link="/projects"
|
||||
[queryParams]="{ selected_project_types: 'bund' }"
|
||||
@@ -58,7 +58,7 @@
|
||||
label="DFG-Projekte"
|
||||
[value]="statistics()?.dfg_projects"
|
||||
[loading]="loading().dfg_projects"
|
||||
[icon]="SCIENCE_ICON"
|
||||
[icon]="DFG_ICON"
|
||||
variant="dfg-projects"
|
||||
link="/projects"
|
||||
[queryParams]="{ selected_project_types: 'dfg' }"
|
||||
|
||||
+10
-11
@@ -1,11 +1,11 @@
|
||||
import { Component, computed, input } from '@angular/core';
|
||||
import {
|
||||
ACCOUNT_BALANCE_ICON,
|
||||
GROUPS_ICON,
|
||||
MENU_BOOK_ICON,
|
||||
BUND_ICON,
|
||||
DFG_ICON,
|
||||
PATENT_ICON,
|
||||
PERSONS_ICON,
|
||||
PUBLIC_ICON,
|
||||
SCIENCE_ICON,
|
||||
PUBLICATION_ICON,
|
||||
} from '../../../../shared/ui/icons';
|
||||
import { institutionPersonListQueryParamsForPeriod } from '../../../../shared/person-list-query-params';
|
||||
import {
|
||||
@@ -26,21 +26,20 @@ import { DashboardStatisticCardComponent } from '../dashboard-statistic-card/das
|
||||
})
|
||||
export class DashboardStatisticsGridComponent {
|
||||
readonly statistics = input<Partial<DashboardStatistics>>();
|
||||
readonly loading = input.required<
|
||||
Readonly<Record<DashboardStatisticKey, boolean>>
|
||||
>();
|
||||
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 MENU_BOOK_ICON = MENU_BOOK_ICON;
|
||||
readonly GROUPS_ICON = GROUPS_ICON;
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly PERSONS_ICON = PERSONS_ICON;
|
||||
readonly PATENT_ICON = PATENT_ICON;
|
||||
readonly PUBLIC_ICON = PUBLIC_ICON;
|
||||
readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON;
|
||||
readonly SCIENCE_ICON = SCIENCE_ICON;
|
||||
readonly BUND_ICON = BUND_ICON;
|
||||
readonly DFG_ICON = DFG_ICON;
|
||||
|
||||
readonly organizationName = computed(
|
||||
() => this.statistics()?.organization_name ?? 'Ihre Organisation',
|
||||
|
||||
+8
-8
@@ -1,10 +1,10 @@
|
||||
import { Component, computed, input } from '@angular/core';
|
||||
import {
|
||||
ACCOUNT_TREE_ICON,
|
||||
ARTICLE_ICON,
|
||||
DESCRIPTION_ICON,
|
||||
MENU_BOOK_ICON,
|
||||
DFG_ICON,
|
||||
PUBLIC_ICON,
|
||||
PATENT_ICON,
|
||||
NEWS_ICON,
|
||||
PUBLICATION_ICON,
|
||||
} from '../../../../shared/ui/icons';
|
||||
import { TopAuthorStatistics } from '../../dashboard-statistics.service';
|
||||
import {
|
||||
@@ -28,7 +28,7 @@ export class DashboardTopAuthorsComponent {
|
||||
title: 'Publikationen',
|
||||
subtitle:
|
||||
'Top 10 Personen mit Publikationen der ausgewählten Institution. Die Zahl zeigt die Anzahl der Publikationen der jeweiligen Person.',
|
||||
icon: MENU_BOOK_ICON,
|
||||
icon: PUBLICATION_ICON,
|
||||
entries: this.statistics()?.works ?? [],
|
||||
},
|
||||
{
|
||||
@@ -42,14 +42,14 @@ export class DashboardTopAuthorsComponent {
|
||||
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: DESCRIPTION_ICON,
|
||||
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: ACCOUNT_TREE_ICON,
|
||||
icon: DFG_ICON,
|
||||
entries: this.statistics()?.projects ?? [],
|
||||
stripAuthorTitle: true,
|
||||
},
|
||||
@@ -57,7 +57,7 @@ export class DashboardTopAuthorsComponent {
|
||||
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: ARTICLE_ICON,
|
||||
icon: NEWS_ICON,
|
||||
entries: this.statistics()?.news ?? [],
|
||||
},
|
||||
]);
|
||||
|
||||
+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>
|
||||
|
||||
+2
-2
@@ -21,10 +21,10 @@ 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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
+10
-21
@@ -30,6 +30,10 @@ import {
|
||||
toggleTopicLegendSubfieldSelection,
|
||||
} from '../../../../resolvers/utils/topic-legend';
|
||||
import { buildTopicHierarchyTooltip } from '../../../../resolvers/utils/topic-tooltip';
|
||||
import {
|
||||
formatYearRange,
|
||||
normalizeSelectedYears,
|
||||
} from '../../../../resolvers/utils/year-range';
|
||||
import { workQueryParamKeys } from '../../../../resolvers/work-page.resolver';
|
||||
|
||||
export interface TopicTimelineTopic {
|
||||
@@ -303,12 +307,12 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked {
|
||||
|
||||
this.topicSelect.emit({
|
||||
topic,
|
||||
years: this.normalizeSelectedYears(years),
|
||||
years: normalizeSelectedYears(years),
|
||||
});
|
||||
}
|
||||
|
||||
selectYears(years: number[]): void {
|
||||
const selectedYears = this.normalizeSelectedYears(years);
|
||||
const selectedYears = normalizeSelectedYears(years);
|
||||
|
||||
if (selectedYears.length === 0) {
|
||||
return;
|
||||
@@ -364,7 +368,7 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked {
|
||||
return null;
|
||||
}
|
||||
|
||||
const selectedYears = this.normalizeSelectedYears(years);
|
||||
const selectedYears = normalizeSelectedYears(years);
|
||||
const cacheKey = `${topic.id}|${selectedYears.join(',')}`;
|
||||
const cached = this.topicActionCache.get(cacheKey);
|
||||
|
||||
@@ -374,7 +378,7 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked {
|
||||
|
||||
const person = this.personName || 'dieser Person';
|
||||
const action: TimelineTopicAction = {
|
||||
label: `Publikationen von ${person} ${this.formatYearRange(selectedYears)}`,
|
||||
label: `Publikationen von ${person} ${formatYearRange(selectedYears)}`,
|
||||
link: this.personPublicationsLink,
|
||||
queryParams: {
|
||||
[workQueryParamKeys.page]: 0,
|
||||
@@ -421,18 +425,9 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked {
|
||||
}
|
||||
|
||||
const person = this.personName || 'dieser Person';
|
||||
const selectedYears = this.normalizeSelectedYears(years);
|
||||
const selectedYears = normalizeSelectedYears(years);
|
||||
|
||||
return `Publikationen von ${person} zum Thema ${topic.name} ${this.formatYearRange(selectedYears)}`;
|
||||
}
|
||||
|
||||
private formatYearRange(years: number[]): string {
|
||||
const firstYear = years[0];
|
||||
const lastYear = years[years.length - 1];
|
||||
|
||||
return firstYear === lastYear
|
||||
? `(${firstYear})`
|
||||
: `(${firstYear}–${lastYear})`;
|
||||
return `Publikationen von ${person} zum Thema ${topic.name} ${formatYearRange(selectedYears)}`;
|
||||
}
|
||||
|
||||
getYearPublicationTooltip(item: TopicTimelineElement): string {
|
||||
@@ -1040,12 +1035,6 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked {
|
||||
.slice(0, this.displayedPhaseTopicLimit);
|
||||
}
|
||||
|
||||
private normalizeSelectedYears(years: number[]): number[] {
|
||||
return Array.from(new Set(years))
|
||||
.filter((year) => Number.isFinite(year))
|
||||
.sort((left, right) => left - right);
|
||||
}
|
||||
|
||||
private getDominantPrimaryTopicCandidates(
|
||||
item: TopicTimelineElement,
|
||||
): TopicTimelineTopic[] {
|
||||
|
||||
+123
-66
@@ -8,25 +8,21 @@ import {
|
||||
getTopicLegendSubfieldId,
|
||||
TopicLegendTopic,
|
||||
} from '../../../../resolvers/utils/topic-legend';
|
||||
import type {
|
||||
TopicTimelineElement,
|
||||
TopicTimelineTopic,
|
||||
} from '../research-timeline/research-timeline.component';
|
||||
import {
|
||||
formatYearRange,
|
||||
normalizeSelectedYears,
|
||||
} from '../../../../resolvers/utils/year-range';
|
||||
import { workQueryParamKeys } from '../../../../resolvers/work-page.resolver';
|
||||
|
||||
interface WordTooltipInputs {
|
||||
topicId: string;
|
||||
secondaryActionLabel: string | null;
|
||||
secondaryActionLink: unknown[] | null;
|
||||
secondaryActionQueryParams: Record<string, string | number>;
|
||||
}
|
||||
|
||||
export interface WordCloudTopicOccurrence {
|
||||
name: string;
|
||||
topicId: string;
|
||||
year: number | undefined;
|
||||
fieldId: string | undefined;
|
||||
fieldName: string | undefined;
|
||||
domainId: string | undefined;
|
||||
domainName: string | undefined;
|
||||
subfieldId: string | undefined;
|
||||
subfieldName: string | undefined;
|
||||
secondaryActionQueryParams: Record<string, string | number | number[]>;
|
||||
}
|
||||
|
||||
export interface WordCloudWord {
|
||||
@@ -49,67 +45,46 @@ const displayedWordLimit = 30;
|
||||
const minimumFontSize = 12;
|
||||
const maximumFontSize = 32;
|
||||
|
||||
interface AggregatedTopic {
|
||||
name: string;
|
||||
count: number;
|
||||
legendTopic: TopicLegendTopic;
|
||||
}
|
||||
|
||||
export function buildResearchWordcloud(
|
||||
occurrences: WordCloudTopicOccurrence[],
|
||||
elements: readonly TopicTimelineElement[],
|
||||
startYear: number | undefined,
|
||||
endYear: number | undefined,
|
||||
): ResearchWordcloud {
|
||||
const counts = new Map<string, number>();
|
||||
const legendTopicsByName = new Map<string, TopicLegendTopic>();
|
||||
const yearsInRange = elements.filter((element) =>
|
||||
isWithinYearRange(element.year, startYear, endYear),
|
||||
);
|
||||
|
||||
for (const occurrence of occurrences) {
|
||||
if (!isWithinYearRange(occurrence.year, startYear, endYear)) {
|
||||
continue;
|
||||
}
|
||||
const aggregated = aggregateTopics(yearsInRange);
|
||||
|
||||
counts.set(occurrence.name, (counts.get(occurrence.name) ?? 0) + 1);
|
||||
|
||||
if (!legendTopicsByName.has(occurrence.name)) {
|
||||
legendTopicsByName.set(occurrence.name, {
|
||||
id: occurrence.topicId,
|
||||
name: occurrence.name,
|
||||
field_id: occurrence.fieldId,
|
||||
field_name: occurrence.fieldName,
|
||||
domain_id: occurrence.domainId,
|
||||
domain_name: occurrence.domainName,
|
||||
subfield_id: occurrence.subfieldId,
|
||||
subfield_name: occurrence.subfieldName,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (counts.size === 0) {
|
||||
if (aggregated.size === 0) {
|
||||
return { words: [], legendTopics: [] };
|
||||
}
|
||||
|
||||
const values = Array.from(counts.values());
|
||||
const minimumValue = Math.min(...values);
|
||||
const maximumValue = Math.max(...values);
|
||||
const intensity = (value: number): number =>
|
||||
maximumValue === minimumValue
|
||||
? 1
|
||||
: (value - minimumValue) / (maximumValue - minimumValue);
|
||||
|
||||
const displayed = Array.from(counts.entries())
|
||||
.sort((left, right) => right[1] - left[1])
|
||||
const displayed = Array.from(aggregated.values())
|
||||
.sort(
|
||||
(left, right) =>
|
||||
right.count - left.count || left.name.localeCompare(right.name),
|
||||
)
|
||||
.slice(0, displayedWordLimit);
|
||||
|
||||
const legendTopics = displayed
|
||||
.map(([name]) => legendTopicsByName.get(name))
|
||||
.filter((topic): topic is TopicLegendTopic => Boolean(topic));
|
||||
const intensity = buildIntensityScale(displayed);
|
||||
|
||||
const words = displayed.map(([name, value]): WordCloudWord => {
|
||||
const legendTopic = legendTopicsByName.get(name);
|
||||
const scale = intensity(value);
|
||||
const words = displayed.map((topic): WordCloudWord => {
|
||||
const legendTopic = topic.legendTopic;
|
||||
const scale = intensity(topic.count);
|
||||
|
||||
return {
|
||||
name,
|
||||
topicId: legendTopic?.id ?? '',
|
||||
rawTopicId: stripOpenAlexId(legendTopic?.id),
|
||||
fieldLegendId: legendTopic ? getTopicLegendFieldId(legendTopic) : '',
|
||||
subfieldLegendId: legendTopic
|
||||
? getTopicLegendSubfieldId(legendTopic)
|
||||
: '',
|
||||
name: topic.name,
|
||||
topicId: legendTopic.id ?? '',
|
||||
rawTopicId: stripOpenAlexId(legendTopic.id),
|
||||
fieldLegendId: getTopicLegendFieldId(legendTopic),
|
||||
subfieldLegendId: getTopicLegendSubfieldId(legendTopic),
|
||||
color: topicHierarchyColor(legendTopic),
|
||||
fontSize: Math.round(
|
||||
minimumFontSize + scale * (maximumFontSize - minimumFontSize),
|
||||
@@ -118,7 +93,72 @@ export function buildResearchWordcloud(
|
||||
};
|
||||
});
|
||||
|
||||
return { words: centreWords(words), legendTopics };
|
||||
return {
|
||||
words: centreWords(words),
|
||||
legendTopics: displayed.map((topic) => topic.legendTopic),
|
||||
};
|
||||
}
|
||||
|
||||
function aggregateTopics(
|
||||
elements: readonly TopicTimelineElement[],
|
||||
): Map<string, AggregatedTopic> {
|
||||
const aggregated = new Map<string, AggregatedTopic>();
|
||||
|
||||
for (const element of elements) {
|
||||
for (const topic of element.primary_topics ?? []) {
|
||||
if (!topic.name) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const key = topic.id ?? topic.name;
|
||||
const existing = aggregated.get(key);
|
||||
|
||||
if (existing) {
|
||||
existing.count += topic.count;
|
||||
continue;
|
||||
}
|
||||
|
||||
aggregated.set(key, {
|
||||
name: topic.name,
|
||||
count: topic.count,
|
||||
legendTopic: toLegendTopic(topic),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return aggregated;
|
||||
}
|
||||
|
||||
function buildIntensityScale(
|
||||
topics: readonly AggregatedTopic[],
|
||||
): (count: number) => number {
|
||||
const weights = topics.map((topic) => Math.sqrt(Math.max(topic.count, 0)));
|
||||
const minimumWeight = Math.min(...weights);
|
||||
const maximumWeight = Math.max(...weights);
|
||||
|
||||
if (maximumWeight === minimumWeight) {
|
||||
return () => 0.5;
|
||||
}
|
||||
|
||||
return (count) =>
|
||||
(Math.sqrt(Math.max(count, 0)) - minimumWeight) /
|
||||
(maximumWeight - minimumWeight);
|
||||
}
|
||||
|
||||
function toLegendTopic(topic: TopicTimelineTopic): TopicLegendTopic {
|
||||
return {
|
||||
id: topic.id,
|
||||
name: topic.name,
|
||||
field_id: topic.field_id,
|
||||
field_name: topic.field_name,
|
||||
field_description: topic.field_description,
|
||||
domain_id: topic.domain_id,
|
||||
domain_name: topic.domain_name,
|
||||
domain_description: topic.domain_description,
|
||||
subfield_id: topic.subfield_id,
|
||||
subfield_name: topic.subfield_name,
|
||||
subfield_description: topic.subfield_description,
|
||||
};
|
||||
}
|
||||
|
||||
function isWithinYearRange(
|
||||
@@ -184,6 +224,11 @@ export class ResearchWordcloudComponent {
|
||||
this.rebuildTooltipInputs();
|
||||
}
|
||||
|
||||
@Input() set selectedYears(value: number[]) {
|
||||
this._selectedYears = normalizeSelectedYears(value);
|
||||
this.rebuildTooltipInputs();
|
||||
}
|
||||
|
||||
@Input() loading = false;
|
||||
@Input() loadFailed = false;
|
||||
@Input() activeFieldIds: ReadonlySet<string> = new Set();
|
||||
@@ -194,6 +239,7 @@ export class ResearchWordcloudComponent {
|
||||
private _words: WordCloudWord[] = [];
|
||||
private _personPublicationsLink: unknown[] | null = null;
|
||||
private _personName = '';
|
||||
private _selectedYears: number[] = [];
|
||||
private tooltipInputsByTopic = new Map<string, WordTooltipInputs>();
|
||||
|
||||
selectWord(word: WordCloudWord): void {
|
||||
@@ -217,15 +263,23 @@ export class ResearchWordcloudComponent {
|
||||
}
|
||||
|
||||
wordAriaLabel(word: WordCloudWord): string {
|
||||
return `${this.publicationsLabel()} zum Thema ${word.name}${this.yearRangeSuffix()}`;
|
||||
}
|
||||
|
||||
private publicationsLabel(): string {
|
||||
return this._personName
|
||||
? `Publikationen von ${this._personName} zum Thema ${word.name}`
|
||||
: `Publikationen dieser Person zum Thema ${word.name}`;
|
||||
? `Publikationen von ${this._personName}`
|
||||
: 'Publikationen dieser Person';
|
||||
}
|
||||
|
||||
private yearRangeSuffix(): string {
|
||||
return this._selectedYears.length > 0
|
||||
? ` ${formatYearRange(this._selectedYears)}`
|
||||
: '';
|
||||
}
|
||||
|
||||
private rebuildTooltipInputs(): void {
|
||||
const label = this._personName
|
||||
? `Publikationen von ${this._personName}`
|
||||
: 'Publikationen dieser Person';
|
||||
const label = `${this.publicationsLabel()}${this.yearRangeSuffix()}`;
|
||||
const link = this._personPublicationsLink;
|
||||
|
||||
this.tooltipInputsByTopic = new Map(
|
||||
@@ -239,6 +293,9 @@ export class ResearchWordcloudComponent {
|
||||
secondaryActionLink: link,
|
||||
secondaryActionQueryParams: {
|
||||
[workQueryParamKeys.page]: 0,
|
||||
...(this._selectedYears.length > 0
|
||||
? { [workQueryParamKeys.years]: this._selectedYears }
|
||||
: {}),
|
||||
[workQueryParamKeys.topicId]: word.topicId,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
[loadFailed]="wordCloudLoadFailed"
|
||||
[activeFieldIds]="activeLegendFieldIds"
|
||||
[activeSubfieldIds]="activeLegendSubfieldIds"
|
||||
[selectedYears]="wordCloudYears"
|
||||
[personName]="personName"
|
||||
[personPublicationsLink]="personPublicationsLink"
|
||||
(wordSelect)="onWordClick($event)" />
|
||||
|
||||
@@ -15,7 +15,6 @@ import {
|
||||
import {
|
||||
buildResearchWordcloud,
|
||||
ResearchWordcloudComponent,
|
||||
WordCloudTopicOccurrence,
|
||||
WordCloudWord,
|
||||
} from './components/research-wordcloud/research-wordcloud.component';
|
||||
import { workQueryParamKeys } from '../../resolvers/work-page.resolver';
|
||||
@@ -40,7 +39,7 @@ export class PersonOverviewComponent implements OnInit {
|
||||
'timeline_legend_visible';
|
||||
private static readonly timelineLegendExpandedQueryParam =
|
||||
'timeline_legend_expanded';
|
||||
private static readonly timelineTopicCountLimit = 4;
|
||||
private static readonly timelineTopicCountLimit = 20;
|
||||
private static readonly initialTimelineTargetPublications = 250;
|
||||
|
||||
private readonly route = inject(ActivatedRoute);
|
||||
@@ -66,6 +65,7 @@ export class PersonOverviewComponent implements OnInit {
|
||||
|
||||
wordCloudWords: WordCloudWord[] = [];
|
||||
wordCloudLegendTopics: TopicLegendTopic[] = [];
|
||||
wordCloudYears: number[] = [];
|
||||
loadingWordCloud = false;
|
||||
wordCloudLoadFailed = false;
|
||||
activeLegendFieldIds: ReadonlySet<string> = new Set();
|
||||
@@ -73,8 +73,6 @@ export class PersonOverviewComponent implements OnInit {
|
||||
personName = '';
|
||||
personPublicationsLink: unknown[] | null = null;
|
||||
|
||||
private rawTopicOccurrences: WordCloudTopicOccurrence[] = [];
|
||||
|
||||
ngOnInit(): void {
|
||||
combineLatest(this.route.pathFromRoot.map((route) => route.paramMap))
|
||||
.pipe(
|
||||
@@ -88,7 +86,6 @@ export class PersonOverviewComponent implements OnInit {
|
||||
? ['/person', authorId, 'publications']
|
||||
: null;
|
||||
this.loadTopicTimeline(authorId);
|
||||
this.loadWordCloud(authorId);
|
||||
});
|
||||
|
||||
this.loadPersonName();
|
||||
@@ -99,12 +96,24 @@ export class PersonOverviewComponent implements OnInit {
|
||||
this.timelineViewMode = this.parseTimelineViewMode(
|
||||
queryParams.get(PersonOverviewComponent.timelineViewQueryParam),
|
||||
);
|
||||
this.timelineStartYear = this.parseOptionalYear(
|
||||
|
||||
const startYear = this.parseOptionalYear(
|
||||
queryParams.get(PersonOverviewComponent.timelineStartYearQueryParam),
|
||||
);
|
||||
this.timelineEndYear = this.parseOptionalYear(
|
||||
const endYear = this.parseOptionalYear(
|
||||
queryParams.get(PersonOverviewComponent.timelineEndYearQueryParam),
|
||||
);
|
||||
const yearRangeChanged =
|
||||
startYear !== this.timelineStartYear ||
|
||||
endYear !== this.timelineEndYear;
|
||||
|
||||
this.timelineStartYear = startYear;
|
||||
this.timelineEndYear = endYear;
|
||||
|
||||
if (yearRangeChanged) {
|
||||
this.rebuildWordCloud();
|
||||
}
|
||||
|
||||
this.timelineLegendVisible = this.parseBooleanQueryParam(
|
||||
queryParams.get(
|
||||
PersonOverviewComponent.timelineLegendVisibleQueryParam,
|
||||
@@ -219,6 +228,9 @@ export class PersonOverviewComponent implements OnInit {
|
||||
relativeTo: this.route,
|
||||
queryParams: {
|
||||
[workQueryParamKeys.page]: 0,
|
||||
...(this.wordCloudYears.length > 0
|
||||
? { [workQueryParamKeys.years]: this.wordCloudYears }
|
||||
: {}),
|
||||
[workQueryParamKeys.topicId]: word.topicId,
|
||||
},
|
||||
});
|
||||
@@ -246,9 +258,11 @@ export class PersonOverviewComponent implements OnInit {
|
||||
return;
|
||||
}
|
||||
|
||||
this.topicTimelineElements = [];
|
||||
this.setTimelineElements([]);
|
||||
this.loadingTimeline = true;
|
||||
this.loadingWordCloud = true;
|
||||
this.timelineLoadFailed = false;
|
||||
this.wordCloudLoadFailed = false;
|
||||
this.timelineCanLoadEarlierYears = false;
|
||||
this.timelineLoadingEarlierYears = false;
|
||||
this.timelineEarlierYearsLoadFailed = false;
|
||||
@@ -269,9 +283,11 @@ export class PersonOverviewComponent implements OnInit {
|
||||
|
||||
const timelineElements = this.mapTimelineElements(response.elements);
|
||||
|
||||
this.topicTimelineElements = timelineElements;
|
||||
this.setTimelineElements(timelineElements);
|
||||
this.loadingTimeline = false;
|
||||
this.loadingWordCloud = false;
|
||||
this.timelineLoadFailed = false;
|
||||
this.wordCloudLoadFailed = false;
|
||||
this.timelineCanLoadEarlierYears =
|
||||
response.is_limited ??
|
||||
this.isLikelyLimitedTimeline(timelineElements);
|
||||
@@ -282,9 +298,11 @@ export class PersonOverviewComponent implements OnInit {
|
||||
}
|
||||
|
||||
console.error('Topic timeline could not be loaded.', error);
|
||||
this.topicTimelineElements = [];
|
||||
this.setTimelineElements([]);
|
||||
this.loadingTimeline = false;
|
||||
this.loadingWordCloud = false;
|
||||
this.timelineLoadFailed = true;
|
||||
this.wordCloudLoadFailed = true;
|
||||
this.timelineCanLoadEarlierYears = false;
|
||||
this.timelineLoadingEarlierYears = false;
|
||||
this.timelineEarlierYearsLoadFailed = false;
|
||||
@@ -316,9 +334,11 @@ export class PersonOverviewComponent implements OnInit {
|
||||
response.elements,
|
||||
);
|
||||
|
||||
this.topicTimelineElements = this.mergeTimelineElements(
|
||||
this.topicTimelineElements,
|
||||
completeTimelineElements,
|
||||
this.setTimelineElements(
|
||||
this.mergeTimelineElements(
|
||||
this.topicTimelineElements,
|
||||
completeTimelineElements,
|
||||
),
|
||||
);
|
||||
this.timelineCanLoadEarlierYears = false;
|
||||
this.timelineLoadingEarlierYears = false;
|
||||
@@ -338,9 +358,11 @@ export class PersonOverviewComponent implements OnInit {
|
||||
}
|
||||
|
||||
private resetTimelineState(): void {
|
||||
this.topicTimelineElements = [];
|
||||
this.setTimelineElements([]);
|
||||
this.loadingTimeline = false;
|
||||
this.loadingWordCloud = false;
|
||||
this.timelineLoadFailed = false;
|
||||
this.wordCloudLoadFailed = false;
|
||||
this.timelineCanLoadEarlierYears = false;
|
||||
this.timelineLoadingEarlierYears = false;
|
||||
this.timelineEarlierYearsLoadFailed = false;
|
||||
@@ -365,69 +387,37 @@ export class PersonOverviewComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
private loadWordCloud(authorId: string): void {
|
||||
if (!authorId || authorId === '0') {
|
||||
this.wordCloudWords = [];
|
||||
this.wordCloudLegendTopics = [];
|
||||
this.wordCloudLoadFailed = false;
|
||||
this.loadingWordCloud = false;
|
||||
this.rawTopicOccurrences = [];
|
||||
return;
|
||||
}
|
||||
|
||||
this.loadingWordCloud = true;
|
||||
this.wordCloudLoadFailed = false;
|
||||
this.wordCloudWords = [];
|
||||
this.wordCloudLegendTopics = [];
|
||||
|
||||
this.worksService
|
||||
.getAuthorWorks(authorId, 1, 100)
|
||||
.pipe(takeUntilDestroyed(this.destroyRef))
|
||||
.subscribe({
|
||||
next: (page) => {
|
||||
this.rawTopicOccurrences = [];
|
||||
page.elements?.forEach((work) => {
|
||||
const year = work.publication_year ?? undefined;
|
||||
work.topics?.forEach((topic) => {
|
||||
if (topic.display_name && topic.id) {
|
||||
this.rawTopicOccurrences.push({
|
||||
name: topic.display_name,
|
||||
topicId: topic.id,
|
||||
year,
|
||||
fieldId: topic.field?.id ?? undefined,
|
||||
fieldName: topic.field?.display_name ?? undefined,
|
||||
domainId: topic.domain?.id ?? undefined,
|
||||
domainName: topic.domain?.display_name ?? undefined,
|
||||
subfieldId: topic.subfield?.id ?? undefined,
|
||||
subfieldName: topic.subfield?.display_name ?? undefined,
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
this.loadingWordCloud = false;
|
||||
|
||||
setTimeout(() => this.rebuildWordCloud());
|
||||
},
|
||||
error: (error) => {
|
||||
console.error('Word cloud could not be loaded.', error);
|
||||
this.loadingWordCloud = false;
|
||||
this.rawTopicOccurrences = [];
|
||||
this.wordCloudLegendTopics = [];
|
||||
this.wordCloudLoadFailed = true;
|
||||
},
|
||||
});
|
||||
private setTimelineElements(elements: TopicTimelineElement[]): void {
|
||||
this.topicTimelineElements = elements;
|
||||
this.rebuildWordCloud();
|
||||
}
|
||||
|
||||
private rebuildWordCloud(): void {
|
||||
const wordCloud = buildResearchWordcloud(
|
||||
this.rawTopicOccurrences,
|
||||
this.topicTimelineElements,
|
||||
this.timelineStartYear,
|
||||
this.timelineEndYear,
|
||||
);
|
||||
|
||||
this.wordCloudWords = wordCloud.words;
|
||||
this.wordCloudLegendTopics = wordCloud.legendTopics;
|
||||
this.wordCloudYears = this.getSelectedTimelineYears();
|
||||
}
|
||||
|
||||
private getSelectedTimelineYears(): number[] {
|
||||
const yearsInRange = this.topicTimelineElements
|
||||
.map((element) => element.year)
|
||||
.filter(
|
||||
(year) =>
|
||||
(this.timelineStartYear === undefined ||
|
||||
year >= this.timelineStartYear) &&
|
||||
(this.timelineEndYear === undefined || year <= this.timelineEndYear),
|
||||
)
|
||||
.sort((left, right) => left - right);
|
||||
|
||||
return yearsInRange.length === this.topicTimelineElements.length
|
||||
? []
|
||||
: yearsInRange;
|
||||
}
|
||||
|
||||
private mapTimelineElements(
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -6,11 +6,7 @@ import { MatDividerModule } from '@angular/material/divider';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { DecimalPipe } from '@angular/common';
|
||||
import { topicHierarchyColor } from '../../resolvers/utils/topic-colors';
|
||||
import {
|
||||
CITATION_ICON,
|
||||
MENU_BOOK_ICON,
|
||||
PUBLICATION_ICON,
|
||||
} from '../../shared/ui/icons';
|
||||
import { CITATION_ICON, PUBLICATION_ICON } from '../../shared/ui/icons';
|
||||
import {
|
||||
LinkTabNavBarComponent,
|
||||
LinkTabNavBarItem,
|
||||
@@ -33,7 +29,7 @@ import {
|
||||
styleUrl: './topic.component.scss',
|
||||
})
|
||||
export class TopicComponent {
|
||||
readonly MENU_BOOK_ICON = MENU_BOOK_ICON;
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly CITATION_ICON = CITATION_ICON;
|
||||
|
||||
topic = input.required<Topic>();
|
||||
|
||||
+2
-2
@@ -13,7 +13,7 @@
|
||||
[class.active]="selectedSearchType() === 'authors'"
|
||||
(click)="setSearchType('authors')"
|
||||
matTooltip="Zeigt Publikationstrends einzelner Autoren">
|
||||
<mat-icon>{{ PEOPLE_ICON }}</mat-icon> Autoren
|
||||
<mat-icon>{{ PERSONS_ICON }}</mat-icon> Autoren
|
||||
</button>
|
||||
<button
|
||||
mat-button
|
||||
@@ -186,7 +186,7 @@
|
||||
}
|
||||
@if (selectedSearchType() === 'news' && !hasCcNewsSeries()) {
|
||||
<div class="cc-news-hint">
|
||||
<mat-icon>{{ INFO_OUTLINE_ICON }}</mat-icon>
|
||||
<mat-icon>{{ HELP_ICON }}</mat-icon>
|
||||
<span>
|
||||
Der CC-News-Vergleich (hinterlegte Fläche, ab 2017) ist aktuell
|
||||
nur bei deaktivierter Fuzzy-Suche verfügbar, da für
|
||||
|
||||
+4
-4
@@ -90,9 +90,9 @@ import {
|
||||
BUSINESS_CENTER_ICON,
|
||||
CAMPAIGN_ICON,
|
||||
DASHBOARD_ICON,
|
||||
INFO_OUTLINE_ICON,
|
||||
HELP_ICON,
|
||||
LIBRARY_BOOKS_ICON,
|
||||
PEOPLE_ICON,
|
||||
PERSONS_ICON,
|
||||
TRENDING_DOWN_ICON,
|
||||
TRENDING_UP_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
@@ -124,7 +124,7 @@ import {
|
||||
})
|
||||
export class UniTrendParentComponent implements OnInit {
|
||||
readonly LIBRARY_BOOKS_ICON = LIBRARY_BOOKS_ICON;
|
||||
readonly PEOPLE_ICON = PEOPLE_ICON;
|
||||
readonly PERSONS_ICON = PERSONS_ICON;
|
||||
readonly ASSIGNMENT_ICON = ASSIGNMENT_ICON;
|
||||
readonly BUSINESS_CENTER_ICON = BUSINESS_CENTER_ICON;
|
||||
readonly CAMPAIGN_ICON = CAMPAIGN_ICON;
|
||||
@@ -132,7 +132,7 @@ export class UniTrendParentComponent implements OnInit {
|
||||
readonly TRENDING_DOWN_ICON = TRENDING_DOWN_ICON;
|
||||
readonly BAR_CHART_ICON = BAR_CHART_ICON;
|
||||
readonly TRENDING_UP_ICON = TRENDING_UP_ICON;
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly ACCOUNT_TREE_ICON = ACCOUNT_TREE_ICON;
|
||||
|
||||
private readonly apiService = inject(UniversityRankingsService);
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
// import { ResolveFn } from '@angular/router';
|
||||
// import {
|
||||
// EuOrganizationProjectSummaryPage,
|
||||
// ProjectsService,
|
||||
// ProjectsSortBy,
|
||||
// SortDirection,
|
||||
// } from '../api';
|
||||
// import { inject } from '@angular/core';
|
||||
|
||||
// export const cordisEuProjectPageResolver: ResolveFn<
|
||||
// EuOrganizationProjectSummaryPage
|
||||
// > = (route, state) => {
|
||||
// const page = route.queryParamMap.get('page') ?? '1';
|
||||
// const size = route.queryParamMap.get('size') ?? '10';
|
||||
// let institutionId = route.paramMap.get('institutionId');
|
||||
// if (!institutionId) {
|
||||
// institutionId = route.parent?.paramMap.get('institutionId') ?? null;
|
||||
// }
|
||||
|
||||
// const sortBy = (route.queryParamMap.get('sort_by') ||
|
||||
// 'title') as ProjectsSortBy;
|
||||
// const sortDirection = (route.queryParamMap.get('sort_direction') ||
|
||||
// 'asc') as SortDirection;
|
||||
// const search = route.queryParamMap.get('search');
|
||||
|
||||
// return inject(ProjectsService).searchCordisEuProjects({
|
||||
// project_type: 'eu',
|
||||
// page: Number(page),
|
||||
// size: Number(size),
|
||||
// raw_oa_institution_id: institutionId,
|
||||
// query: search,
|
||||
// sort_by: sortBy,
|
||||
// sort_direction: sortDirection,
|
||||
// });
|
||||
// };
|
||||
@@ -1,50 +0,0 @@
|
||||
// import { inject } from '@angular/core';
|
||||
// import { ResolveFn } from '@angular/router';
|
||||
// import { CordisEuProjectPage, ProjectsService } from '../api';
|
||||
|
||||
// export const euProjectQueryParamKeys = {
|
||||
// page: 'page',
|
||||
// size: 'size',
|
||||
// title: 'title',
|
||||
// institutionId: 'institutionId',
|
||||
// authorId: 'authorId',
|
||||
// sortBy: 'sort_by',
|
||||
// sortDirection: 'sort_direction',
|
||||
// } as const;
|
||||
|
||||
// export const personCordisEuProjectPageResolver: ResolveFn<
|
||||
// CordisEuProjectPage
|
||||
// > = (route, state) => {
|
||||
// const rawAuthorId = route.parent?.params['id'];
|
||||
// // if (!rawAuthorId) {
|
||||
// // throw new Error('Author ID is required to resolve EU projects.');
|
||||
// // }
|
||||
|
||||
// const page =
|
||||
// Number(route.queryParamMap.get(euProjectQueryParamKeys.page)) || 0;
|
||||
// const size =
|
||||
// Number(route.queryParamMap.get(euProjectQueryParamKeys.size)) || 10;
|
||||
// const searchTerm =
|
||||
// route.queryParamMap.get(euProjectQueryParamKeys.title) ?? undefined;
|
||||
// const sortBy =
|
||||
// route.queryParamMap.get(euProjectQueryParamKeys.sortBy) || 'title';
|
||||
// const sortDirection =
|
||||
// route.queryParamMap.get(euProjectQueryParamKeys.sortDirection) || 'asc';
|
||||
|
||||
// const institutionIds = route.queryParamMap.getAll(
|
||||
// euProjectQueryParamKeys.institutionId,
|
||||
// );
|
||||
// const authorIds = route.queryParamMap.getAll(
|
||||
// euProjectQueryParamKeys.authorId,
|
||||
// );
|
||||
// return inject(ProjectsService).searchEuCordisProjects(
|
||||
// rawAuthorId,
|
||||
// // searchTerm,
|
||||
// // page,
|
||||
// // size,
|
||||
// // sortBy,
|
||||
// // sortDirection,
|
||||
// // institutionIds,
|
||||
// // authorIds,
|
||||
// );
|
||||
// };
|
||||
@@ -0,0 +1,14 @@
|
||||
export function normalizeSelectedYears(years: readonly number[]): number[] {
|
||||
return Array.from(new Set(years))
|
||||
.filter((year) => Number.isFinite(year))
|
||||
.sort((left, right) => left - right);
|
||||
}
|
||||
|
||||
export function formatYearRange(years: readonly number[]): string {
|
||||
const firstYear = years[0];
|
||||
const lastYear = years[years.length - 1];
|
||||
|
||||
return firstYear === lastYear
|
||||
? `(${firstYear})`
|
||||
: `(${firstYear}–${lastYear})`;
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {
|
||||
Author,
|
||||
AuthorAffiliationsInner,
|
||||
CustomAuthor,
|
||||
DehydratedInstitution,
|
||||
} from '../../api';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class AuthorAffiliationService {
|
||||
/**
|
||||
* Resolves the full list of candidate institutions for an author by taking the
|
||||
* union of:
|
||||
* 1. The most recent publication affiliations (matching the author's maximum publication year)
|
||||
* 2. The author's last known institutions (last_known_institutions)
|
||||
*
|
||||
* If an activeInstitutionId filter is supplied and matches one of the candidates,
|
||||
* that institution is prioritized at index 0.
|
||||
*/
|
||||
resolveAllInstitutions(
|
||||
author: Author | CustomAuthor | null | undefined,
|
||||
activeInstitutionId?: string | null,
|
||||
): DehydratedInstitution[] {
|
||||
if (!author) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const affiliations = author.affiliations ?? [];
|
||||
const lastKnown = author.last_known_institutions ?? [];
|
||||
|
||||
// Find the maximum publication year across all affiliations
|
||||
let maxGlobalYear = -1;
|
||||
for (const aff of affiliations) {
|
||||
for (const year of aff.years ?? []) {
|
||||
if (year > maxGlobalYear) {
|
||||
maxGlobalYear = year;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const candidatesMap = new Map<string, DehydratedInstitution>();
|
||||
const cleanActiveId = this.normalizeId(activeInstitutionId);
|
||||
|
||||
// 1. Collect most recent affiliations (matching maxGlobalYear, or all if maxGlobalYear <= 0)
|
||||
for (const aff of affiliations) {
|
||||
if (!aff.institution || !aff.institution.id) continue;
|
||||
const years = aff.years ?? [];
|
||||
const isMostRecent = maxGlobalYear <= 0 || years.includes(maxGlobalYear);
|
||||
|
||||
if (isMostRecent) {
|
||||
const normId = this.normalizeId(aff.institution.id);
|
||||
if (normId && !candidatesMap.has(normId)) {
|
||||
candidatesMap.set(normId, aff.institution);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 2. Union with last_known_institutions (deduplicating by normalized ID)
|
||||
for (const inst of lastKnown) {
|
||||
if (!inst || !inst.id) continue;
|
||||
const normId = this.normalizeId(inst.id);
|
||||
if (normId && !candidatesMap.has(normId)) {
|
||||
candidatesMap.set(normId, inst);
|
||||
}
|
||||
}
|
||||
|
||||
// Fallback: If no recent affiliations and no lastKnown institutions were found, use any affiliation institution
|
||||
if (candidatesMap.size === 0) {
|
||||
for (const aff of affiliations) {
|
||||
if (!aff.institution || !aff.institution.id) continue;
|
||||
const normId = this.normalizeId(aff.institution.id);
|
||||
if (normId && !candidatesMap.has(normId)) {
|
||||
candidatesMap.set(normId, aff.institution);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const allCandidates = Array.from(candidatesMap.values());
|
||||
|
||||
// 3. If activeInstitutionId is set and matches a candidate, prioritize it at index 0
|
||||
if (cleanActiveId) {
|
||||
const matchIndex = allCandidates.findIndex(
|
||||
(inst) => this.normalizeId(inst.id) === cleanActiveId,
|
||||
);
|
||||
if (matchIndex > 0) {
|
||||
const [matched] = allCandidates.splice(matchIndex, 1);
|
||||
allCandidates.unshift(matched);
|
||||
}
|
||||
}
|
||||
|
||||
return allCandidates;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves the primary institution for an author.
|
||||
*/
|
||||
resolveInstitution(
|
||||
author: Author | CustomAuthor | null | undefined,
|
||||
activeInstitutionId?: string | null,
|
||||
): DehydratedInstitution | undefined {
|
||||
return this.resolveAllInstitutions(author, activeInstitutionId)[0];
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves any secondary/alternative candidate institutions (excluding the primary one).
|
||||
*/
|
||||
resolveSecondaryInstitutions(
|
||||
author: Author | CustomAuthor | null | undefined,
|
||||
activeInstitutionId?: string | null,
|
||||
): DehydratedInstitution[] {
|
||||
return this.resolveAllInstitutions(author, activeInstitutionId).slice(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the affiliation with the highest publication year for an author.
|
||||
*/
|
||||
getLatestAffiliation(
|
||||
author: Author | CustomAuthor | null | undefined,
|
||||
): AuthorAffiliationsInner | undefined {
|
||||
if (!author) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const affiliations = author.affiliations ?? [];
|
||||
let newestAffiliation: AuthorAffiliationsInner | undefined = undefined;
|
||||
let newestYear = -1;
|
||||
|
||||
for (const affiliation of affiliations) {
|
||||
if (affiliation.institution) {
|
||||
const years = affiliation.years ?? [];
|
||||
if (years.length > 0) {
|
||||
for (const year of years) {
|
||||
if (year > newestYear) {
|
||||
newestYear = year;
|
||||
newestAffiliation = affiliation;
|
||||
}
|
||||
}
|
||||
} else if (!newestAffiliation) {
|
||||
newestAffiliation = affiliation;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return newestAffiliation;
|
||||
}
|
||||
|
||||
private normalizeId(id: string | null | undefined): string {
|
||||
if (!id) {
|
||||
return '';
|
||||
}
|
||||
return id.replace('https://openalex.org/', '').trim().toUpperCase();
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,28 @@
|
||||
<mat-card appearance="outlined" class="card-content">
|
||||
<mat-card-header>
|
||||
<mat-card-title>{{ author.display_name }}</mat-card-title>
|
||||
@if (author.last_known_institutions?.[0]?.display_name) {
|
||||
@if (institution(); as inst) {
|
||||
<mat-card-subtitle class="institution">
|
||||
<span>{{ author.last_known_institutions?.[0]?.display_name }}</span>
|
||||
<app-institution-chip
|
||||
[institution]="inst"
|
||||
size="mini"
|
||||
[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>
|
||||
}
|
||||
</mat-card-subtitle>
|
||||
}
|
||||
</mat-card-header>
|
||||
@@ -42,7 +61,7 @@
|
||||
class="card-action"
|
||||
[routerLink]="['/person', this.rawOaAuthorId()]"
|
||||
matButton="outlined">
|
||||
<mat-icon>{{ INFO_ICON }}</mat-icon>
|
||||
<mat-icon>{{ HELP_ICON }}</mat-icon>
|
||||
Übersicht
|
||||
</a>
|
||||
<a
|
||||
|
||||
@@ -6,8 +6,46 @@
|
||||
|
||||
.institution {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 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;
|
||||
}
|
||||
}
|
||||
|
||||
.metrics {
|
||||
|
||||
@@ -7,15 +7,20 @@ import {
|
||||
signal,
|
||||
} from '@angular/core';
|
||||
import { Author, AuthService } from '../../../api';
|
||||
import { AuthorAffiliationService } from '../../services/author-affiliation.service';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
import { AppInstitutionChipComponent } from '../app-institution-chip/app-institution-chip.component';
|
||||
import { ComponentTooltipDirective } from '../../../directives/component-tooltip.directive';
|
||||
import { PersonInstitutionTooltipListComponent } from '../person-institution-tooltip-list/person-institution-tooltip-list.component';
|
||||
import {
|
||||
CITATION_ICON,
|
||||
INFO_ICON,
|
||||
HELP_ICON,
|
||||
MORE_INFO_ICON,
|
||||
PROJECT_ICON,
|
||||
PUBLICATION_ICON,
|
||||
TRENDING_UP_ICON,
|
||||
@@ -29,6 +34,8 @@ import {
|
||||
MatDividerModule,
|
||||
RouterModule,
|
||||
MatButtonModule,
|
||||
AppInstitutionChipComponent,
|
||||
ComponentTooltipDirective,
|
||||
],
|
||||
templateUrl: './app-author-card.component.html',
|
||||
styleUrl: './app-author-card.component.scss',
|
||||
@@ -37,15 +44,26 @@ export class AppAuthorCardComponent {
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly CITATION_ICON = CITATION_ICON;
|
||||
readonly TRENDING_UP_ICON = TRENDING_UP_ICON;
|
||||
readonly INFO_ICON = INFO_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly PROJECT_ICON = PROJECT_ICON;
|
||||
readonly MORE_INFO_ICON = MORE_INFO_ICON;
|
||||
|
||||
readonly PersonInstitutionTooltipListComponent =
|
||||
PersonInstitutionTooltipListComponent;
|
||||
|
||||
private readonly authService = inject(AuthService);
|
||||
private readonly authorAffiliationService = inject(AuthorAffiliationService);
|
||||
author = input.required<Author>();
|
||||
|
||||
showProjects = signal<boolean>(false);
|
||||
|
||||
rawOaAuthorId = computed(() => this.stripOpenAlexId(this.author().id));
|
||||
institution = computed(() =>
|
||||
this.authorAffiliationService.resolveInstitution(this.author()),
|
||||
);
|
||||
secondaryInstitutions = computed(() =>
|
||||
this.authorAffiliationService.resolveSecondaryInstitutions(this.author()),
|
||||
);
|
||||
|
||||
stripOpenAlexId(id: string | null | undefined): string | undefined {
|
||||
if (!id) {
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
[routerLink]="['/institution', stripOpenAlexId(institution().id)]"
|
||||
matButton="outlined"
|
||||
(click)="$event.stopPropagation()">
|
||||
<mat-icon>{{ INFO_ICON }}</mat-icon>
|
||||
<mat-icon>{{ HELP_ICON }}</mat-icon>
|
||||
Übersicht
|
||||
</a>
|
||||
}
|
||||
@@ -114,7 +114,7 @@
|
||||
]"
|
||||
matButton="outlined"
|
||||
(click)="$event.stopPropagation()">
|
||||
<mat-icon>{{ VERIFIED_ICON }}</mat-icon>
|
||||
<mat-icon>{{ PATENT_ICON }}</mat-icon>
|
||||
Patente
|
||||
</a>
|
||||
}
|
||||
|
||||
@@ -18,11 +18,11 @@ import { CountryFlagComponent } from '../country-flag/country-flag.component';
|
||||
|
||||
import {
|
||||
CITATION_ICON,
|
||||
INFO_ICON,
|
||||
HELP_ICON,
|
||||
PATENT_ICON,
|
||||
PROJECT_ICON,
|
||||
PUBLICATION_ICON,
|
||||
TRENDING_UP_ICON,
|
||||
VERIFIED_ICON,
|
||||
} from '../icons';
|
||||
|
||||
@Component({
|
||||
@@ -43,8 +43,8 @@ export class AppInstitutionCardComponent {
|
||||
readonly PUBLICATION_ICON = PUBLICATION_ICON;
|
||||
readonly CITATION_ICON = CITATION_ICON;
|
||||
readonly PROJECT_ICON = PROJECT_ICON;
|
||||
readonly VERIFIED_ICON = VERIFIED_ICON;
|
||||
readonly INFO_ICON = INFO_ICON;
|
||||
readonly PATENT_ICON = PATENT_ICON;
|
||||
readonly HELP_ICON = HELP_ICON;
|
||||
readonly TRENDING_UP_ICON = TRENDING_UP_ICON;
|
||||
|
||||
private readonly authService = inject(AuthService);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<mat-card-content class="mat-card-content">
|
||||
<div class="chip-section">
|
||||
<div class="chip-section-header">
|
||||
<mat-icon>{{ LABEL_ICON }}</mat-icon>
|
||||
<mat-icon>{{ TOPIC_ICON }}</mat-icon>
|
||||
<span>Themen</span>
|
||||
</div>
|
||||
<div
|
||||
|
||||
@@ -12,9 +12,9 @@ import { AppTopicChipComponent } from '../app-topic-chip/app-topic-chip.componen
|
||||
import { AppAuthorChipComponent } from '../app-author-chip/app-author-chip.component';
|
||||
import {
|
||||
CITATION_ICON,
|
||||
LABEL_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
PERSON_ICON,
|
||||
TOPIC_ICON,
|
||||
} from '../icons';
|
||||
|
||||
const MAX_VISIBLE_TOPICS = 3;
|
||||
@@ -38,7 +38,7 @@ const MAX_VISIBLE_AUTHORS = 3;
|
||||
styleUrl: './app-publication-card.component.scss',
|
||||
})
|
||||
export class AppPublicationCardComponent {
|
||||
readonly LABEL_ICON = LABEL_ICON;
|
||||
readonly TOPIC_ICON = TOPIC_ICON;
|
||||
readonly PERSON_ICON = PERSON_ICON;
|
||||
readonly CITATION_ICON = CITATION_ICON;
|
||||
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
(keydown.tab)="
|
||||
filteredPersons.results?.length ? onKeydownTab($any($event)) : null
|
||||
"
|
||||
placeholder="Suche nach Personen, Themen, Projekten..."
|
||||
placeholder="Nach Personen suchen..."
|
||||
(keyup.enter)="onEnter()"
|
||||
(focus)="onFocus()" />
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
(click)="searchChange.emit('')"
|
||||
aria-label="Löschen"
|
||||
type="button">
|
||||
<mat-icon>{{ CLEAR_ICON }}</mat-icon>
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
}
|
||||
</mat-form-field>
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
import { CLEAR_ICON, SEARCH_ICON } from '../icons';
|
||||
import { CLOSE_ICON, SEARCH_ICON } from '../icons';
|
||||
|
||||
@Component({
|
||||
selector: 'app-author-institution-selector',
|
||||
@@ -29,7 +29,7 @@ import { CLEAR_ICON, SEARCH_ICON } from '../icons';
|
||||
})
|
||||
export class AuthorInstitutionSelectorComponent {
|
||||
readonly SEARCH_ICON = SEARCH_ICON;
|
||||
readonly CLEAR_ICON = CLEAR_ICON;
|
||||
readonly CLOSE_ICON = CLOSE_ICON;
|
||||
|
||||
private readonly elementRef = inject(ElementRef);
|
||||
readonly searchQuery = input<string>('');
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
(click)="searchChange.emit('')"
|
||||
aria-label="Löschen"
|
||||
type="button">
|
||||
<mat-icon>{{ CLEAR_ICON }}</mat-icon>
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
}
|
||||
</mat-form-field>
|
||||
@@ -37,10 +37,7 @@
|
||||
<li>
|
||||
<button type="button" (click)="onSelectResult(result)">
|
||||
<span class="name">{{ result.display_name }}</span>
|
||||
<span class="hint">{{
|
||||
result.last_known_institutions?.[0]?.display_name ||
|
||||
'Keine Institution'
|
||||
}}</span>
|
||||
<span class="hint">{{ getAuthorInstitutionName(result) }}</span>
|
||||
</button>
|
||||
</li>
|
||||
}
|
||||
@@ -95,7 +92,7 @@
|
||||
: 'In Visualisierung einblenden'
|
||||
">
|
||||
<mat-icon>{{
|
||||
isVisible()(auth.id) ? VISIBILITY_ICON : VISIBILITY_OFF_ICON
|
||||
isVisible()(auth.id) ? OVERVIEW_ICON : VISIBILITY_OFF_ICON
|
||||
}}</mat-icon>
|
||||
</button>
|
||||
<button
|
||||
|
||||
@@ -12,15 +12,15 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
import { AuthorAffiliationService } from '../../services/author-affiliation.service';
|
||||
import {
|
||||
ADD_ICON,
|
||||
CLEAR_ICON,
|
||||
CLOSE_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
OVERVIEW_ICON,
|
||||
PERSON_ICON,
|
||||
PIE_CHART_ICON,
|
||||
SEARCH_ICON,
|
||||
VISIBILITY_ICON,
|
||||
VISIBILITY_OFF_ICON,
|
||||
} from '../icons';
|
||||
|
||||
@@ -44,16 +44,16 @@ export interface CompareItem {
|
||||
})
|
||||
export class AuthorSelectorComponent {
|
||||
readonly SEARCH_ICON = SEARCH_ICON;
|
||||
readonly CLEAR_ICON = CLEAR_ICON;
|
||||
readonly PIE_CHART_ICON = PIE_CHART_ICON;
|
||||
readonly PERSON_ICON = PERSON_ICON;
|
||||
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
|
||||
readonly VISIBILITY_ICON = VISIBILITY_ICON;
|
||||
readonly OVERVIEW_ICON = OVERVIEW_ICON;
|
||||
readonly VISIBILITY_OFF_ICON = VISIBILITY_OFF_ICON;
|
||||
readonly CLOSE_ICON = CLOSE_ICON;
|
||||
readonly ADD_ICON = ADD_ICON;
|
||||
|
||||
private readonly elementRef = inject(ElementRef);
|
||||
private readonly authorAffiliationService = inject(AuthorAffiliationService);
|
||||
readonly activeTab = input<string>('publications');
|
||||
readonly comparisonAuthors = input<CompareItem[]>([]);
|
||||
readonly topSuggestions = input<any[]>([]);
|
||||
@@ -146,4 +146,11 @@ export class AuthorSelectorComponent {
|
||||
(i) => this.cleanId(i.id) === cleanTarget,
|
||||
);
|
||||
}
|
||||
|
||||
getAuthorInstitutionName(author: any): string {
|
||||
return (
|
||||
this.authorAffiliationService.resolveInstitution(author)?.display_name ||
|
||||
'Keine Institution'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
matTooltipPosition="above"
|
||||
[attr.aria-label]="getInstitutionTooltipText(institutions[0])"
|
||||
(click)="filterByInstitution($event, institutions[0])">
|
||||
<mat-icon class="institution-icon">{{ APARTMENT_ICON }}</mat-icon>
|
||||
<mat-icon class="institution-icon">{{ INSTITUTION_ICON }}</mat-icon>
|
||||
<span class="institution-name">{{
|
||||
institutions[0].name || institutions[0].recepient || '-'
|
||||
}}</span>
|
||||
|
||||
@@ -33,7 +33,7 @@ import {
|
||||
HighlightTerm,
|
||||
} from '../highlighted-text/highlighted-text.component';
|
||||
import { TableDetailRowComponent } from '../table-detail-row/table-detail-row.component';
|
||||
import { APARTMENT_ICON, OPEN_IN_NEW_ICON } from '../icons';
|
||||
import { INSTITUTION_ICON, OPEN_IN_NEW_ICON } from '../icons';
|
||||
|
||||
@Component({
|
||||
selector: 'app-bund-project-table',
|
||||
@@ -58,7 +58,7 @@ import { APARTMENT_ICON, OPEN_IN_NEW_ICON } from '../icons';
|
||||
})
|
||||
export class BundProjectTableComponent implements OnInit {
|
||||
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
|
||||
readonly APARTMENT_ICON = APARTMENT_ICON;
|
||||
readonly INSTITUTION_ICON = INSTITUTION_ICON;
|
||||
|
||||
private readonly activatedRoute = inject(ActivatedRoute);
|
||||
private readonly router = inject(Router);
|
||||
|
||||
@@ -50,7 +50,7 @@ tr.detail-row {
|
||||
}
|
||||
|
||||
.element-row.selected {
|
||||
background: #f0f0f0;
|
||||
background: var(--sg-primary-soft);
|
||||
}
|
||||
|
||||
.expand-cell {
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
matTooltipPosition="above"
|
||||
[attr.aria-label]="getInstitutionTooltipText(institution)"
|
||||
(click)="filterByInstitution($event, institution)">
|
||||
<mat-icon class="institution-icon">{{ APARTMENT_ICON }}</mat-icon>
|
||||
<mat-icon class="institution-icon">{{ INSTITUTION_ICON }}</mat-icon>
|
||||
<span class="institution-name">{{
|
||||
institution.institute_name_de || institution.institute_name_en
|
||||
}}</span>
|
||||
|
||||
@@ -33,8 +33,8 @@ import {
|
||||
import { TableDetailRowComponent } from '../table-detail-row/table-detail-row.component';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import {
|
||||
APARTMENT_ICON,
|
||||
CATEGORY_ICON,
|
||||
INSTITUTION_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
PERSON_ICON,
|
||||
} from '../icons';
|
||||
@@ -63,7 +63,7 @@ export class DfgProjectTableComponent implements OnInit {
|
||||
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
|
||||
readonly CATEGORY_ICON = CATEGORY_ICON;
|
||||
readonly PERSON_ICON = PERSON_ICON;
|
||||
readonly APARTMENT_ICON = APARTMENT_ICON;
|
||||
readonly INSTITUTION_ICON = INSTITUTION_ICON;
|
||||
|
||||
private readonly activatedRoute = inject(ActivatedRoute);
|
||||
private readonly router = inject(Router);
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
matTooltipPosition="above"
|
||||
[attr.aria-label]="getOrganizationTooltipText(organization)"
|
||||
(click)="filterByOrganization($event, organization)">
|
||||
<mat-icon class="institution-icon">{{ APARTMENT_ICON }}</mat-icon>
|
||||
<mat-icon class="institution-icon">{{ INSTITUTION_ICON }}</mat-icon>
|
||||
<span class="institution-name">
|
||||
{{ getOrganizationName(organization) }}
|
||||
</span>
|
||||
|
||||
@@ -40,7 +40,7 @@ import {
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import { SearchResultsStateService } from '../../../modules/keywords-search/search-results/search-results-state.service';
|
||||
import { TableDetailRowComponent } from '../table-detail-row/table-detail-row.component';
|
||||
import { APARTMENT_ICON, OPEN_IN_NEW_ICON } from '../icons';
|
||||
import { INSTITUTION_ICON, OPEN_IN_NEW_ICON } from '../icons';
|
||||
|
||||
@Component({
|
||||
selector: 'app-eu-project-table',
|
||||
@@ -66,7 +66,7 @@ import { APARTMENT_ICON, OPEN_IN_NEW_ICON } from '../icons';
|
||||
styleUrl: './eu-project-table.component.scss',
|
||||
})
|
||||
export class EuProjectTableComponent {
|
||||
readonly APARTMENT_ICON = APARTMENT_ICON;
|
||||
readonly INSTITUTION_ICON = INSTITUTION_ICON;
|
||||
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
|
||||
|
||||
private readonly activatedRoute = inject(ActivatedRoute);
|
||||
|
||||
@@ -12,13 +12,11 @@ export const KEYWORDS_ICON = 'join_left' as const;
|
||||
export const NEWS_ICON = 'newspaper' as const;
|
||||
export const ORGANIZATIONS_ICON = 'domain' as const;
|
||||
export const PATENT_ICON = 'workspace_premium' as const;
|
||||
export const PERSON_CHECK_ICON = 'person_check' as const; // person check and person look the same to me
|
||||
export const PERSON_CHECK_ICON = 'person_check' as const;
|
||||
export const PERSON_ICON = 'person' as const;
|
||||
export const PERSONS_ICON = 'groups' as const;
|
||||
export const GROUPS_ICON = PERSONS_ICON; // TODO
|
||||
export const PROJECT_ICON = 'work' as const;
|
||||
export const PUBLICATION_ICON = 'menu_book' as const;
|
||||
export const MENU_BOOK_ICON = PUBLICATION_ICON; // TODO
|
||||
export const TOPIC_ICON = 'topic' as const;
|
||||
|
||||
export const OVERVIEW_ICON = 'visibility' as const;
|
||||
@@ -26,10 +24,11 @@ export const OVERVIEW_ICON = 'visibility' as const;
|
||||
export const NO_ACCOUNTS_ICON = 'no_accounts' as const;
|
||||
export const PERSON_OFF_ICON = 'person_off' as const; // person off and no accounts look similar
|
||||
|
||||
export const ACCOUNT_BALANCE_ICON = FUNDING_ICON; // TODO
|
||||
export const ACCOUNT_CIRCLE_ICON = 'account_circle' as const; //Person Icon in company-connections
|
||||
export const BUSINESS_ICON = 'business' as const;
|
||||
export const COMPANY_CONNECTION_ICON = BUSINESS_ICON; // TODO
|
||||
|
||||
export const DFG_ICON = 'curtains_closed' as const;
|
||||
export const BUND_ICON = 'foundation' as const;
|
||||
|
||||
// ============================================================================
|
||||
// 2. Navigation, Layout & Hierarchy Icons
|
||||
@@ -60,7 +59,6 @@ export const ADD_ICON = 'add' as const;
|
||||
export const ADD_BUSINESS_ICON = 'add_business' as const;
|
||||
export const ATTACH_FILE_ICON = 'attach_file' as const;
|
||||
export const CANCEL_ICON = 'cancel' as const;
|
||||
export const CLEAR_ICON = 'clear' as const;
|
||||
export const CLOSE_ICON = 'close' as const;
|
||||
export const DELETE_ICON = 'delete' as const;
|
||||
export const DELETE_OUTLINE_ICON = 'delete_outline' as const;
|
||||
@@ -74,7 +72,6 @@ export const MANAGE_SEARCH_ICON = 'manage_search' as const;
|
||||
export const PERSON_ADD_ICON = 'person_add' as const;
|
||||
export const PERSON_SEARCH_ICON = 'person_search' as const;
|
||||
export const PLAY_ICON = 'play_arrow' as const;
|
||||
export const PLAY_ARROW_ICON = PLAY_ICON; // TODO
|
||||
export const REFRESH_ICON = 'refresh' as const;
|
||||
export const RESTART_ICON = 'restart_alt' as const;
|
||||
export const SAVE_ICON = 'save' as const;
|
||||
@@ -100,19 +97,16 @@ export const TUNE_ICON = 'tune' as const;
|
||||
export const AI_GENERATED_ICON = 'auto_awesome' as const;
|
||||
export const BOOKMARK_BORDER_ICON = 'bookmark_border' as const;
|
||||
export const CHECK_ICON = 'check' as const;
|
||||
export const CHECK_CIRCLE_ICON = 'check_circle' as const; // similar to check but with circle
|
||||
export const CHECK_CIRCLE_ICON = 'check_circle' as const;
|
||||
export const CIRCLE_ICON = 'circle' as const;
|
||||
export const CLOUD_OFF_ICON = 'cloud_off' as const;
|
||||
export const ERROR_ICON = 'error' as const;
|
||||
export const ERROR_OUTLINE_ICON = 'error_outline' as const;
|
||||
export const FACT_CHECK_ICON = 'fact_check' as const;
|
||||
export const HELP_ICON = 'help' as const; // same as info but with question mark
|
||||
export const INFO_ICON = 'info' as const;
|
||||
export const INFO_OUTLINE_ICON = 'info_outline' as const; // same as info but inverted
|
||||
export const HELP_ICON = 'help' as const;
|
||||
export const RULE_ICON = 'rule' as const;
|
||||
export const STAR_ICON = 'star' as const;
|
||||
export const VERIFIED_ICON = 'verified' as const;
|
||||
export const VISIBILITY_ICON = OVERVIEW_ICON; // TODO
|
||||
export const VISIBILITY_OFF_ICON = 'visibility_off' as const;
|
||||
export const WARNING_ICON = 'warning' as const;
|
||||
|
||||
@@ -140,8 +134,6 @@ export const TRENDING_UP_ICON = 'trending_up' as const;
|
||||
// ============================================================================
|
||||
// 7. Other
|
||||
// ============================================================================
|
||||
export const APARTMENT_ICON = FUNDING_ICON; // TODO
|
||||
export const ARTICLE_ICON = PUBLICATION_ICON; // was 'article' (TODO change in some components like dashboard)
|
||||
export const ASSIGNMENT_ICON = 'assignment' as const;
|
||||
export const ATTACH_MONEY_ICON = 'attach_money' as const;
|
||||
export const BIOTECH_ICON = 'biotech' as const;
|
||||
@@ -160,17 +152,13 @@ export const EURO_ICON = 'euro_symbol' as const;
|
||||
export const FILE_PRESENT_ICON = 'file_present' as const;
|
||||
export const FLAG_ICON = 'flag' as const;
|
||||
export const GAVEL_ICON = 'gavel' as const;
|
||||
export const GROUP_ICON = PERSONS_ICON; //TODO (was 'group')
|
||||
export const IMAGE_ICON = 'image' as const;
|
||||
export const INSERT_DRIVE_FILE_ICON = 'insert_drive_file' as const;
|
||||
export const INTERESTS_ICON = KEYWORDS_ICON; // was 'interests'
|
||||
export const LABEL_ICON = TOPIC_ICON; //TODO
|
||||
export const LANGUAGE_ICON = 'language' as const;
|
||||
export const LIBRARY_BOOKS_ICON = 'library_books' as const;
|
||||
export const LOCATION_ICON = 'location_on' as const;
|
||||
export const MORE_INFO_ICON = 'more_info' as const;
|
||||
export const PAID_ICON = 'paid' as const;
|
||||
export const PEOPLE_ICON = PERSONS_ICON; //TODO (was 'people')
|
||||
export const PICTURE_AS_PDF_ICON = 'picture_as_pdf' as const;
|
||||
export const PUBLIC_ICON = 'public' as const;
|
||||
export const SCIENCE_ICON = 'science' as const;
|
||||
@@ -181,5 +169,4 @@ export const TRANSLATE_ICON = 'translate' as const;
|
||||
export const VOLUNTEER_ACTIVISM_ICON = 'volunteer_activism' as const;
|
||||
export const SCHOOL_ICON = 'school' as const;
|
||||
export const LOCAL_HOSPITAL_ICON = 'local_hospital' as const;
|
||||
export const WORK_ICON = PROJECT_ICON; // TODO
|
||||
export const WORK_OUTLINE_ICON = 'work_outline' as const;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<mat-icon class="pie-icon-indicator">{{
|
||||
selectedPieEntityId() === primaryInstitution()
|
||||
? PIE_CHART_ICON
|
||||
: APARTMENT_ICON
|
||||
: INSTITUTION_ICON
|
||||
}}</mat-icon>
|
||||
{{ primaryInstitutionName() }}
|
||||
</strong>
|
||||
@@ -43,7 +43,7 @@
|
||||
(click)="searchChange.emit('')"
|
||||
aria-label="Löschen"
|
||||
type="button">
|
||||
<mat-icon>{{ CLEAR_ICON }}</mat-icon>
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
}
|
||||
</mat-form-field>
|
||||
@@ -86,7 +86,7 @@
|
||||
<mat-icon class="pie-icon-indicator">{{
|
||||
selectedPieEntityId() === inst.id
|
||||
? PIE_CHART_ICON
|
||||
: APARTMENT_ICON
|
||||
: INSTITUTION_ICON
|
||||
}}</mat-icon>
|
||||
{{ inst.name }}
|
||||
</span>
|
||||
@@ -111,7 +111,7 @@
|
||||
: 'In Visualisierung einblenden'
|
||||
">
|
||||
<mat-icon>{{
|
||||
isVisible()(inst.id) ? VISIBILITY_ICON : VISIBILITY_OFF_ICON
|
||||
isVisible()(inst.id) ? OVERVIEW_ICON : VISIBILITY_OFF_ICON
|
||||
}}</mat-icon>
|
||||
</button>
|
||||
<button
|
||||
|
||||
@@ -14,13 +14,12 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
import {
|
||||
ADD_ICON,
|
||||
APARTMENT_ICON,
|
||||
CLEAR_ICON,
|
||||
CLOSE_ICON,
|
||||
INSTITUTION_ICON,
|
||||
OPEN_IN_NEW_ICON,
|
||||
OVERVIEW_ICON,
|
||||
PIE_CHART_ICON,
|
||||
SEARCH_ICON,
|
||||
VISIBILITY_ICON,
|
||||
VISIBILITY_OFF_ICON,
|
||||
} from '../icons';
|
||||
|
||||
@@ -43,12 +42,11 @@ export interface CompareItem {
|
||||
styleUrl: './institution-selector.component.scss',
|
||||
})
|
||||
export class InstitutionSelectorComponent {
|
||||
readonly APARTMENT_ICON = APARTMENT_ICON;
|
||||
readonly INSTITUTION_ICON = INSTITUTION_ICON;
|
||||
readonly PIE_CHART_ICON = PIE_CHART_ICON;
|
||||
readonly SEARCH_ICON = SEARCH_ICON;
|
||||
readonly CLEAR_ICON = CLEAR_ICON;
|
||||
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
|
||||
readonly VISIBILITY_ICON = VISIBILITY_ICON;
|
||||
readonly OVERVIEW_ICON = OVERVIEW_ICON;
|
||||
readonly VISIBILITY_OFF_ICON = VISIBILITY_OFF_ICON;
|
||||
readonly CLOSE_ICON = CLOSE_ICON;
|
||||
readonly ADD_ICON = ADD_ICON;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
(click)="searchChange.emit('')"
|
||||
aria-label="Löschen"
|
||||
type="button">
|
||||
<mat-icon>{{ CLEAR_ICON }}</mat-icon>
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
}
|
||||
</mat-form-field>
|
||||
@@ -77,7 +77,7 @@
|
||||
: 'In Visualisierung einblenden'
|
||||
">
|
||||
<mat-icon>{{
|
||||
isVisible()(c.id) ? VISIBILITY_ICON : VISIBILITY_OFF_ICON
|
||||
isVisible()(c.id) ? OVERVIEW_ICON : VISIBILITY_OFF_ICON
|
||||
}}</mat-icon>
|
||||
</button>
|
||||
<button
|
||||
@@ -125,7 +125,7 @@
|
||||
: 'In Visualisierung einblenden'
|
||||
">
|
||||
<mat-icon>{{
|
||||
isVisible()(r.id) ? VISIBILITY_ICON : VISIBILITY_OFF_ICON
|
||||
isVisible()(r.id) ? OVERVIEW_ICON : VISIBILITY_OFF_ICON
|
||||
}}</mat-icon>
|
||||
</button>
|
||||
<button
|
||||
|
||||
@@ -14,13 +14,12 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
import { AutocompleteLocationItem } from '../../../api';
|
||||
|
||||
import {
|
||||
CLEAR_ICON,
|
||||
CLOSE_ICON,
|
||||
FLAG_ICON,
|
||||
OVERVIEW_ICON,
|
||||
PIE_CHART_ICON,
|
||||
PUBLIC_ICON,
|
||||
SEARCH_ICON,
|
||||
VISIBILITY_ICON,
|
||||
VISIBILITY_OFF_ICON,
|
||||
} from '../icons';
|
||||
|
||||
@@ -44,11 +43,10 @@ export interface CompareItem {
|
||||
})
|
||||
export class LocationSelectorComponent {
|
||||
readonly SEARCH_ICON = SEARCH_ICON;
|
||||
readonly CLEAR_ICON = CLEAR_ICON;
|
||||
readonly PIE_CHART_ICON = PIE_CHART_ICON;
|
||||
readonly FLAG_ICON = FLAG_ICON;
|
||||
readonly PUBLIC_ICON = PUBLIC_ICON;
|
||||
readonly VISIBILITY_ICON = VISIBILITY_ICON;
|
||||
readonly OVERVIEW_ICON = OVERVIEW_ICON;
|
||||
readonly VISIBILITY_OFF_ICON = VISIBILITY_OFF_ICON;
|
||||
readonly CLOSE_ICON = CLOSE_ICON;
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user