feat(frontend/news_aritcle): show extracted authors
This commit is contained in:
@@ -64,11 +64,15 @@
|
||||
Erwähnte Personen
|
||||
</h3>
|
||||
<div class="person-list">
|
||||
@for (person of mentionedPersons; track person) {
|
||||
<article class="person-item">
|
||||
<div class="avatar">{{ person.charAt(0) }}</div>
|
||||
<span class="person-name">{{ person }}</span>
|
||||
</article>
|
||||
@if (article.authors && article.authors.length) {
|
||||
@for (person of article.authors; track person) {
|
||||
<article class="person-item">
|
||||
<div class="avatar">{{ person.charAt(0) }}</div>
|
||||
<span class="person-name">{{ person }}</span>
|
||||
</article>
|
||||
}
|
||||
} @else {
|
||||
<p class="placeholder">Keine erwähnten Personen gefunden.</p>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -16,6 +16,8 @@ interface NewsArticleDetail {
|
||||
author?: string | null;
|
||||
url?: string | null;
|
||||
full_content?: string | null;
|
||||
relevant?: boolean;
|
||||
authors?: string[];
|
||||
}
|
||||
|
||||
@Component({
|
||||
@@ -41,12 +43,6 @@ export class NewsDetailComponent implements OnInit {
|
||||
loading = false;
|
||||
notFound = false;
|
||||
|
||||
readonly mentionedPersons = [
|
||||
'Prof. Dr. Anna Müller',
|
||||
'Dr. Hans Schmidt',
|
||||
'Dr. Lena Weber',
|
||||
];
|
||||
|
||||
readonly relevantTopics = [
|
||||
'Künstliche Intelligenz',
|
||||
'Maschinelles Lernen',
|
||||
|
||||
Reference in New Issue
Block a user