fix(patents): restore patent detail API and align frontend service types
LocationBasedServices/smartguide/pipeline/pr-dev This commit looks good
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:
@@ -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: () => {
|
||||
|
||||
Reference in New Issue
Block a user