@if (loading) { } @else if (error) {

{{ 'personPatents.loadError' | translate }}

} @else if (patents.length === 0) {

{{ 'institutionPatents.empty' | translate }}

{{ 'institutionPatents.indexHint' | translate }} python service/scripts/index_org_patents.py --institution-id {{ institutionId }}

} @else {
Matching {{ 'common.all' | translate }} {{ 'publications.institution' | translate }} {{ 'jobs.name' | translate }} {{ 'institutionPatents.both' | translate }} {{ 'personPatents.filterSource' | translate }} {{ 'common.all' | translate }} EPO USPTO {{ 'personPatents.sortBy' | translate }} {{ 'publicationDetail.date' | translate }} {{ 'projects.columnTitle' | translate }}
@for ( patent of getPagedPatents(); track trackPatent($index, patent) ) { }
{{ 'personPatents.patent' | translate }} {{ 'patents.source' | translate }} {{ 'publications.year' | translate }} {{ 'patents.inventors' | translate }} {{ 'institutionPatents.applicantAssignee' | translate }} {{ 'institutionPatents.matchType' | translate }} {{ 'nav.people' | translate }}
{{ patent.title ?? patent.patent_id }} {{ patent.source }} {{ patent.publication_year ?? '-' }} {{ getInventorsPreview(patent) }} {{ getAssigneesPreview(patent) }} {{ getMatchTypeLabel(patent) }} @if ( patent.matched_authors && patent.matched_authors.length ) { @for ( author of patent.matched_authors.slice(0, 2); track author.openalex_author_id ) { {{ author.author_name }} } } @else { - }
@if (selectedPatent) {

{{ selectedPatent.title ?? selectedPatent.patent_id }}

{{ 'patents.source' | translate }} {{ selectedPatent.source }}
{{ 'patents.number' | translate }} {{ selectedPatent.patent_id }}
{{ 'publicationDetail.date' | translate }} @if (selectedPatent.publication_date) { {{ formatDate(selectedPatent.publication_date) }} }
{{ 'institutionPatents.matchType' | translate }} {{ getMatchTypeLabel(selectedPatent) }}
@if (getPublicationStageLabel(selectedPatent); as stageLabel) {
{{ 'patents.publicationStage' | translate }} {{ stageLabel }}
}
@if (selectedPatent.matched_authors?.length) {

{{ 'institutionPatents.linkedPeople' | translate }}

} @if ( getAbstractPreview(selectedPatent.abstract); as abstractPreview ) {

{{ abstractPreview }}

}

{{ 'personPatents.detailHint' | translate }}

} @else {

{{ 'personPatents.overview' | translate }}

@if (institutionName) { {{ 'institutionPatents.allBy' | translate }} {{ institutionName }}. } @else { {{ 'institutionPatents.allInstitution' | translate }} }

{{ totalPatents }} {{ 'patents.title' | translate }}
{{ getInstitutionMatchCount() }} {{ 'publications.institution' | translate }}
{{ getNameMatchCount() }} {{ 'jobs.name' | translate }}
{{ getBothMatchCount() }} {{ 'institutionPatents.both' | translate }}

{{ 'institutionPatents.selectHint' | translate }}

}
}