517 lines
18 KiB
HTML
517 lines
18 KiB
HTML
<div class="page">
|
|
<div>
|
|
<h6>Publikationen</h6>
|
|
<p>Übersicht der wissenschaftlichen Veröffentlichungen.</p>
|
|
</div>
|
|
<mat-accordion [multi]="true" app>
|
|
<mat-expansion-panel class="mat-elevation-z1">
|
|
<mat-expansion-panel-header>
|
|
<mat-panel-title>Forschungszwecke</mat-panel-title>
|
|
<mat-panel-description
|
|
>{{ foundationAmount() }} Grundlagenforschung,
|
|
{{ applicationAmount() }} anwendungsbasierte
|
|
Forschung</mat-panel-description
|
|
>
|
|
</mat-expansion-panel-header>
|
|
<div
|
|
echarts
|
|
[options]="chartOption"
|
|
style="height: 300px; width: 100%"></div>
|
|
</mat-expansion-panel>
|
|
<mat-expansion-panel class="mat-elevation-z1" [expanded]="true">
|
|
<mat-expansion-panel-header>
|
|
<mat-panel-title>Publikationsliste</mat-panel-title>
|
|
<mat-panel-description
|
|
>{{ totalElements() }} Publikationen</mat-panel-description
|
|
>
|
|
</mat-expansion-panel-header>
|
|
<div class="publication-filter-stack">
|
|
<form class="publication-filters">
|
|
<mat-form-field>
|
|
<mat-icon matPrefix class="filter-prefix-icon"
|
|
>calendar_today</mat-icon
|
|
>
|
|
<mat-select
|
|
placeholder="Jahr"
|
|
multiple
|
|
[panelWidth]="null"
|
|
(selectionChange)="handleYearSelectionChange($event)"
|
|
(opened)="focusSelectSearch(yearSearchInput)"
|
|
[value]="this.selectedYearsQueryParams()">
|
|
<mat-select-trigger>{{
|
|
yearSelectionSummary()
|
|
}}</mat-select-trigger>
|
|
<div class="select-search" (click)="$event.stopPropagation()">
|
|
<mat-icon class="select-search__icon">search</mat-icon>
|
|
<input
|
|
#yearSearchInput
|
|
type="text"
|
|
class="select-search__input"
|
|
placeholder="Jahr suchen…"
|
|
(keydown)="$event.stopPropagation()" />
|
|
</div>
|
|
@for (year of filteredYearOptions(); track year) {
|
|
<mat-option [value]="year">{{ year }}</mat-option>
|
|
} @empty {
|
|
<div class="select-search__empty">Keine Treffer</div>
|
|
}
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field>
|
|
<mat-icon matPrefix class="filter-prefix-icon">category</mat-icon>
|
|
<mat-select
|
|
placeholder="Typ"
|
|
multiple
|
|
[panelWidth]="null"
|
|
(selectionChange)="handleTypeSelectionChange($event)"
|
|
(opened)="focusSelectSearch(typeSearchInput)"
|
|
[value]="this.selectedTypesQueryParams()">
|
|
<mat-select-trigger>{{
|
|
typeSelectionSummary()
|
|
}}</mat-select-trigger>
|
|
<div class="select-search" (click)="$event.stopPropagation()">
|
|
<mat-icon class="select-search__icon">search</mat-icon>
|
|
<input
|
|
#typeSearchInput
|
|
type="text"
|
|
class="select-search__input"
|
|
[formControl]="typeSearchControl"
|
|
placeholder="Typ suchen…"
|
|
(keydown)="$event.stopPropagation()" />
|
|
</div>
|
|
@for (type of filteredTypeOptions(); track type.value) {
|
|
<mat-option [value]="type.value">{{ type.label }}</mat-option>
|
|
} @empty {
|
|
<div class="select-search__empty">Keine Treffer</div>
|
|
}
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field>
|
|
<mat-icon matPrefix class="filter-prefix-icon">translate</mat-icon>
|
|
<mat-select
|
|
placeholder="Sprache"
|
|
multiple
|
|
[panelWidth]="null"
|
|
(selectionChange)="handleLanguageSelectionChange($event)"
|
|
(opened)="focusSelectSearch(languageSearchInput)"
|
|
[value]="this.selectedLanguagesQueryParams()">
|
|
<mat-select-trigger>{{
|
|
languageSelectionSummary()
|
|
}}</mat-select-trigger>
|
|
<div class="select-search" (click)="$event.stopPropagation()">
|
|
<mat-icon class="select-search__icon">search</mat-icon>
|
|
<input
|
|
#languageSearchInput
|
|
type="text"
|
|
class="select-search__input"
|
|
[formControl]="languageSearchControl"
|
|
placeholder="Sprache suchen…"
|
|
(keydown)="$event.stopPropagation()" />
|
|
</div>
|
|
@for (
|
|
language of filteredLanguageOptions();
|
|
track language.value
|
|
) {
|
|
<mat-option [value]="language.value">{{
|
|
language.label
|
|
}}</mat-option>
|
|
} @empty {
|
|
<div class="select-search__empty">Keine Treffer</div>
|
|
}
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field class="institution-filter">
|
|
<mat-icon matPrefix class="filter-prefix-icon">apartment</mat-icon>
|
|
<input
|
|
type="text"
|
|
matInput
|
|
[formControl]="institutionSearchControl"
|
|
[matAutocomplete]="institutionAutocomplete"
|
|
placeholder="Institution suchen" />
|
|
<mat-autocomplete
|
|
#institutionAutocomplete="matAutocomplete"
|
|
[displayWith]="displayInstitution"
|
|
(optionSelected)="selectInstitution($event)">
|
|
@for (institution of institutionOptions; track institution.id) {
|
|
<mat-option [value]="institution">
|
|
<span>{{ institution.display_name }}</span>
|
|
@if (institution.hint) {
|
|
<small>{{ institution.hint }}</small>
|
|
}
|
|
</mat-option>
|
|
}
|
|
@if (
|
|
!institutionLookupLoading &&
|
|
institutionOptions.length === 0 &&
|
|
institutionSearchControl.value
|
|
) {
|
|
<mat-option disabled>Keine Institution gefunden</mat-option>
|
|
}
|
|
</mat-autocomplete>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field class="topic-filter">
|
|
<mat-icon matPrefix class="filter-prefix-icon">label</mat-icon>
|
|
<input
|
|
type="text"
|
|
matInput
|
|
[formControl]="topicSearchControl"
|
|
[matAutocomplete]="topicAutocomplete"
|
|
placeholder="Thema suchen" />
|
|
<mat-autocomplete
|
|
#topicAutocomplete="matAutocomplete"
|
|
[displayWith]="displayTopic"
|
|
(optionSelected)="selectTopic($event)">
|
|
@for (topic of topicOptions; track topic.id) {
|
|
<mat-option [value]="topic">
|
|
<span>{{ topic.display_name }}</span>
|
|
@if (topic.hint) {
|
|
<small>{{ topic.hint }}</small>
|
|
}
|
|
</mat-option>
|
|
}
|
|
@if (
|
|
!topicLookupLoading &&
|
|
topicOptions.length === 0 &&
|
|
topicSearchControl.value
|
|
) {
|
|
<mat-option disabled>Kein Thema gefunden</mat-option>
|
|
}
|
|
</mat-autocomplete>
|
|
</mat-form-field>
|
|
|
|
<button
|
|
class="reset-filter-btn"
|
|
mat-stroked-button
|
|
type="button"
|
|
(click)="clearFilters()"
|
|
aria-label="Filter zurücksetzen">
|
|
<mat-icon>filter_alt_off</mat-icon>
|
|
<span>Zurücksetzen</span>
|
|
</button>
|
|
</form>
|
|
|
|
@if (
|
|
selectedInstitutionIdsQueryParams().length ||
|
|
selectedTopicIdsQueryParams().length ||
|
|
selectedYearsQueryParams().length ||
|
|
selectedTypesQueryParams().length ||
|
|
selectedLanguagesQueryParams().length
|
|
) {
|
|
<div class="active-filters-row" aria-label="Aktive Filter">
|
|
<span class="active-filters-label">Aktive Filter:</span>
|
|
<div class="chips-container">
|
|
@for (year of selectedYearsQueryParams(); track year) {
|
|
<span class="active-meta-filter">
|
|
<span class="filter-meta-chip">
|
|
<mat-icon class="filter-meta-chip__icon"
|
|
>calendar_today</mat-icon
|
|
>
|
|
<span class="filter-meta-chip__label">{{ year }}</span>
|
|
</span>
|
|
<button
|
|
type="button"
|
|
class="remove-chip-btn"
|
|
(click)="toggleYearFilter(year)"
|
|
[attr.aria-label]="'Jahresfilter ' + year + ' entfernen'">
|
|
<mat-icon>close</mat-icon>
|
|
</button>
|
|
</span>
|
|
}
|
|
@for (type of selectedTypesQueryParams(); track type) {
|
|
<span class="active-meta-filter">
|
|
<span class="filter-meta-chip">
|
|
<mat-icon class="filter-meta-chip__icon">category</mat-icon>
|
|
<span class="filter-meta-chip__label">{{ type }}</span>
|
|
</span>
|
|
<button
|
|
type="button"
|
|
class="remove-chip-btn"
|
|
(click)="toggleTypeFilter(type)"
|
|
[attr.aria-label]="'Typfilter ' + type + ' entfernen'">
|
|
<mat-icon>close</mat-icon>
|
|
</button>
|
|
</span>
|
|
}
|
|
@for (
|
|
language of selectedLanguagesQueryParams();
|
|
track language
|
|
) {
|
|
<span class="active-meta-filter">
|
|
<span class="filter-meta-chip">
|
|
<mat-icon class="filter-meta-chip__icon"
|
|
>translate</mat-icon
|
|
>
|
|
<span class="filter-meta-chip__label">{{
|
|
language | languageCode
|
|
}}</span>
|
|
</span>
|
|
<button
|
|
type="button"
|
|
class="remove-chip-btn"
|
|
(click)="toggleLanguageFilter(language)"
|
|
[attr.aria-label]="
|
|
'Sprachfilter ' + (language | languageCode) + ' entfernen'
|
|
">
|
|
<mat-icon>close</mat-icon>
|
|
</button>
|
|
</span>
|
|
}
|
|
@for (topic of selectedTopics(); track topic.id) {
|
|
<span class="active-meta-filter">
|
|
<span
|
|
class="filter-topic-chip"
|
|
[style.--topic-color]="getWorkTopicColor(topic)"
|
|
[matTooltip]="getSelectedWorkTopicTooltip(topic)"
|
|
matTooltipClass="topic-chip-tooltip"
|
|
[matTooltipDisabled]="!getSelectedWorkTopicTooltip(topic)">
|
|
<mat-icon class="filter-topic-chip__icon">label</mat-icon>
|
|
<span class="filter-topic-chip__label">{{
|
|
topic.display_name
|
|
}}</span>
|
|
</span>
|
|
<button
|
|
type="button"
|
|
class="remove-chip-btn"
|
|
(click)="removeTopic(topic)"
|
|
[attr.aria-label]="
|
|
'Themenfilter ' + topic.display_name + ' entfernen'
|
|
">
|
|
<mat-icon>close</mat-icon>
|
|
</button>
|
|
</span>
|
|
}
|
|
@for (
|
|
institution of selectedInstitutions();
|
|
track institution.id
|
|
) {
|
|
@let instCountry = selectedInstitutionCountry(institution);
|
|
<span class="active-institution-filter">
|
|
<span class="filter-institution-chip">
|
|
<mat-icon class="institution-icon">apartment</mat-icon>
|
|
<span class="institution-name">{{
|
|
institution.display_name
|
|
}}</span>
|
|
@if (instCountry) {
|
|
<img
|
|
alt=""
|
|
class="flag-img"
|
|
[src]="
|
|
'https://flagcdn.io/' +
|
|
instCountry.toLowerCase() +
|
|
'.svg'
|
|
"
|
|
height="10" />
|
|
<span class="country-code">{{
|
|
instCountry.toUpperCase()
|
|
}}</span>
|
|
}
|
|
<mat-icon
|
|
class="institution-open-icon"
|
|
[routerLink]="[
|
|
'/institution',
|
|
extractRawId(institution.id),
|
|
]"
|
|
aria-label="Institutionsseite öffnen"
|
|
>open_in_new</mat-icon
|
|
>
|
|
</span>
|
|
<button
|
|
type="button"
|
|
class="remove-chip-btn"
|
|
(click)="removeInstitution(institution)"
|
|
aria-label="Institutionsfilter entfernen">
|
|
<mat-icon>close</mat-icon>
|
|
</button>
|
|
</span>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
<app-data-table
|
|
[columns]="workColumns"
|
|
[data]="elements()"
|
|
queryParamSortKey="sort_by"
|
|
queryParamSortDirectionKey="sort_direction" />
|
|
<app-query-param-paginator
|
|
[total]="totalElements()"
|
|
queryParamPageKey="page"
|
|
queryParamSizeKey="size"
|
|
[pageSizeOptions]="paginationService.options" />
|
|
</mat-expansion-panel>
|
|
</mat-accordion>
|
|
</div>
|
|
|
|
<ng-template #titleTmp let-work>
|
|
<span>{{ work.title }}</span>
|
|
</ng-template>
|
|
|
|
<ng-template #typeTmp let-work>
|
|
@if (work.type) {
|
|
<button
|
|
type="button"
|
|
class="type-filter-btn"
|
|
[class.active]="isTypeActive(work.type)"
|
|
matTooltip="Nach Typ filtern"
|
|
matTooltipPosition="above"
|
|
(click)="toggleTypeFilter(work.type)">
|
|
<app-chip [color]="typeColor(work.type)">
|
|
{{ work.type | workType }}
|
|
</app-chip>
|
|
</button>
|
|
} @else {
|
|
<span class="empty-text">-</span>
|
|
}
|
|
</ng-template>
|
|
|
|
<ng-template #yearTmp let-work>
|
|
@if (work.publication_year) {
|
|
<button
|
|
type="button"
|
|
class="cell-filter-pill"
|
|
[class.active]="isYearActive(work.publication_year)"
|
|
matTooltip="Nach Jahr filtern"
|
|
matTooltipPosition="above"
|
|
(click)="toggleYearFilter(work.publication_year)">
|
|
{{ work.publication_year }}
|
|
</button>
|
|
} @else {
|
|
<span class="empty-text">-</span>
|
|
}
|
|
</ng-template>
|
|
|
|
<ng-template #languageTmp let-work>
|
|
@if (work.language) {
|
|
<button
|
|
type="button"
|
|
class="cell-filter-pill"
|
|
[class.active]="isLanguageActive(work.language_code)"
|
|
matTooltip="Nach Sprache filtern"
|
|
matTooltipPosition="above"
|
|
(click)="toggleLanguageFilter(work.language_code)">
|
|
{{ work.language_code | languageCode }}
|
|
</button>
|
|
} @else {
|
|
<span class="empty-text">-</span>
|
|
}
|
|
</ng-template>
|
|
|
|
<ng-template #institutionsTmp let-work>
|
|
@let publicationInstitutions = work.institutions ?? [];
|
|
@let institutionsExpanded = true;
|
|
@let visibleInstitutions =
|
|
institutionsExpanded
|
|
? publicationInstitutions
|
|
: publicationInstitutions.slice(0, 3);
|
|
<div
|
|
class="institution-tags"
|
|
aria-label="Institutionen"
|
|
style="padding: 0.5rem 0">
|
|
@for (
|
|
institution of visibleInstitutions;
|
|
track institution.institution_id
|
|
) {
|
|
<button
|
|
type="button"
|
|
class="publication-institution-tag"
|
|
[class.active]="isInstitutionActive(institution.institution_id!)"
|
|
[matTooltip]="institution.institution_name"
|
|
matTooltipPosition="above"
|
|
[attr.aria-label]="
|
|
'Nach Institution ' + institution.institution_name + ' filtern'
|
|
"
|
|
(click)="
|
|
filterByInstitution({
|
|
id: institution.institution_id!,
|
|
name: institution.institution_name || '',
|
|
})
|
|
">
|
|
<mat-icon class="institution-icon">apartment</mat-icon>
|
|
<span class="institution-name">{{ institution.institution_name }}</span>
|
|
@if (institution.institution_country_code) {
|
|
<img
|
|
alt=""
|
|
class="flag-img"
|
|
[src]="
|
|
'https://flagcdn.io/' +
|
|
institution.institution_country_code.toLowerCase() +
|
|
'.svg'
|
|
"
|
|
height="10" />
|
|
<span class="country-code">{{
|
|
institution.institution_country_code.toUpperCase()
|
|
}}</span>
|
|
}
|
|
</button>
|
|
} @empty {
|
|
<span class="empty-text">-</span>
|
|
}
|
|
@if (publicationInstitutions.length > 3) {
|
|
<button
|
|
type="button"
|
|
class="publication-institution-more"
|
|
[attr.aria-expanded]="institutionsExpanded"
|
|
(click)="toggleInstitutions(work)">
|
|
{{
|
|
institutionsExpanded
|
|
? 'weniger'
|
|
: '+' + (publicationInstitutions.length - 3)
|
|
}}
|
|
</button>
|
|
}
|
|
</div>
|
|
</ng-template>
|
|
|
|
<ng-template #topicsTmp let-work>
|
|
@let publicationTopics = work.topics ?? [];
|
|
@let topicsExpanded = isTopicsExpanded(work);
|
|
@let visibleTopics =
|
|
topicsExpanded ? publicationTopics : publicationTopics.slice(0, 3);
|
|
<div class="topic-chips" aria-label="Themen" style="padding: 0.5rem 0">
|
|
@for (topic of visibleTopics; track topic.id) {
|
|
<app-topic-chip
|
|
size="mini"
|
|
[label]="topic.display_name || ''"
|
|
[description]="topic.description"
|
|
[subfieldName]="topic.subfield?.display_name"
|
|
[fieldName]="topic.field?.display_name"
|
|
[domainName]="topic.domain?.display_name"
|
|
[color]="getWorkTopicColor(topic)"
|
|
[disabled]="!topic.id"
|
|
[active]="isTopicActive(topic)"
|
|
(chipClick)="filterByTopic(topic)">
|
|
</app-topic-chip>
|
|
} @empty {
|
|
<span class="empty-text">-</span>
|
|
}
|
|
@if (publicationTopics.length > 3) {
|
|
<button
|
|
type="button"
|
|
class="publication-topic-more"
|
|
[attr.aria-expanded]="topicsExpanded"
|
|
(click)="toggleTopics(work)">
|
|
{{ topicsExpanded ? 'weniger' : '+' + (publicationTopics.length - 3) }}
|
|
</button>
|
|
}
|
|
</div>
|
|
</ng-template>
|
|
|
|
<ng-template #citationsTmp let-work>
|
|
{{ work.cited_by_count ?? 0 }}
|
|
</ng-template>
|
|
|
|
<ng-template #actionsTmp let-work>
|
|
<a
|
|
mat-icon-button
|
|
color="primary"
|
|
[routerLink]="['/publication', extractRawId(work.id)]"
|
|
matTooltip="Details anzeigen">
|
|
<mat-icon>open_in_new</mat-icon>
|
|
</a>
|
|
</ng-template>
|