167 lines
4.9 KiB
HTML
167 lines
4.9 KiB
HTML
<div class="content">
|
|
<div class="description-container">
|
|
<h5 style="font-weight: bold">Netzwerk</h5>
|
|
<p>Zusammenarbeit und Verbindungen im wissenschaftlichen Netzwerk.</p>
|
|
</div>
|
|
|
|
<div class="cards">
|
|
<app-person-network-graph
|
|
[collaborationNetwork]="collaborationNetwork()"
|
|
(handleNodeClick)="handleNodeClick($event)"
|
|
style="width: 50%" />
|
|
|
|
<div class="right-card">
|
|
<form [formGroup]="filterForm">
|
|
<div>
|
|
<mat-button-toggle-group
|
|
class="toggle-group"
|
|
aria-label="Select view"
|
|
(change)="onToggleChange($event)"
|
|
formControlName="displayedTable"
|
|
style="margin-top: 20px; width: 100%">
|
|
<mat-button-toggle value="collaborators">
|
|
Kollaborierende
|
|
</mat-button-toggle>
|
|
<mat-button-toggle value="publications"
|
|
>Publikationen</mat-button-toggle
|
|
>
|
|
<mat-button-toggle value="institutions">
|
|
Institutionen
|
|
</mat-button-toggle>
|
|
</mat-button-toggle-group>
|
|
<button mat-stroked-button type="button" (click)="openFilterDialog()">
|
|
<mat-icon>filter_alt</mat-icon>
|
|
Filter
|
|
</button>
|
|
</div>
|
|
<mat-form-field style="width: 100%">
|
|
<mat-label>{{ this.searchTermLabel() }}</mat-label>
|
|
<input
|
|
matInput
|
|
#input
|
|
appearance="outline"
|
|
formControlName="searchTerm" />
|
|
<mat-icon matPrefix>search</mat-icon>
|
|
<button matIconButton matSuffix (click)="clearSearch()">
|
|
<mat-icon>clear</mat-icon>
|
|
</button>
|
|
</mat-form-field>
|
|
</form>
|
|
|
|
<mat-card appearance="outlined">
|
|
<mat-card-content class="scroll-viewport-container">
|
|
@if (this.displayedTable() === 'collaborators') {
|
|
<app-data-table
|
|
[columns]="collaboratorsColumns"
|
|
[data]="collaboratorsData"
|
|
[filterTerm]="searchTerm()"
|
|
[detailTemplate]="collaboratorsDetailRow"
|
|
[maxHeight]="'100%'" />
|
|
} @else if (this.displayedTable() === 'publications') {
|
|
<app-data-table
|
|
[columns]="publicationsColumns"
|
|
[data]="publicationsData"
|
|
[filterTerm]="searchTerm()"
|
|
[detailTemplate]="publicationsDetailRow"
|
|
[maxHeight]="'100%'" />
|
|
} @else if (this.displayedTable() === 'institutions') {
|
|
<app-data-table
|
|
[columns]="institutionsColumns"
|
|
[data]="institutionsData"
|
|
[filterTerm]="searchTerm()"
|
|
[detailTemplate]="institutionsDetailRow"
|
|
[maxHeight]="'100%'" />
|
|
}
|
|
</mat-card-content>
|
|
</mat-card>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="summary-container">
|
|
@for (summary of this.summaryCards(); track $index) {
|
|
<app-info-card
|
|
[icon]="summary.icon"
|
|
[value]="summary.value.toString()"
|
|
[description]="summary.description" />
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
<ng-template #collaboratorsActionTmp let-element>
|
|
<a mat-icon-button color="primary" [routerLink]="['/person', element.id]">
|
|
<mat-icon>open_in_new</mat-icon>
|
|
</a>
|
|
</ng-template>
|
|
|
|
<ng-template #collaboratorsFrequencyTmp let-element>
|
|
{{ element.works.length }}
|
|
</ng-template>
|
|
|
|
<ng-template #collaboratorsDetailRow let-element>
|
|
<div class="detail-row">
|
|
<ul>
|
|
@for (work of element.works; track $index) {
|
|
<li>
|
|
<a class="work-link" [routerLink]="['/publication', work.id]">
|
|
{{ work.title }}
|
|
</a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
</ng-template>
|
|
|
|
<ng-template #publicationsActionTmp let-element>
|
|
<a
|
|
mat-icon-button
|
|
color="primary"
|
|
[routerLink]="['/publication', element.id]">
|
|
<mat-icon>open_in_new</mat-icon>
|
|
</a>
|
|
</ng-template>
|
|
|
|
<ng-template #publicationsCollaborationFrequencyTmp let-element>
|
|
{{ element.collaborators.length }}
|
|
</ng-template>
|
|
|
|
<ng-template #publicationsDetailRow let-element>
|
|
<div class="detail-row">
|
|
<ul>
|
|
@for (collaborator of element.collaborators; track $index) {
|
|
<li>
|
|
<a class="person-link" [routerLink]="['/person', collaborator.id]">
|
|
{{ collaborator.name }}
|
|
</a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
</ng-template>
|
|
|
|
<ng-template #institutionsActionTmp let-element>
|
|
<a
|
|
mat-icon-button
|
|
color="primary"
|
|
[routerLink]="['/institution', element.id]">
|
|
<mat-icon>open_in_new</mat-icon>
|
|
</a>
|
|
</ng-template>
|
|
|
|
<ng-template #institutionsFrequencyTmp let-element>
|
|
{{ element.collaborators.length }}
|
|
</ng-template>
|
|
|
|
<ng-template #institutionsDetailRow let-element>
|
|
<div class="detail-row">
|
|
<ul>
|
|
@for (collaborator of element.collaborators; track $index) {
|
|
<li>
|
|
<a class="person-link" [routerLink]="['/person', collaborator.id]">
|
|
{{ collaborator.name }}
|
|
</a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
</div></ng-template
|
|
>
|