fix(patents): restore patent detail API and align frontend service types
LocationBasedServices/smartguide/pipeline/pr-dev This commit looks good

Re-add getPatentByIdOrTitle endpoint and OrgPatentMatchTypeFilter export
lost during dev merge; update institution-patents to use options-based API.
This commit is contained in:
2026-07-06 13:57:47 +02:00
parent eb89076070
commit de4ba0591e
6 changed files with 152 additions and 10 deletions
@@ -130,13 +130,13 @@ export class InstitutionPatentsComponent implements OnInit {
this.error = false;
this.patentsApi
.getOrgPatentsByInstitution(
institutionId,
this.activeMatchType,
this.selectedPage - 1,
this.pageSize,
this.activeFilter !== 'all' ? this.activeFilter : undefined,
)
.getOrgPatentsByInstitution(institutionId, 'body', false, {
matchType:
this.activeMatchType !== 'all' ? this.activeMatchType : undefined,
page: this.selectedPage - 1,
size: this.pageSize,
source: this.activeFilter !== 'all' ? this.activeFilter : undefined,
})
.subscribe({
next: (result) => {
this.patents = result.patents ?? [];
@@ -128,7 +128,7 @@ export class PatentDetailComponent implements OnInit {
.getPatentByIdOrTitle(patentId, prefix, title, fillingDate)
.pipe(finalize(() => (this.loading = false)))
.subscribe({
next: (patent) => {
next: (patent: PatentEntry) => {
this.patent = patent;
},
error: () => {