old chips replaced for oa_topics and oa_authors

This commit is contained in:
2026-07-30 01:24:30 +02:00
parent 9a5cb9e9b0
commit 32616fe6aa
6 changed files with 35 additions and 59 deletions
@@ -48,19 +48,13 @@
<div class="author-tags" aria-label="Autoren" style="padding: 0.5rem 0">
@for (author of visibleAuthors; track getAuthorTrackId(author, $index)) {
<button
type="button"
class="publication-institution-tag"
[class.active]="isAuthorActive(getAuthorId(author))"
[class.disabled]="!getAuthorId(author)"
[matTooltip]="getAuthorTooltipText(author)"
matTooltipPosition="above"
[attr.aria-label]="getAuthorTooltipText(author)"
[disabled]="!getAuthorId(author) || !authorFilterEnabled()"
(click)="filterByAuthor(author)">
<mat-icon class="institution-icon">person</mat-icon>
<span class="institution-name">{{ getAuthorName(author) }}</span>
</button>
<app-author-chip
size="mini"
[author]="author"
[showIcon]="true"
[isSelected]="isAuthorActive(author.id!)"
[isClickable]="authorFilterEnabled()"
(handleChipClick)="filterByAuthor($event!)" />
} @empty {
<span class="empty-text">-</span>
}
@@ -127,18 +121,13 @@
<div class="topic-chips" aria-label="Themen" style="padding: 0.5rem 0">
@for (topic of visibleTopics; track topic.id ?? $index) {
<app-topic-chip
<app-topic-chip-2
size="mini"
[label]="topic.display_name || ''"
[description]="topic.description"
[subfieldName]="topic.subfield?.display_name"
[fieldName]="topic.field?.display_name"
[domainName]="topic.domain?.display_name"
[color]="getWorkTopicColor(topic)"
[disabled]="!topic.id"
[active]="isTopicActive(topic)"
(chipClick)="filterByTopic(topic)">
</app-topic-chip>
[topic]="topic"
[showIcon]="false"
[isSelected]="isTopicActive(topic)"
[isClickable]="topicFilterEnabled()"
(handleChipClick)="filterByTopic(topic)" />
} @empty {
<span class="empty-text">-</span>
}