feat(patents): show OpenAlex topic labels for patent IPC/CPC codes
LocationBasedServices/smartguide/pipeline/pr-dev This commit looks good
LocationBasedServices/smartguide/pipeline/pr-dev This commit looks good
Enriches patents with matched OpenAlex topic names from patents_openalex_keywords, shown alongside classifications on the patent detail page. Also fixes lookup() using a broken GET on doc ids containing "/" (400 from the gateway) by switching to a _search with an ids query. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ export interface OrgPatentEntry {
|
||||
cpc?: Array<string>;
|
||||
cpc_descriptions?: Array<IpcClassification>;
|
||||
country?: string | null;
|
||||
openalex_topics?: Array<string>;
|
||||
institution_id: string;
|
||||
institution_name?: string | null;
|
||||
match_type: OrgPatentEntry.MatchTypeEnum;
|
||||
|
||||
@@ -30,5 +30,6 @@ export interface PatentEntry {
|
||||
cpc?: Array<string>;
|
||||
cpc_descriptions?: Array<IpcClassification>;
|
||||
country?: string | null;
|
||||
openalex_topics?: Array<string>;
|
||||
}
|
||||
|
||||
|
||||
@@ -120,6 +120,20 @@
|
||||
</section>
|
||||
}
|
||||
|
||||
@if (patent.openalex_topics?.length) {
|
||||
<section class="card">
|
||||
<div class="section-title">
|
||||
<mat-icon>topic</mat-icon>
|
||||
<h2>OpenAlex Themen</h2>
|
||||
</div>
|
||||
<div class="tags">
|
||||
@for (topic of patent.openalex_topics; track topic) {
|
||||
<span>{{ topic }}</span>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
|
||||
@if (patent.ipc_descriptions?.length) {
|
||||
<section class="card classification-card-section classification-card-section--ipc">
|
||||
<div class="section-title">
|
||||
|
||||
Reference in New Issue
Block a user