old chips replaced for oa_topics and oa_authors
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user