256 lines
8.7 KiB
HTML
256 lines
8.7 KiB
HTML
<div class="compare-layout">
|
||
<header class="compare-header">
|
||
<h1>Autoren-Vergleich</h1>
|
||
|
||
<div class="compare-meta">
|
||
@if (keywords().length > 0) {
|
||
<div class="meta-row">
|
||
<span class="meta-label">Betrachtete Themen:</span>
|
||
<div class="meta-chip-group">
|
||
@for (keyword of keywords(); track keyword) {
|
||
<app-topic-chip
|
||
[label]="keyword"
|
||
[color]="keywordColor(keyword)" />
|
||
}
|
||
</div>
|
||
<span class="meta-operator"
|
||
>Verknüpfungsoperator: {{ operatorLabel() }}</span
|
||
>
|
||
</div>
|
||
}
|
||
@if (timespan(); as span) {
|
||
<div class="meta-row">
|
||
<span class="meta-label">Betrachteter Zeitraum:</span>
|
||
<app-chip color="secondary">
|
||
<mat-icon>{{ DATE_RANGE_ICON }}</mat-icon>
|
||
{{ span.from }}–{{ span.to }}
|
||
</app-chip>
|
||
</div>
|
||
}
|
||
@if (hasData()) {
|
||
<div class="meta-row">
|
||
<span class="meta-label">Betrachtete Personen:</span>
|
||
<div class="meta-chip-group">
|
||
@for (author of summary(); track author.authorId) {
|
||
<app-chip [color]="author.color">
|
||
<a
|
||
class="chip-link"
|
||
[routerLink]="[
|
||
'/person',
|
||
authorProfileId(author.authorId),
|
||
'overview',
|
||
]"
|
||
title="Zur Autor:innen-Seite">
|
||
{{ author.name }}
|
||
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
|
||
</a>
|
||
</app-chip>
|
||
}
|
||
</div>
|
||
</div>
|
||
}
|
||
</div>
|
||
</header>
|
||
|
||
@if (loading()) {
|
||
<p class="compare-hint">Lädt…</p>
|
||
} @else if (!hasData()) {
|
||
<p class="compare-hint">Keine Daten für die ausgewählten Autoren.</p>
|
||
} @else {
|
||
<!-- section 1: stats over the topic-filtered works -->
|
||
<section class="card">
|
||
<h2 class="card-title">
|
||
Kennzahlen der Publikationen zu den ausgewählten Themen
|
||
</h2>
|
||
<p class="card-sub">
|
||
Berücksichtigt werden ausschließlich Publikationen zu den ausgewählten
|
||
Themen im betrachteten Zeitraum. Bester Wert je Zeile ist hervorgehoben.
|
||
„–" bedeutet, dass der Wert für diese:n Autor:in nicht vorliegt.
|
||
</p>
|
||
<ng-container
|
||
[ngTemplateOutlet]="statsTable"
|
||
[ngTemplateOutletContext]="{ rows: topicRows() }" />
|
||
</section>
|
||
|
||
<!-- section 2: author-level stats, independent of the keywords and time -->
|
||
<section class="card">
|
||
<h2 class="card-title">Kennzahlen zur Person</h2>
|
||
<p class="card-sub">
|
||
Unabhängig von den ausgewählten Themen und vom Zeitraum.
|
||
</p>
|
||
<ng-container
|
||
[ngTemplateOutlet]="statsTable"
|
||
[ngTemplateOutletContext]="{ rows: staticRows() }" />
|
||
</section>
|
||
|
||
<!-- section 3: topic profile over ALL works of each author -->
|
||
<section class="card">
|
||
<h2 class="card-title">Themenprofil</h2>
|
||
<p class="card-sub">
|
||
Verteilung und Breite der Themen
|
||
<strong>über alle Publikationen</strong>
|
||
</p>
|
||
|
||
@if (profileLoading()) {
|
||
<p class="compare-hint">Lädt…</p>
|
||
} @else if (orderedProfiles().length > 0) {
|
||
<h3 class="chart-title">Themenverteilung nach Subfield</h3>
|
||
<p class="chart-hint">
|
||
Anteil je Subfield an allen Publikationen im Zeitraum, bestimmt über
|
||
das Primärthema. (Top 5)
|
||
</p>
|
||
<div
|
||
echarts
|
||
[options]="subfieldChart()"
|
||
class="profile-chart profile-chart-wide"></div>
|
||
|
||
<h3 class="chart-title">Themenbreite</h3>
|
||
<p class="chart-hint">
|
||
Einzigartige Primärthemen, Subfields und Fields über alle
|
||
Publikationen (Primärthema)
|
||
</p>
|
||
<div echarts [options]="breadthChart()" class="profile-chart"></div>
|
||
|
||
<h3 class="chart-title">Themenlandschaft</h3>
|
||
<p class="chart-hint">Field → Subfield → Thema</p>
|
||
<div class="treemap-author-tabs" role="tablist" aria-label="Autor:in">
|
||
@for (
|
||
author of orderedProfiles();
|
||
track author.author_id;
|
||
let i = $index
|
||
) {
|
||
<button
|
||
type="button"
|
||
role="tab"
|
||
class="treemap-author-tab"
|
||
[class.active]="treemapProfile()?.author_id === author.author_id"
|
||
[attr.aria-selected]="
|
||
treemapProfile()?.author_id === author.author_id
|
||
"
|
||
[style.--tab-color]="authorColor(author.author_id)"
|
||
(click)="selectTreemapAuthor(i)">
|
||
<app-chip [color]="authorColor(author.author_id)">
|
||
{{ author.display_name }}
|
||
</app-chip>
|
||
</button>
|
||
}
|
||
</div>
|
||
<app-topic-treemap
|
||
[data]="treemapData()"
|
||
[selectedNodeId]="treemapNodeId()"
|
||
(selectedNodeIdChange)="treemapNodeId.set($event)"
|
||
countLabel="Werke"></app-topic-treemap>
|
||
} @else {
|
||
<p class="compare-hint">Keine Daten für das Themenprofil.</p>
|
||
}
|
||
</section>
|
||
|
||
<app-author-research-profile
|
||
[authors]="researchProfileAuthors()"
|
||
[profiles]="orientationProfiles()"
|
||
[loading]="orientationProfilesLoading()" />
|
||
}
|
||
</div>
|
||
|
||
<ng-template #statsTable let-rows="rows">
|
||
<div class="table-scroll">
|
||
<table class="compare-table">
|
||
<thead>
|
||
<tr>
|
||
<th class="metric-col">Kennzahl</th>
|
||
@for (author of summary(); track author.authorId) {
|
||
<th class="author-col">
|
||
<app-chip [color]="author.color">
|
||
<a
|
||
class="chip-link"
|
||
[routerLink]="[
|
||
'/person',
|
||
authorProfileId(author.authorId),
|
||
'overview',
|
||
]"
|
||
title="Zur Autor:innen-Seite">
|
||
{{ author.name }}
|
||
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
|
||
</a>
|
||
</app-chip>
|
||
</th>
|
||
}
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
@for (row of rows; track row.label) {
|
||
<tr>
|
||
<th scope="row" class="metric-col">
|
||
<span class="metric-label">
|
||
{{ row.label }}
|
||
@if (row.nameMatched) {
|
||
<mat-icon
|
||
class="icon-small name-match-star"
|
||
aria-hidden="true">
|
||
{{ STAR_ICON }}
|
||
</mat-icon>
|
||
}
|
||
</span>
|
||
<span class="metric-hint">{{ row.hint }}</span>
|
||
@if (row.kind === 'group') {
|
||
<span class="position-legend">
|
||
@for (seg of row.segments; track $index; let i = $index) {
|
||
@if (i > 0) {
|
||
<span class="pos-sep">|</span>
|
||
}
|
||
<span class="pos {{ seg.colorClass }}">{{
|
||
seg.label
|
||
}}</span>
|
||
}
|
||
</span>
|
||
}
|
||
</th>
|
||
@if (row.kind === 'group') {
|
||
@for (gc of row.groupCells; track $index) {
|
||
<td class="value-cell position-cell">
|
||
@for (v of gc.values; track $index; let i = $index) {
|
||
@if (i > 0) {
|
||
<span class="pos-sep">|</span>
|
||
}
|
||
<span class="pos {{ row.segments[i].colorClass }}">
|
||
{{
|
||
v === null
|
||
? '–'
|
||
: row.segments[i].plain
|
||
? v
|
||
: row.segments[i].decimals
|
||
? (v | number: '1.2-2')
|
||
: (v | number)
|
||
}}
|
||
</span>
|
||
}
|
||
</td>
|
||
}
|
||
} @else {
|
||
@for (cell of row.cells; track $index) {
|
||
<td class="value-cell" [class.best]="cell.best">
|
||
@if (cell.raw === null) {
|
||
<span class="value-empty">–</span>
|
||
} @else if (row.decimals) {
|
||
{{ cell.raw | number: '1.2-2' }}
|
||
} @else {
|
||
{{ cell.raw | number }}
|
||
}
|
||
</td>
|
||
}
|
||
}
|
||
</tr>
|
||
}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
@if (hasNameMatchedRow(rows)) {
|
||
<p class="name-match-note">
|
||
<mat-icon class="icon-small">{{ STAR_ICON }}</mat-icon>
|
||
Diese Kennzahlen basieren auf einem automatischen Namensabgleich mit
|
||
externen Quellen, wodurch es in Einzelfällen zu Fehlzuordnungen kommen
|
||
kann.
|
||
</p>
|
||
}
|
||
</ng-template>
|