diff --git a/webapp/src/app/modules/publication-detail/publication-detail.component.ts b/webapp/src/app/modules/publication-detail/publication-detail.component.ts
index bedfbb0e..6028f241 100644
--- a/webapp/src/app/modules/publication-detail/publication-detail.component.ts
+++ b/webapp/src/app/modules/publication-detail/publication-detail.component.ts
@@ -21,6 +21,7 @@ import { topicHierarchyColor } from '../../resolvers/utils/topic-colors';
import { WorkTypePipe } from '../../shared/pipes/work-type.pipe';
import { LanguageCodePipe } from '../../shared/pipes/language-code.pipe';
import { WorkPrimaryCategoryPipe } from '../../shared/pipes/work-primary-category.pipe';
+import { ResearchProfileComponent } from './research-profile/research-profile.component';
interface DetailLink {
label: string;
@@ -47,7 +48,8 @@ interface InstitutionDetail {
TopicChipComponent,
WorkTypePipe,
LanguageCodePipe,
- WorkPrimaryCategoryPipe
+ WorkPrimaryCategoryPipe,
+ ResearchProfileComponent,
],
templateUrl: './publication-detail.component.html',
styleUrl: './publication-detail.component.scss',
diff --git a/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.html b/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.html
new file mode 100644
index 00000000..54400cd9
--- /dev/null
+++ b/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.html
@@ -0,0 +1,106 @@
+@if (details(); as profile) {
+
+
+
+
+
+
+
+ Pasteur-Quadrant
+
+
+
+
+
+
+
+
+ Orientierungsscore
+
+
+
+
+ Grundlagenorientiert
+ Anwendungsorientiert
+
+ @if (profile.primary_category; as category) {
+
+ }
+
+
+
+
+ @if (
+ profile.confidence === 'medium' ||
+ profile.confidence === 'low' ||
+ profile.insufficient_context
+ ) {
+
+
+ @if (
+ profile.confidence === 'medium' || profile.confidence === 'low'
+ ) {
+
+ {{ confidenceLabel(profile.confidence) }}
+
+ info_outline
+
+
+ }
+
+ @if (profile.insufficient_context) {
+
+ Begrenzte Informationsgrundlage
+
+ info_outline
+
+
+ }
+
+ }
+
+
+}
diff --git a/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.scss b/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.scss
new file mode 100644
index 00000000..7c362668
--- /dev/null
+++ b/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.scss
@@ -0,0 +1,185 @@
+:host {
+ display: block;
+}
+
+.research-profile-card {
+ border-color: var(--sg-border);
+ border-radius: var(--sg-radius-md);
+ background: var(--sg-surface);
+ box-shadow: var(--sg-shadow-sm);
+}
+
+.profile-header {
+ align-items: flex-start;
+ padding: 22px 24px 12px;
+}
+
+.profile-icon {
+ flex: 0 0 24px;
+ width: 24px;
+ height: 24px;
+ margin: 1px 12px 0 0;
+ color: var(--sg-text-muted);
+ font-size: 24px;
+ line-height: 24px;
+}
+
+.profile-heading {
+ min-width: 0;
+}
+
+mat-card-title {
+ font-size: 20px;
+ font-weight: 700;
+ line-height: 1.25;
+}
+
+mat-card-subtitle {
+ margin-top: 3px;
+ line-height: 1.4;
+}
+
+mat-card-content {
+ padding: 8px 24px 24px;
+}
+
+.visualizations {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) 1px minmax(240px, 300px);
+ gap: 20px;
+ align-items: stretch;
+ width: 100%;
+}
+
+.visualizations section {
+ display: flex;
+ flex-direction: column;
+ min-width: 0;
+}
+
+.visualizations .visualization-title {
+ margin: 8px 0 4px;
+ color: var(--sg-text);
+ font:
+ 700 16px/1.3 'Open Sans',
+ Arial,
+ sans-serif !important;
+}
+
+.quadrant-chart-frame {
+ position: relative;
+ width: 100%;
+ height: 320px;
+}
+
+.quadrant-chart {
+ width: 100%;
+ height: 100%;
+}
+
+.score-section {
+ align-items: center;
+ min-width: 0;
+ overflow: hidden;
+}
+
+.score-section .visualization-title {
+ align-self: flex-start;
+}
+
+.score-content {
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ width: 100%;
+ padding-bottom: 22px;
+}
+
+.score-chart {
+ width: 100%;
+ max-width: 280px;
+ height: 180px;
+}
+
+.score-labels {
+ display: flex;
+ justify-content: space-between;
+ width: min(100%, 280px);
+ margin-top: -36px;
+ color: var(--sg-text-muted);
+ font-size: 11px;
+ font-weight: 600;
+}
+
+.score-content app-topic-chip {
+ margin-top: 24px;
+ max-width: 100%;
+}
+
+.notices-divider {
+ margin-top: 6px;
+}
+
+.notices {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+ padding-top: 14px;
+}
+
+.warning-note {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ gap: 10px;
+ min-height: 42px;
+ padding: 9px 12px;
+ border-color: var(--warning-border);
+ border-radius: 12px;
+ background: var(--warning-background);
+ color: var(--warning-text);
+ box-shadow: none;
+ font-size: 13px;
+ line-height: 1.4;
+}
+
+.warning-note .info-icon {
+ flex: 0 0 auto;
+ width: 16px;
+ height: 16px;
+ color: inherit;
+ font-size: 16px;
+ line-height: 16px;
+ opacity: 0.7;
+ cursor: default;
+
+ &:hover {
+ opacity: 1;
+ }
+}
+
+@media (max-width: 900px) {
+ .visualizations {
+ grid-template-columns: 1fr;
+ }
+
+ .visualizations > mat-divider {
+ display: none;
+ }
+}
+
+@media (max-width: 560px) {
+ .profile-header {
+ padding-inline: 16px;
+ }
+
+ mat-card-content {
+ padding-inline: 16px;
+ }
+
+ .quadrant-chart-frame {
+ height: 350px;
+ }
+}
diff --git a/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.ts b/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.ts
new file mode 100644
index 00000000..1a74b684
--- /dev/null
+++ b/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.ts
@@ -0,0 +1,422 @@
+import {
+ Component,
+ DestroyRef,
+ computed,
+ inject,
+ input,
+ signal,
+} from '@angular/core';
+import { MatCardModule } from '@angular/material/card';
+import { MatDividerModule } from '@angular/material/divider';
+import { MatIconModule } from '@angular/material/icon';
+import { MatTooltipModule } from '@angular/material/tooltip';
+import { EChartsOption, EChartsType } from 'echarts';
+import { NgxEchartsDirective } from 'ngx-echarts';
+import {
+ WorkClassification,
+ WorkClassificationDetails,
+ WorkPrimaryCategory,
+} from '../../../api';
+import { WorkPrimaryCategoryPipe } from '../../../shared/pipes/work-primary-category.pipe';
+import {
+ TopicChipComponent,
+ TopicChipPaletteColor,
+ topicChipColorTokens,
+} from '../../../shared/ui/topic-chip/topic-chip.component';
+
+type PasteurQuadrant =
+ | 'pure_basic'
+ | 'use_inspired_basic'
+ | 'pure_applied'
+ | 'not_applicable';
+
+interface QuadrantDefinition {
+ key: PasteurQuadrant;
+ coordinate: [string, string];
+ title: string;
+ description: string;
+ color?: 'blue' | 'purple' | 'green';
+}
+
+const QUADRANTS: readonly QuadrantDefinition[] = [
+ {
+ key: 'pure_basic',
+ coordinate: ['Niedrig', 'Hoch'],
+ title: 'Bohr',
+ description: 'Reine\nGrundlagenforschung',
+ color: 'blue',
+ },
+ {
+ key: 'use_inspired_basic',
+ coordinate: ['Hoch', 'Hoch'],
+ title: 'Pasteur',
+ description: 'Vom Nutzen inspirierte\nGrundlagenforschung',
+ color: 'purple',
+ },
+ {
+ key: 'not_applicable',
+ coordinate: ['Niedrig', 'Niedrig'],
+ title: 'Weder noch',
+ description: 'Keine eindeutige\nForschungsorientierung',
+ },
+ {
+ key: 'pure_applied',
+ coordinate: ['Hoch', 'Niedrig'],
+ title: 'Edison',
+ description: 'Angewandte Forschung\nund Entwicklung',
+ color: 'green',
+ },
+];
+
+const BLUE_TOKENS = topicChipColorTokens('blue');
+const WARNING_TOKENS = topicChipColorTokens('orange');
+const LOW_CONFIDENCE_TOKENS = topicChipColorTokens('pink');
+
+@Component({
+ selector: 'app-research-profile',
+ standalone: true,
+ imports: [
+ MatCardModule,
+ MatDividerModule,
+ MatIconModule,
+ MatTooltipModule,
+ NgxEchartsDirective,
+ TopicChipComponent,
+ WorkPrimaryCategoryPipe,
+ ],
+ templateUrl: './research-profile.component.html',
+ styleUrl: './research-profile.component.scss',
+})
+export class ResearchProfileComponent {
+ private readonly destroyRef = inject(DestroyRef);
+ private readonly quadrantChartSize = signal({ width: 640, height: 320 });
+ private quadrantResizeObserver?: ResizeObserver;
+
+ workClassification = input.required
();
+ readonly warningTokens = WARNING_TOKENS;
+
+ details = computed(() => {
+ const details = this.workClassification()?.classification;
+ if (
+ !details ||
+ details.primary_category === WorkPrimaryCategory.NonResearch
+ ) {
+ return null;
+ }
+ return details;
+ });
+
+ quadrantOptions = computed(() =>
+ this.buildQuadrantOptions(this.details()?.pasteur_quadrant),
+ );
+
+ scoreOptions = computed(() =>
+ this.buildScoreOptions(this.details()?.applied_orientation_score ?? 0),
+ );
+
+ primaryCategoryChipColor = computed(() => {
+ switch (this.details()?.primary_category) {
+ case WorkPrimaryCategory.BasicResearch:
+ return 'green';
+ case WorkPrimaryCategory.AppliedResearch:
+ return 'pink';
+ case WorkPrimaryCategory.ExperimentalDevelopment:
+ return 'purple';
+ default:
+ return 'orange';
+ }
+ });
+
+ confidenceLabel(confidence: string | null | undefined): string {
+ return confidence === 'low' ? 'Geringe Konfidenz' : 'Mittlere Konfidenz';
+ }
+
+ confidenceTooltip(confidence: string | null | undefined): string {
+ return confidence === 'low'
+ ? 'Das Klassifikationsergebnis wurde mit geringer Konfidenz bestimmt.'
+ : 'Das Klassifikationsergebnis wurde mit mittlerer Konfidenz bestimmt.';
+ }
+
+ confidenceWarningTokens(confidence: string | null | undefined) {
+ return confidence === 'low' ? LOW_CONFIDENCE_TOKENS : WARNING_TOKENS;
+ }
+
+ onQuadrantChartInit(chart: EChartsType): void {
+ const updateSize = (width: number, height: number) => {
+ const current = this.quadrantChartSize();
+ if (current.width !== width || current.height !== height) {
+ this.quadrantChartSize.set({ width, height });
+ }
+ };
+
+ updateSize(chart.getWidth(), chart.getHeight());
+ if (typeof ResizeObserver !== 'function') {
+ return;
+ }
+
+ this.quadrantResizeObserver?.disconnect();
+ this.quadrantResizeObserver = new ResizeObserver(([entry]) => {
+ if (entry) {
+ updateSize(entry.contentRect.width, entry.contentRect.height);
+ }
+ });
+ this.quadrantResizeObserver.observe(chart.getDom());
+ this.destroyRef.onDestroy(() => this.quadrantResizeObserver?.disconnect());
+ }
+
+ private buildQuadrantOptions(
+ activeQuadrant: string | null | undefined,
+ ): EChartsOption {
+ const textColor = this.cssColor('--sg-text-muted', BLUE_TOKENS.color);
+ const inactiveColor = this.cssColor(
+ '--sg-surface-muted',
+ BLUE_TOKENS.background,
+ );
+ const neutralActiveColor = this.cssColor('--sg-border', BLUE_TOKENS.border);
+ const surfaceColor = this.cssColor('--sg-surface', 'white');
+ const axisColor = this.cssColor('--sg-text', BLUE_TOKENS.color);
+ const { width: chartWidth, height: chartHeight } = this.quadrantChartSize();
+ const axisLeft = 59;
+ const axisTop = 12;
+ const axisRight = 12;
+ const axisBottom = 39;
+ const horizontalY = chartHeight - axisBottom;
+ const horizontalTipX = chartWidth - axisRight;
+ return {
+ animation: false,
+ tooltip: { show: false },
+ visualMap: {
+ type: 'piecewise',
+ show: false,
+ dimension: 2,
+ pieces: [
+ { value: 0, color: inactiveColor },
+ { value: 1, color: topicChipColorTokens('blue').activeBackground },
+ {
+ value: 2,
+ color: topicChipColorTokens('purple').activeBackground,
+ },
+ { value: 3, color: topicChipColorTokens('green').activeBackground },
+ { value: 4, color: neutralActiveColor },
+ ],
+ },
+ matrix: {
+ left: 68,
+ right: 12,
+ top: 12,
+ bottom: 48,
+ x: {
+ show: false,
+ data: ['Niedrig', 'Hoch'],
+ dividerLineStyle: { width: 0, opacity: 0 },
+ itemStyle: { borderWidth: 0, opacity: 0 },
+ },
+ y: {
+ show: false,
+ data: ['Hoch', 'Niedrig'],
+ dividerLineStyle: { width: 0, opacity: 0 },
+ itemStyle: { borderWidth: 0, opacity: 0 },
+ },
+ body: {
+ itemStyle: { borderWidth: 0, opacity: 0 },
+ label: { show: false },
+ },
+ corner: {
+ itemStyle: { borderWidth: 0, opacity: 0 },
+ label: { show: false },
+ },
+ backgroundStyle: { borderWidth: 0, opacity: 0 },
+ },
+ graphic: [
+ {
+ type: 'line',
+ silent: true,
+ shape: {
+ x1: axisLeft,
+ y1: horizontalY,
+ x2: horizontalTipX - 10,
+ y2: horizontalY,
+ },
+ style: { stroke: axisColor, lineWidth: 2 },
+ },
+ {
+ type: 'polygon',
+ silent: true,
+ shape: {
+ points: [
+ [horizontalTipX, horizontalY],
+ [horizontalTipX - 10, horizontalY - 6],
+ [horizontalTipX - 10, horizontalY + 6],
+ ],
+ },
+ style: { fill: axisColor },
+ },
+ {
+ type: 'line',
+ silent: true,
+ shape: {
+ x1: axisLeft,
+ y1: horizontalY,
+ x2: axisLeft,
+ y2: axisTop + 10,
+ },
+ style: { stroke: axisColor, lineWidth: 2 },
+ },
+ {
+ type: 'polygon',
+ silent: true,
+ shape: {
+ points: [
+ [axisLeft, axisTop],
+ [axisLeft - 6, axisTop + 10],
+ [axisLeft + 6, axisTop + 10],
+ ],
+ },
+ style: { fill: axisColor },
+ },
+ {
+ type: 'text',
+ x: axisLeft + (horizontalTipX - axisLeft) / 2,
+ y: chartHeight - 17,
+ style: {
+ text: 'Anwendungsorientierung',
+ fill: textColor,
+ fontSize: 12,
+ fontWeight: 600,
+ align: 'center',
+ verticalAlign: 'bottom',
+ },
+ },
+ {
+ type: 'text',
+ left: 38,
+ top: 'middle',
+ rotation: Math.PI / 2,
+ style: {
+ text: 'Erkenntnisorientierung',
+ fill: textColor,
+ fontSize: 12,
+ fontWeight: 600,
+ },
+ },
+ ],
+ series: [
+ {
+ type: 'heatmap',
+ coordinateSystem: 'matrix',
+ silent: true,
+ emphasis: { disabled: true },
+ data: QUADRANTS.map((quadrant) => {
+ const active = quadrant.key === activeQuadrant;
+ const activeTokens = quadrant.color
+ ? topicChipColorTokens(quadrant.color)
+ : BLUE_TOKENS;
+ const activeColorValue = quadrant.color
+ ? ({ blue: 1, purple: 2, green: 3 } as const)[quadrant.color]
+ : 4;
+ return {
+ value: [...quadrant.coordinate, active ? activeColorValue : 0],
+ itemStyle: {
+ borderColor: surfaceColor,
+ borderWidth: 4,
+ borderRadius: 10,
+ },
+ label: {
+ show: true,
+ color: active ? activeTokens.color : textColor,
+ fontSize: 11,
+ lineHeight: 16,
+ fontWeight: 400,
+ formatter: [
+ `{title|${quadrant.title}}`,
+ `{description|${quadrant.description}}`,
+ ...(active ? ['{active|✓ Diese Publikation}'] : []),
+ ].join('\n'),
+ rich: {
+ title: {
+ color: active ? activeTokens.color : textColor,
+ fontSize: 13,
+ fontWeight: 700,
+ lineHeight: 19,
+ },
+ description: {
+ color: active ? activeTokens.color : textColor,
+ fontSize: 11,
+ fontWeight: 400,
+ lineHeight: 16,
+ },
+ active: {
+ color: activeTokens.color,
+ backgroundColor: surfaceColor,
+ borderColor: activeTokens.color,
+ borderWidth: 1,
+ borderRadius: 11,
+ padding: [5, 10, 2, 10],
+ fontSize: 10,
+ fontWeight: 700,
+ lineHeight: 18,
+ align: 'center',
+ verticalAlign: 'middle',
+ },
+ },
+ },
+ };
+ }),
+ },
+ ],
+ };
+ }
+
+ private buildScoreOptions(score: number): EChartsOption {
+ const boundedScore = Math.max(0, Math.min(100, score));
+ const textColor = this.cssColor('--sg-text', BLUE_TOKENS.color);
+ return {
+ animation: false,
+ series: [
+ {
+ type: 'gauge',
+ min: 0,
+ max: 100,
+ startAngle: 180,
+ endAngle: 0,
+ center: ['50%', '70%'],
+ radius: '92%',
+ progress: {
+ show: true,
+ width: 13,
+ itemStyle: { color: BLUE_TOKENS.color },
+ },
+ axisLine: {
+ lineStyle: { width: 13, color: [[1, BLUE_TOKENS.background]] },
+ },
+ pointer: { show: false },
+ axisTick: { show: false },
+ splitLine: { show: false },
+ axisLabel: { show: false },
+ anchor: { show: false },
+ title: { show: false },
+ detail: {
+ valueAnimation: false,
+ offsetCenter: [0, '-8%'],
+ color: textColor,
+ fontSize: 25,
+ fontWeight: 700,
+ formatter: '{value}',
+ },
+ data: [{ value: boundedScore }],
+ },
+ ],
+ };
+ }
+
+ private cssColor(variable: string, fallback: string): string {
+ if (typeof getComputedStyle !== 'function') {
+ return fallback;
+ }
+ return (
+ getComputedStyle(document.documentElement)
+ .getPropertyValue(variable)
+ .trim() || fallback
+ );
+ }
+}
diff --git a/webapp/src/app/shared/pipes/work-primary-category.pipe.ts b/webapp/src/app/shared/pipes/work-primary-category.pipe.ts
index 7a0f701a..b77d0c8f 100644
--- a/webapp/src/app/shared/pipes/work-primary-category.pipe.ts
+++ b/webapp/src/app/shared/pipes/work-primary-category.pipe.ts
@@ -25,7 +25,7 @@ export class WorkPrimaryCategoryPipe implements PipeTransform {
transform(
value: WorkPrimaryCategory | null | undefined,
...args: unknown[]
- ): unknown {
+ ): string {
return transformWorkPrimaryCategory(value);
}
}
diff --git a/webapp/src/app/shared/ui/topic-chip/topic-chip.component.html b/webapp/src/app/shared/ui/topic-chip/topic-chip.component.html
index 6babd4cc..42275a92 100644
--- a/webapp/src/app/shared/ui/topic-chip/topic-chip.component.html
+++ b/webapp/src/app/shared/ui/topic-chip/topic-chip.component.html
@@ -1,6 +1,7 @@