adjusted view for subject classifications

This commit is contained in:
2026-08-03 20:28:39 +02:00
parent 9d875b3935
commit e5f9d8cfdf
6 changed files with 181 additions and 51 deletions
@@ -27,17 +27,41 @@
<mat-icon>open_in_new</mat-icon>
</a>
</ng-template>
<ng-template #detailRowTmp let-element>
<div class="classification-container">
@for (classification of element.subject_classifications; track $index) {
<p>
{{ classification.wissenschaftsbereich || '-' }}
→ {{ classification.fachkollegium || '-' }} →
{{ classification.fachgebiet || '-' }} →
{{ classification.fach || '-' }}
</p>
<ng-template #detailRowTmp let-project>
@let classifications = getProjectClassifications(project);
@let isClassificationsExpanded = isProjectClassificationsExpanded(project);
@let visibleClassifications =
isClassificationsExpanded ? classifications : classifications.slice(0, 3);
<div
class="classification-tags"
aria-label="Fachsystematik"
style="padding: 0.5rem 0.5rem">
@for (classification of visibleClassifications; track $index) {
<span
class="publication-institution-tag classification-tag"
[matTooltip]="getClassificationTooltipText(classification)"
matTooltipPosition="above"
[attr.aria-label]="getClassificationTooltipText(classification)">
<mat-icon class="institution-icon">category</mat-icon>
<span class="institution-name">{{
getClassificationFullChain(classification)
}}</span>
</span>
} @empty {
<span>-</span>
<span class="empty-text">-</span>
}
@if (classifications.length > 3) {
<button
type="button"
class="publication-institution-more"
[attr.aria-expanded]="isClassificationsExpanded"
(click)="toggleProjectClassificationsExpansion(project)">
{{
isClassificationsExpanded
? 'weniger'
: '+' + (classifications.length - 3)
}}
</button>
}
</div>
</ng-template>