fix(patents): restore match-score/keyword/ipc stats in patent list alongside new fields
LocationBasedServices/smartguide/pipeline/pr-dev There was a failure building this commit
LocationBasedServices/smartguide/pipeline/pr-dev There was a failure building this commit
This commit is contained in:
+22
@@ -27,7 +27,9 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Patent</th>
|
||||
<th>Score</th>
|
||||
<th>Quelle</th>
|
||||
<th>Jahr</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -38,6 +40,7 @@
|
||||
<td class="patent-title">
|
||||
{{ item.patent.title ?? item.patent.patent_id }}
|
||||
</td>
|
||||
<td class="match-score">{{ formatScore(item.match_score) }}</td>
|
||||
<td>
|
||||
<span
|
||||
class="source-badge source-badge--{{
|
||||
@@ -46,6 +49,7 @@
|
||||
{{ item.patent.source }}
|
||||
</span>
|
||||
</td>
|
||||
<td>{{ item.patent.publication_year ?? '-' }}</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
@@ -72,6 +76,24 @@
|
||||
<div class="patent-detail">
|
||||
<h3>{{ match.patent.title ?? match.patent.patent_id }}</h3>
|
||||
<div class="detail-stats">
|
||||
<div class="stat">
|
||||
<span class="stat-label">Match-Score</span>
|
||||
<span class="stat-value">{{
|
||||
formatScore(match.match_score)
|
||||
}}</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<span class="stat-label">Gematchte Keywords</span>
|
||||
<span class="stat-value">{{
|
||||
formatMatchList(match.matched_keywords)
|
||||
}}</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<span class="stat-label">Gematchte IPC/CPC</span>
|
||||
<span class="stat-value">{{
|
||||
formatMatchList(match.matched_ipc_symbols)
|
||||
}}</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<span class="stat-label">Quelle</span>
|
||||
<span class="stat-value">
|
||||
|
||||
@@ -99,6 +99,20 @@ export class KeywordsPatentsComponent {
|
||||
return getPublicationStageLabel(patent);
|
||||
}
|
||||
|
||||
formatScore(score: number | null | undefined): string {
|
||||
if (score == null || Number.isNaN(score)) {
|
||||
return '-';
|
||||
}
|
||||
return score.toFixed(2);
|
||||
}
|
||||
|
||||
formatMatchList(values: string[] | null | undefined): string {
|
||||
if (!values || values.length === 0) {
|
||||
return '-';
|
||||
}
|
||||
return values.join(', ');
|
||||
}
|
||||
|
||||
trackMatch(_index: number, item: KeywordPatentMatch): string {
|
||||
const patent = item.patent;
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user