diff --git a/webapp/src/app/api/api/patents.service.ts b/webapp/src/app/api/api/patents.service.ts
index 33d7412b..4ec5192e 100644
--- a/webapp/src/app/api/api/patents.service.ts
+++ b/webapp/src/app/api/api/patents.service.ts
@@ -21,6 +21,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
+export interface IpcClassification {
+ symbol: string;
+ section: string | null;
+ class: string | null;
+ subclass: string | null;
+ main_group: string | null;
+ subgroup: string | null;
+}
+
export interface PatentEntry {
patent_id: string;
source: string;
@@ -37,7 +46,9 @@ export interface PatentEntry {
inventors: string[];
assignees: string[];
ipc: string[];
+ ipc_descriptions: IpcClassification[];
cpc: string[];
+ cpc_descriptions: IpcClassification[];
country: string | null;
}
diff --git a/webapp/src/app/modules/person-patents/person-patents.component.html b/webapp/src/app/modules/person-patents/person-patents.component.html
index db0c6bbb..fe51cb23 100644
--- a/webapp/src/app/modules/person-patents/person-patents.component.html
+++ b/webapp/src/app/modules/person-patents/person-patents.component.html
@@ -45,7 +45,53 @@
}
- @if (selectedPatent.ipc.length > 0) {
+ @if ((selectedPatent.ipc_descriptions?.length ?? 0) > 0) {
+
+
Klassifikation (IPC)
+
+ @for (card of getClassificationCards(selectedPatent.ipc_descriptions, 'IPC'); track card.key) {
+
+
+
+ @if (card.primaryDescription) {
+
+ {{ isClassificationExpanded(card.key) ? card.primaryDescription : getDescriptionPreview(card.primaryDescription) }}
+
+ @if (isLongDescription(card.primaryDescription)) {
+
+ }
+ }
+
+ @if (card.hierarchy.length > 0) {
+
+ @for (row of card.hierarchy; track row.label) {
+
+
- {{ row.label }}
+ - {{ row.value }}
+
+ }
+
+ }
+
+ }
+
+
+ } @else if (selectedPatent.ipc.length > 0) {
}
- @if (selectedPatent.cpc.length > 0) {
+ @if ((selectedPatent.cpc_descriptions?.length ?? 0) > 0) {
+
+
Klassifikation (CPC)
+
+ @for (card of getClassificationCards(selectedPatent.cpc_descriptions, 'CPC'); track card.key) {
+
+
+
+ @if (card.primaryDescription) {
+
+ {{ isClassificationExpanded(card.key) ? card.primaryDescription : getDescriptionPreview(card.primaryDescription) }}
+
+ @if (isLongDescription(card.primaryDescription)) {
+
+ }
+ }
+
+ @if (card.hierarchy.length > 0) {
+
+ @for (row of card.hierarchy; track row.label) {
+
+
- {{ row.label }}
+ - {{ row.value }}
+
+ }
+
+ }
+
+ }
+
+
+ } @else if (selectedPatent.cpc.length > 0) {
Klassifikation (CPC)
diff --git a/webapp/src/app/modules/person-patents/person-patents.component.scss b/webapp/src/app/modules/person-patents/person-patents.component.scss
index befd90ad..9bce06a7 100644
--- a/webapp/src/app/modules/person-patents/person-patents.component.scss
+++ b/webapp/src/app/modules/person-patents/person-patents.component.scss
@@ -309,6 +309,132 @@
line-height: 1.3;
}
+.classification-section {
+ &--ipc .classification-card {
+ background: #f0f6ff;
+ border-color: #bfdbfe;
+ }
+
+ &--ipc .classification-badge--system {
+ background: #dbeafe;
+ color: #1d4ed8;
+ }
+
+ &--cpc .classification-card {
+ background: #f0fdf4;
+ border-color: #bbf7d0;
+ }
+
+ &--cpc .classification-badge--system {
+ background: #dcfce7;
+ color: #15803d;
+ }
+}
+
+.classification-cards {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.classification-card {
+ padding: 12px 14px;
+ border-radius: 10px;
+ border: 1px solid #dbeafe;
+}
+
+.classification-card__header {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ gap: 12px;
+ flex-wrap: wrap;
+}
+
+.classification-card__codes {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+}
+
+.classification-card__badges {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+}
+
+.classification-code {
+ font-size: 0.9rem;
+ font-weight: 700;
+ color: #0f172a;
+}
+
+.classification-badge {
+ display: inline-flex;
+ align-items: center;
+ padding: 2px 8px;
+ border-radius: 999px;
+ font-size: 0.68rem;
+ font-weight: 700;
+ letter-spacing: 0.02em;
+ text-transform: uppercase;
+}
+
+.classification-badge--level {
+ background: #e2e8f0;
+ color: #475569;
+}
+
+.classification-summary {
+ margin: 10px 0 0;
+ font-size: 0.84rem;
+ line-height: 1.5;
+ color: #334155;
+}
+
+.classification-toggle {
+ margin-top: 6px;
+ padding: 0;
+ border: 0;
+ background: none;
+ color: #2563eb;
+ font-size: 0.78rem;
+ cursor: pointer;
+
+ &:hover {
+ text-decoration: underline;
+ }
+}
+
+.classification-hierarchy {
+ margin: 10px 0 0;
+ padding-top: 10px;
+ border-top: 1px solid rgba(15, 23, 42, 0.08);
+}
+
+.classification-hierarchy__row {
+ display: grid;
+ grid-template-columns: 88px 1fr;
+ gap: 8px;
+ margin-bottom: 6px;
+
+ dt {
+ margin: 0;
+ font-size: 0.72rem;
+ font-weight: 700;
+ color: #64748b;
+ text-transform: uppercase;
+ letter-spacing: 0.03em;
+ }
+
+ dd {
+ margin: 0;
+ font-size: 0.8rem;
+ line-height: 1.45;
+ color: #334155;
+ }
+}
+
.pagination {
display: flex;
align-items: center;
diff --git a/webapp/src/app/modules/person-patents/person-patents.component.ts b/webapp/src/app/modules/person-patents/person-patents.component.ts
index 4c71be01..fc3f86bb 100644
--- a/webapp/src/app/modules/person-patents/person-patents.component.ts
+++ b/webapp/src/app/modules/person-patents/person-patents.component.ts
@@ -1,10 +1,22 @@
import { Component, OnInit, inject } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ActivatedRoute, Router } from '@angular/router';
-import { PatentsService, PatentEntry } from '../../api/api/patents.service';
+import { PatentsService, PatentEntry, IpcClassification } from '../../api/api/patents.service';
type SortMode = 'date' | 'title';
type SourceFilter = 'all' | 'EPO' | 'USPTO';
+type ClassificationSystem = 'IPC' | 'CPC';
+
+interface ClassificationCard {
+ key: string;
+ symbols: string[];
+ system: ClassificationSystem;
+ levelLabel: string;
+ primaryDescription: string | null;
+ hierarchy: { label: string; value: string }[];
+}
+
+const DESCRIPTION_PREVIEW_LENGTH = 140;
@Component({
selector: 'app-person-patents',
@@ -31,6 +43,7 @@ export class PersonPatentsComponent implements OnInit {
selectedPage = 1;
readonly pageSize = 10;
+ private expandedClassificationKeys = new Set();
ngOnInit(): void {
this.route.parent?.paramMap.subscribe((params) => {
@@ -81,11 +94,13 @@ export class PersonPatentsComponent implements OnInit {
selectPatent(patent: PatentEntry): void {
this.selectedPatent = patent;
this.showDetail = false;
+ this.expandedClassificationKeys.clear();
this.updateQueryParams();
}
openDetail(): void {
this.showDetail = true;
+ this.expandedClassificationKeys.clear();
}
private applyFilter(): void {
@@ -158,4 +173,145 @@ export class PersonPatentsComponent implements OnInit {
getUsptoCount(): number {
return this.patents.filter((p) => p.source === 'USPTO').length;
}
+
+ getClassificationCards(
+ entries: IpcClassification[] | undefined,
+ system: ClassificationSystem,
+ ): ClassificationCard[] {
+ if (!entries?.length) {
+ return [];
+ }
+
+ const merged = new Map();
+
+ for (const entry of entries) {
+ const card = this.buildClassificationCard(entry, system);
+ const mergeKey =
+ card.primaryDescription?.toLocaleLowerCase('en') ?? card.symbols[0] ?? card.key;
+
+ const existing = merged.get(mergeKey);
+ if (existing) {
+ for (const symbol of card.symbols) {
+ if (!existing.symbols.includes(symbol)) {
+ existing.symbols.push(symbol);
+ }
+ }
+ continue;
+ }
+
+ merged.set(mergeKey, card);
+ }
+
+ return [...merged.values()];
+ }
+
+ toggleClassificationExpanded(key: string): void {
+ if (this.expandedClassificationKeys.has(key)) {
+ this.expandedClassificationKeys.delete(key);
+ return;
+ }
+ this.expandedClassificationKeys.add(key);
+ }
+
+ isClassificationExpanded(key: string): boolean {
+ return this.expandedClassificationKeys.has(key);
+ }
+
+ isLongDescription(text: string | null): boolean {
+ return !!text && text.length > DESCRIPTION_PREVIEW_LENGTH;
+ }
+
+ getDescriptionPreview(text: string | null): string {
+ if (!text) {
+ return '';
+ }
+ if (text.length <= DESCRIPTION_PREVIEW_LENGTH) {
+ return text;
+ }
+ return `${text.slice(0, DESCRIPTION_PREVIEW_LENGTH).trimEnd()}…`;
+ }
+
+ private buildClassificationCard(
+ entry: IpcClassification,
+ system: ClassificationSystem,
+ ): ClassificationCard {
+ const level = this.getClassificationLevel(entry);
+ const primaryDescription = this.extractDescriptionText(entry[level.field]);
+
+ return {
+ key: `${system}-${entry.symbol}`,
+ symbols: [entry.symbol],
+ system,
+ levelLabel: level.label,
+ primaryDescription,
+ hierarchy: this.buildHierarchyRows(entry, primaryDescription),
+ };
+ }
+
+ private getClassificationLevel(entry: IpcClassification): {
+ label: string;
+ field: keyof IpcClassification;
+ } {
+ if (entry.subgroup) {
+ return { label: 'Untergruppe', field: 'subgroup' };
+ }
+ if (entry.main_group) {
+ return { label: 'Hauptgruppe', field: 'main_group' };
+ }
+ if (entry.subclass) {
+ return { label: 'Unterklasse', field: 'subclass' };
+ }
+ if (entry.section) {
+ return { label: 'Sektion', field: 'section' };
+ }
+ return { label: 'Code', field: 'symbol' };
+ }
+
+ private buildHierarchyRows(
+ entry: IpcClassification,
+ primaryDescription: string | null,
+ ): { label: string; value: string }[] {
+ const rows: { label: string; value: string }[] = [];
+ const seen = new Set();
+
+ const addRow = (label: string, raw: string | null) => {
+ const value = this.extractDescriptionText(raw);
+ if (!value) {
+ return;
+ }
+ const normalized = value.toLocaleLowerCase('en');
+ if (seen.has(normalized) || normalized === primaryDescription?.toLocaleLowerCase('en')) {
+ return;
+ }
+ seen.add(normalized);
+ rows.push({ label, value });
+ };
+
+ addRow('Sektion', entry.section);
+ addRow('Klasse', entry.class);
+ addRow('Unterklasse', entry.subclass);
+
+ return rows;
+ }
+
+ private extractDescriptionText(value: string | null | undefined): string | null {
+ if (!value?.trim()) {
+ return null;
+ }
+
+ const text = value.includes(' - ') ? value.split(' - ').slice(1).join(' - ').trim() : value.trim();
+ if (!text) {
+ return null;
+ }
+
+ const firstSentence = text.split(/[;|]/)[0]?.trim() ?? text;
+ return this.normalizeDescriptionCase(firstSentence);
+ }
+
+ private normalizeDescriptionCase(text: string): string {
+ if (text !== text.toUpperCase()) {
+ return text;
+ }
+ return text.charAt(0) + text.slice(1).toLowerCase();
+ }
}