removed old Institution, changes default sort to Publications

This commit is contained in:
Kazgatari
2026-06-08 12:43:29 +02:00
parent a7a579ef57
commit 4701f294d0
2 changed files with 2 additions and 10 deletions
@@ -17,14 +17,6 @@
</button>
</div>
<h2 class="person-name">{{ person.display_name }}</h2>
<p class="institution">
<span>{{ (institution(person)?.display_name ?? '') | truncate: 30 }}</span>
@if (institution(person)?.country_code) {
<img alt="" class="flag-img"
[src]="`https://flagcdn.io/${institution(person)?.country_code?.toLowerCase()}.svg`" height="15">
{{institution(person)?.country_code?.toUpperCase()}}
}
</p>
<p class="person-id">{{ getDistinguishingId(person) }}</p>
<p class="stats">
Publikationen: {{ person.works_count }} ·
@@ -66,7 +66,7 @@ export class PersonListComponent {
selectedTopics = new Set<string>();
// Forms
sortControl = new FormControl('relevance', { nonNullable: true });
sortControl = new FormControl('works', { nonNullable: true });
topicSearchControl = new FormControl('', { nonNullable: true });
institutionControl = new FormControl('', { nonNullable: true });
yearFilterEnabledControl = new FormControl(false, { nonNullable: true });
@@ -246,7 +246,7 @@ export class PersonListComponent {
}> {
const list: Array<{ category: string; value: string; label: string }> = [];
this.selectedTopics.forEach((t) => {
list.push({ category: 'topic', value: t, label: t });
list.push({ category: 'topic', value: t, label: `Thema: ${t}` });
});
if (this.institutionControl.value) {
let label = `Institution: ${this.institutionControl.value}`;