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) { +
+
+
+ @for (symbol of card.symbols; track symbol) { + {{ symbol }} + } +
+
+ {{ card.system }} + {{ card.levelLabel }} +
+
+ + @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) {

Klassifikation (IPC)

} - @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) { +
+
+
+ @for (symbol of card.symbols; track symbol) { + {{ symbol }} + } +
+
+ {{ card.system }} + {{ card.levelLabel }} +
+
+ + @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)