From 23da3e44ba8b4b876d8df02682c70ef722b2d4c3 Mon Sep 17 00:00:00 2001 From: Steven Tischer Date: Wed, 17 Jun 2026 13:08:46 +0200 Subject: [PATCH] feat(frontend/news_aritcle): show extracted authors --- .../modules/news-detail/news-detail.component.html | 14 +++++++++----- .../modules/news-detail/news-detail.component.ts | 8 ++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/webapp/src/app/modules/news-detail/news-detail.component.html b/webapp/src/app/modules/news-detail/news-detail.component.html index 6e930151..38ece59d 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.html +++ b/webapp/src/app/modules/news-detail/news-detail.component.html @@ -64,11 +64,15 @@ Erwähnte Personen
- @for (person of mentionedPersons; track person) { -
-
{{ person.charAt(0) }}
- {{ person }} -
+ @if (article.authors && article.authors.length) { + @for (person of article.authors; track person) { +
+
{{ person.charAt(0) }}
+ {{ person }} +
+ } + } @else { +

Keine erwähnten Personen gefunden.

}
diff --git a/webapp/src/app/modules/news-detail/news-detail.component.ts b/webapp/src/app/modules/news-detail/news-detail.component.ts index 3bbca4d1..5c51b52c 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.ts +++ b/webapp/src/app/modules/news-detail/news-detail.component.ts @@ -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',