105 lines
3.1 KiB
HTML
105 lines
3.1 KiB
HTML
<div class="content">
|
|
<h1>Passende Institutionen finden</h1>
|
|
|
|
<mat-divider />
|
|
|
|
<div class="search-and-sorting">
|
|
<app-query-param-input
|
|
[label]="'Suche nach Namen'"
|
|
[debounceTime]="400"
|
|
[queryParamKey]="'search'" />
|
|
|
|
<div class="sorting">
|
|
<app-query-param-selector
|
|
[options]="sortingOptions"
|
|
[queryParamKey]="'sort_by'" />
|
|
|
|
<app-query-param-selector
|
|
[options]="sortingDirectionOptions"
|
|
[queryParamKey]="'sorting_order'" />
|
|
</div>
|
|
</div>
|
|
|
|
<mat-divider />
|
|
|
|
@let institutionPageValue = institutionPage();
|
|
|
|
@if (
|
|
institutionPageValue.elements && institutionPageValue.elements.length > 0
|
|
) {
|
|
<div class="cards">
|
|
@for (institution of institutionPageValue.elements; track $index) {
|
|
@let institutionId = extractInstitutionId(institution);
|
|
<mat-card
|
|
class="card"
|
|
appearance="outlined"
|
|
[routerLink]="
|
|
institution.id
|
|
? ['/institution', institution.id.split('/').pop() ?? '']
|
|
: null
|
|
">
|
|
<mat-card-header>
|
|
<mat-card-title>{{ getDisplayName(institution) }}</mat-card-title>
|
|
<mat-card-subtitle
|
|
>{{ institution.geo?.city }},
|
|
{{ institution.geo?.country }}</mat-card-subtitle
|
|
>
|
|
</mat-card-header>
|
|
|
|
<mat-card-content class="card-content">
|
|
<mat-divider />
|
|
<div class="card-metadata">
|
|
<span>Publikationen: {{ institution.works_count }}</span>
|
|
<span>Zitationen: {{ institution.cited_by_count }}</span>
|
|
</div>
|
|
<mat-divider />
|
|
</mat-card-content>
|
|
|
|
<mat-card-footer>
|
|
<mat-card-actions>
|
|
<a
|
|
mat-button
|
|
[routerLink]="['/institution', institutionId, 'overview']"
|
|
(click)="$event.stopPropagation()">
|
|
<mat-icon>info</mat-icon>
|
|
Übersicht
|
|
</a>
|
|
<a
|
|
mat-button
|
|
[routerLink]="['/institution', institutionId, 'publications']"
|
|
(click)="$event.stopPropagation()">
|
|
<mat-icon>article</mat-icon>
|
|
Publikationen
|
|
</a>
|
|
<a
|
|
mat-button
|
|
[routerLink]="['/institution', institutionId, 'projects']"
|
|
(click)="$event.stopPropagation()">
|
|
<mat-icon>work</mat-icon>
|
|
Projekte
|
|
</a>
|
|
<a
|
|
mat-button
|
|
[routerLink]="['/institution', institutionId, 'patents']"
|
|
(click)="$event.stopPropagation()">
|
|
<mat-icon>verified</mat-icon>
|
|
Patente
|
|
</a>
|
|
</mat-card-actions>
|
|
</mat-card-footer>
|
|
</mat-card>
|
|
}
|
|
</div>
|
|
} @else {
|
|
<div class="no-results">
|
|
<p>Keine passenden Institutionen gefunden.</p>
|
|
</div>
|
|
}
|
|
|
|
<mat-divider />
|
|
|
|
<app-query-param-paginator
|
|
[total]="institutionPageValue.total ?? 0"
|
|
[pageSizeOptions]="[10, 20, 50]" />
|
|
</div>
|