diff --git a/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts b/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts
index fb4a1bf1..3e3ab080 100644
--- a/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts
+++ b/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts
@@ -116,6 +116,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
icon: 'business',
description:
'Gewichtet die Anzahl der Unternehmensgründungen (Handelsregister-Verbindungen).',
+ nameMatched: true,
defaultValue: 0.5,
queryParamName: 'wCompanies',
},
@@ -125,6 +126,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
icon: 'visibility',
description:
'Gewichtet die öffentliche Sichtbarkeit über Nennungen in Nachrichtenartikeln.',
+ nameMatched: true,
defaultValue: 0.5,
queryParamName: 'wNews',
},
@@ -133,6 +135,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
label: 'Patente',
icon: 'workspace_premium',
description: 'Gewichtet Innovations- und Transferleistung über Patente.',
+ nameMatched: true,
defaultValue: 0.5,
queryParamName: 'wPatents',
},
diff --git a/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.html b/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.html
index 0823bf1a..8e4a3d52 100644
--- a/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.html
+++ b/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.html
@@ -25,6 +25,11 @@
{{ option.icon }}
}
{{ option.label }}
+ @if (option.nameMatched) {
+
+ star
+
+ }
@@ -51,6 +56,16 @@
}
+
+ @if (hasNameMatchedOption) {
+
+ star
+ Diese Kennzahlen basieren auf einem automatischen Namensabgleich mit
+ externen Quellen, wodurch es in Einzelfällen zu Fehlzuordnungen kommen
+ kann.
+
+ }
+
@if (!weightsState().valid) {
diff --git a/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.scss b/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.scss
index 6b0c7fcd..236e4ed4 100644
--- a/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.scss
+++ b/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.scss
@@ -108,6 +108,28 @@ $touch-target: 44px;
padding: 0 6px;
}
+::ng-deep .name-match-star {
+ color: var(--sg-warning, #b8860b);
+}
+
+/* ============================================================
+ NAME MATCH NOTE
+ ============================================================ */
+.name-match-note {
+ display: flex;
+ align-items: flex-start;
+ gap: 0.3rem;
+ margin: 0.3rem 0 0;
+ padding: 0.2rem 0.3rem;
+ font-size: 0.7rem;
+ color: var(--sg-text-muted);
+
+ mat-icon {
+ flex: 0 0 auto;
+ color: var(--sg-warning, #b8860b);
+ }
+}
+
/* ============================================================
WARNING
============================================================ */
diff --git a/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.ts b/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.ts
index 436499ff..8f43607c 100644
--- a/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.ts
+++ b/webapp/src/app/shared/ui/weights-sliders/weights-sliders.component.ts
@@ -28,6 +28,12 @@ export interface WeightSliderOption {
icon?: string;
description?: string;
+ /**
+ * Marks this metric with a star, indicating it relies on name matching
+ * (see weight-name-match-note in the template).
+ */
+ nameMatched?: boolean;
+
/**
* Optional default raw weight.
* Must be between 0 and 1.
@@ -212,6 +218,10 @@ export class WeightsSlidersComponent implements OnInit, OnChanges {
}
}
+ get hasNameMatchedOption(): boolean {
+ return this.options.some((option) => option.nameMatched);
+ }
+
weightControl(key: string): FormControl {
const control = this.form.controls[key];