diff --git a/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.html b/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.html index 637356fa..49172464 100644 --- a/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.html +++ b/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.html @@ -65,18 +65,20 @@ menu_book Publikationen - - work - Projekte - + @if (isOwnInstitution()) { + + work + Projekte + + } @if (hasPatents()) { (); @@ -43,6 +45,17 @@ export class AppInstitutionCardComponent { return 'Unbekannte Institution'; }); + isOwnInstitution = computed(() => { + const id = this.stripOpenAlexId(this.institution().id); + if (!id) return false; + + console.log( + `Comparing institution ID ${id} with effective institution ID ${this.credentialService.effectiveInstitutionId()}`, + ); + + return id === this.credentialService.effectiveInstitutionId(); + }); + // The "Patente" action only makes sense once org_patents has been indexed // for this institution (currently a manual, per-institution process), so // it's hidden by default and only shown once a cheap count check confirms