166 lines
5.3 KiB
HTML
166 lines
5.3 KiB
HTML
@if (!isPersonLoading()) {
|
|
<section class="person-hero">
|
|
<div class="profile-card">
|
|
<div class="profile-avatar">{{ initials() }}</div>
|
|
<div class="profile-main">
|
|
<div class="name-line">
|
|
<span>Person</span>
|
|
<h1>{{ displayName() }}</h1>
|
|
<button
|
|
type="button"
|
|
class="profile-bookmark-button"
|
|
[class.bookmarked]="bookmarkService.isBookmarked(person()?.id)"
|
|
[attr.aria-label]="
|
|
bookmarkService.isBookmarked(person()?.id)
|
|
? 'Bookmark entfernen'
|
|
: 'Person bookmarken'
|
|
"
|
|
[matTooltip]="
|
|
bookmarkService.isBookmarked(person()?.id)
|
|
? 'Bookmark entfernen'
|
|
: 'Person bookmarken'
|
|
"
|
|
(click)="toggleBookmark()">
|
|
<mat-icon>{{
|
|
bookmarkService.isBookmarked(person()?.id)
|
|
? 'bookmark'
|
|
: 'bookmark_border'
|
|
}}</mat-icon>
|
|
</button>
|
|
</div>
|
|
<div class="institution-line">
|
|
<mat-icon class="institution-icon">apartment</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 (
|
|
worksCount() !== null || citedByCount() !== null || h_index() !== null
|
|
) {
|
|
<span class="stats-line">
|
|
@if (worksCount() !== null) {
|
|
<span class="stat-item">
|
|
<mat-icon class="stat-icon">menu_book</mat-icon>
|
|
{{ worksCount() | number }} Publikationen
|
|
</span>
|
|
}
|
|
@if (worksCount() !== null && citedByCount() !== null) {
|
|
·
|
|
}
|
|
@if (citedByCount() !== null) {
|
|
<span class="stat-item">
|
|
<mat-icon class="stat-icon">format_quote</mat-icon>
|
|
{{ citedByCount() | number }} Zitationen
|
|
</span>
|
|
}
|
|
@if (
|
|
(worksCount() !== null || citedByCount() !== null) &&
|
|
h_index() !== null
|
|
) {
|
|
·
|
|
}
|
|
@if (h_index() !== null) {
|
|
<span
|
|
class="stat-item has-tooltip"
|
|
[matTooltip]="
|
|
'Der h-Index beträgt ' +
|
|
h_index() +
|
|
': ' +
|
|
h_index() +
|
|
' Publikationen wurden jeweils mindestens ' +
|
|
h_index() +
|
|
'-mal zitiert.'
|
|
"
|
|
matTooltipPosition="right"
|
|
[matTooltipShowDelay]="250">
|
|
<mat-icon class="stat-icon">trending_up</mat-icon>
|
|
h-Index {{ h_index() }}
|
|
</span>
|
|
}
|
|
</span>
|
|
}
|
|
@if (displayCareerStage() || orcid()) {
|
|
<div class="meta-line">
|
|
<app-career-stage-chip
|
|
[careerStage]="displayCareerStage()"
|
|
[activeYears]="person()?.career_metrics?.active_years" />
|
|
@if (orcid(); as orcidId) {
|
|
<a
|
|
class="orcid-chip"
|
|
[href]="orcidUrl()"
|
|
target="_blank"
|
|
rel="noopener"
|
|
matTooltip="ORCID-Profil öffnen"
|
|
matTooltipPosition="right"
|
|
[matTooltipShowDelay]="250">
|
|
<mat-icon>verified</mat-icon>
|
|
{{ orcidId }}
|
|
</a>
|
|
}
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
<aside class="sidebar">
|
|
<div class="bio-card">
|
|
@if (isBioLoading()) {
|
|
<app-loading
|
|
text="Biografie wird geladen..."
|
|
icon="description"
|
|
[size]="150"
|
|
[diameter]="150"></app-loading>
|
|
} @else if (personBio() != null) {
|
|
<h3>Biografie</h3>
|
|
<p>{{ personBio() }}</p>
|
|
}
|
|
</div>
|
|
</aside>
|
|
<app-person-interesting
|
|
[topics]="primaryTopicCounts()"
|
|
[loading]="isTopicsLoading()"
|
|
[personName]="personName()"
|
|
[personPublicationsLink]="personPublicationsLink()"
|
|
(tagClick)="onInterestingTagClick($event)"></app-person-interesting>
|
|
</section>
|
|
@if (this.links()) {
|
|
<app-link-tab-nav-bar
|
|
#navBar
|
|
[links]="links()"
|
|
[tabPanel]="tabPanel"></app-link-tab-nav-bar>
|
|
}
|
|
} @else {
|
|
<app-loading
|
|
text="Person wird geladen..."
|
|
icon="person"
|
|
[size]="150"
|
|
[diameter]="150"></app-loading>
|
|
}
|
|
<mat-tab-nav-panel #tabPanel class="person-panel">
|
|
@let activeLink = this.activeLink();
|
|
@if (activeLink) {
|
|
<div class="description-container">
|
|
@if (activeLink.label) {
|
|
<h5>{{ activeLink.label }}</h5>
|
|
}
|
|
@if (activeLink.description) {
|
|
<span class="description">{{ activeLink.description }}</span>
|
|
}
|
|
</div>
|
|
}
|
|
<div class="content">
|
|
<router-outlet></router-outlet>
|
|
</div>
|
|
</mat-tab-nav-panel>
|