336 lines
11 KiB
HTML
336 lines
11 KiB
HTML
<div class="content">
|
|
<h1>Patente</h1>
|
|
|
|
<mat-divider />
|
|
|
|
@if (error) {
|
|
<p class="state-message error">Fehler beim Laden der Patente.</p>
|
|
} @else if (showDetail && selectedPatent) {
|
|
<div class="detail-view">
|
|
<button type="button" class="back-btn" (click)="closeDetail()">
|
|
← Zurück zu den Patenten
|
|
</button>
|
|
|
|
<h2>{{ selectedPatent.title ?? selectedPatent.patent_id }}</h2>
|
|
|
|
<div class="patent-meta__list">
|
|
@for (row of getPatentMetadataRows(selectedPatent); track row.label) {
|
|
<div class="patent-meta__row">
|
|
<dt>{{ row.label }}</dt>
|
|
<dd>
|
|
@if (row.variant === 'source') {
|
|
<span
|
|
class="source-badge source-badge--{{
|
|
row.value.toLowerCase()
|
|
}}"
|
|
>{{ row.value }}</span
|
|
>
|
|
} @else {
|
|
{{ row.value }}
|
|
}
|
|
</dd>
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
@if (selectedPatent.abstract) {
|
|
<div class="detail-section">
|
|
<h4>Abstract</h4>
|
|
<p>{{ selectedPatent.abstract }}</p>
|
|
</div>
|
|
}
|
|
|
|
<div class="detail-section">
|
|
<h4>Erfinder</h4>
|
|
<ul class="tag-list">
|
|
@for (inv of selectedPatent.inventors; track inv) {
|
|
<li class="tag">{{ inv }}</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
|
|
@if ((selectedPatent.assignees?.length ?? 0) > 0) {
|
|
<div class="detail-section">
|
|
<h4>Anmelder</h4>
|
|
<ul class="tag-list">
|
|
@for (a of selectedPatent.assignees; track a) {
|
|
<li class="tag">{{ a }}</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
}
|
|
|
|
@if ((selectedPatent.openalex_topics?.length ?? 0) > 0) {
|
|
<div class="detail-section">
|
|
<h4>OpenAlex Themen</h4>
|
|
<div class="tag-list">
|
|
@for (
|
|
topic of selectedPatent.openalex_topics;
|
|
track topic.topic_id ?? topic.topic_display_name
|
|
) {
|
|
<app-topic-chip
|
|
[topicId]="topic.topic_id"
|
|
[label]="topic.topic_display_name"
|
|
[fieldName]="topic.field_name"
|
|
[domainName]="topic.domain_name"
|
|
[color]="topicColor(topic)"
|
|
size="mini">
|
|
</app-topic-chip>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
@if ((selectedPatent.ipc_descriptions?.length ?? 0) > 0) {
|
|
<div
|
|
class="detail-section classification-section classification-section--ipc">
|
|
<h4>Klassifikation (IPC)</h4>
|
|
<div class="classification-cards">
|
|
@for (
|
|
card of getClassificationCards(
|
|
selectedPatent.ipc_descriptions,
|
|
'IPC'
|
|
);
|
|
track card.key
|
|
) {
|
|
<article class="classification-card">
|
|
<header class="classification-card__header">
|
|
<div class="classification-card__codes">
|
|
@for (sym of card.symbols; track sym) {
|
|
<span
|
|
class="classification-code"
|
|
[style.border]="'1px solid ' + sectionColor(card)"
|
|
[style.color]="sectionColor(card)"
|
|
[style.background]="
|
|
'color-mix(in srgb, ' +
|
|
sectionColor(card) +
|
|
' 12%, white)'
|
|
">
|
|
{{ sym }}
|
|
</span>
|
|
}
|
|
</div>
|
|
<div class="classification-card__badges">
|
|
<span
|
|
class="classification-badge classification-badge--system"
|
|
>{{ card.system }}</span
|
|
>
|
|
<span
|
|
class="classification-badge classification-badge--level"
|
|
>{{ card.levelLabel }}</span
|
|
>
|
|
</div>
|
|
</header>
|
|
@if (card.primaryDescription) {
|
|
<p class="classification-summary">
|
|
{{
|
|
isClassificationExpanded(card.key)
|
|
? card.primaryDescription
|
|
: getDescriptionPreview(card.primaryDescription)
|
|
}}
|
|
</p>
|
|
@if (isLongDescription(card.primaryDescription)) {
|
|
<button
|
|
type="button"
|
|
class="classification-toggle"
|
|
(click)="toggleClassificationExpanded(card.key)">
|
|
{{
|
|
isClassificationExpanded(card.key)
|
|
? 'Weniger anzeigen'
|
|
: 'Mehr anzeigen'
|
|
}}
|
|
</button>
|
|
}
|
|
}
|
|
@if (card.hierarchy.length > 0) {
|
|
<dl class="classification-hierarchy">
|
|
@for (row of card.hierarchy; track row.label) {
|
|
<div class="classification-hierarchy__row">
|
|
<dt>{{ row.label }}</dt>
|
|
<dd>{{ row.value }}</dd>
|
|
</div>
|
|
}
|
|
</dl>
|
|
}
|
|
</article>
|
|
}
|
|
</div>
|
|
</div>
|
|
} @else if ((selectedPatent.ipc?.length ?? 0) > 0) {
|
|
<div class="detail-section">
|
|
<h4>Klassifikation (IPC)</h4>
|
|
<ul class="tag-list tag-list--compact">
|
|
@for (ipc of selectedPatent.ipc; track ipc) {
|
|
<li class="tag">{{ ipc }}</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
}
|
|
|
|
@if ((selectedPatent.cpc_descriptions?.length ?? 0) > 0) {
|
|
<div
|
|
class="detail-section classification-section classification-section--cpc">
|
|
<h4>Klassifikation (CPC)</h4>
|
|
<div class="classification-cards">
|
|
@for (
|
|
card of getClassificationCards(
|
|
selectedPatent.cpc_descriptions,
|
|
'CPC'
|
|
);
|
|
track card.key
|
|
) {
|
|
<article class="classification-card">
|
|
<header class="classification-card__header">
|
|
<div class="classification-card__codes">
|
|
@for (sym of card.symbols; track sym) {
|
|
<span
|
|
class="classification-code"
|
|
[style.border]="'1px solid ' + sectionColor(card)"
|
|
[style.color]="sectionColor(card)"
|
|
[style.background]="
|
|
'color-mix(in srgb, ' +
|
|
sectionColor(card) +
|
|
' 12%, white)'
|
|
">
|
|
{{ sym }}
|
|
</span>
|
|
}
|
|
</div>
|
|
<div class="classification-card__badges">
|
|
<span
|
|
class="classification-badge classification-badge--system"
|
|
>{{ card.system }}</span
|
|
>
|
|
<span
|
|
class="classification-badge classification-badge--level"
|
|
>{{ card.levelLabel }}</span
|
|
>
|
|
</div>
|
|
</header>
|
|
@if (card.primaryDescription) {
|
|
<p class="classification-summary">
|
|
{{
|
|
isClassificationExpanded(card.key)
|
|
? card.primaryDescription
|
|
: getDescriptionPreview(card.primaryDescription)
|
|
}}
|
|
</p>
|
|
@if (isLongDescription(card.primaryDescription)) {
|
|
<button
|
|
type="button"
|
|
class="classification-toggle"
|
|
(click)="toggleClassificationExpanded(card.key)">
|
|
{{
|
|
isClassificationExpanded(card.key)
|
|
? 'Weniger anzeigen'
|
|
: 'Mehr anzeigen'
|
|
}}
|
|
</button>
|
|
}
|
|
}
|
|
@if (card.hierarchy.length > 0) {
|
|
<dl class="classification-hierarchy">
|
|
@for (row of card.hierarchy; track row.label) {
|
|
<div class="classification-hierarchy__row">
|
|
<dt>{{ row.label }}</dt>
|
|
<dd>{{ row.value }}</dd>
|
|
</div>
|
|
}
|
|
</dl>
|
|
}
|
|
</article>
|
|
}
|
|
</div>
|
|
</div>
|
|
} @else if ((selectedPatent.cpc?.length ?? 0) > 0) {
|
|
<div class="detail-section">
|
|
<h4>Klassifikation (CPC)</h4>
|
|
<ul class="tag-list tag-list--compact">
|
|
@for (cpc of selectedPatent.cpc; track cpc) {
|
|
<li class="tag">{{ cpc }}</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
}
|
|
</div>
|
|
} @else {
|
|
<app-card-search
|
|
[loading]="loading"
|
|
[page]="cardSearchPage()"
|
|
[cardTmp]="cardTmp"
|
|
[additionalFiltersTmp]="filtersTmp"
|
|
[noResultsTmp]="noResultsTmp"
|
|
[cardMinWidth]="500"
|
|
searchLabel="Suche nach Titel oder Patent-Nr." />
|
|
|
|
<ng-template #filtersTmp>
|
|
<div class="additional-filters">
|
|
<app-filter-card>
|
|
<mat-chip-listbox
|
|
[value]="selectedSources"
|
|
multiple
|
|
(change)="handleSourceChipChange($event)">
|
|
<mat-chip-option value="EPO">EPO</mat-chip-option>
|
|
<mat-chip-option value="USPTO">USPTO</mat-chip-option>
|
|
</mat-chip-listbox>
|
|
</app-filter-card>
|
|
|
|
<app-year-range-slider
|
|
class="patent-year-filter"
|
|
[minYear]="minYear"
|
|
[maxYear]="maxYear"
|
|
[(startYear)]="selectedStartYear"
|
|
[(endYear)]="selectedEndYear"
|
|
(startYearChange)="onYearRangeChange()"
|
|
(endYearChange)="onYearRangeChange()" />
|
|
</div>
|
|
</ng-template>
|
|
|
|
<ng-template #noResultsTmp>
|
|
<div class="no-results">
|
|
<p>Keine Patente gefunden.</p>
|
|
</div>
|
|
</ng-template>
|
|
|
|
<ng-template #cardTmp let-patent>
|
|
<mat-card
|
|
class="card"
|
|
appearance="outlined"
|
|
(click)="selectPatent(patent)">
|
|
<mat-card-header>
|
|
<mat-card-title>{{
|
|
patent.title ?? patent.patent_id
|
|
}}</mat-card-title>
|
|
<mat-card-subtitle>
|
|
<span
|
|
class="source-badge source-badge--{{
|
|
patent.source.toLowerCase()
|
|
}}"
|
|
>{{ patent.source }}</span
|
|
>
|
|
</mat-card-subtitle>
|
|
</mat-card-header>
|
|
<mat-card-content class="card-content">
|
|
<mat-divider />
|
|
<div class="card-metadata">
|
|
<span>{{ patent.patent_id }}</span>
|
|
<span>{{ formatDate(patent.publication_date ?? '') }}</span>
|
|
</div>
|
|
<mat-divider />
|
|
</mat-card-content>
|
|
<mat-card-footer>
|
|
<mat-card-actions>
|
|
<button
|
|
mat-button
|
|
type="button"
|
|
(click)="selectPatent(patent); $event.stopPropagation()">
|
|
<mat-icon>info</mat-icon>
|
|
Übersicht
|
|
</button>
|
|
</mat-card-actions>
|
|
</mat-card-footer>
|
|
</mat-card>
|
|
</ng-template>
|
|
}
|
|
</div>
|