diff --git a/webapp/src/app/modules/person-card/person-card.component.html b/webapp/src/app/modules/person-card/person-card.component.html
index 946430ae..1f7741d4 100644
--- a/webapp/src/app/modules/person-card/person-card.component.html
+++ b/webapp/src/app/modules/person-card/person-card.component.html
@@ -95,6 +95,14 @@
>{{ inst.country_code.toUpperCase() }}
}
+ @if (institutionPageId() && !loading()) {
+ open_in_new
+ }
}
diff --git a/webapp/src/app/modules/person-card/person-card.component.scss b/webapp/src/app/modules/person-card/person-card.component.scss
index 75f0ed69..2172cd99 100644
--- a/webapp/src/app/modules/person-card/person-card.component.scss
+++ b/webapp/src/app/modules/person-card/person-card.component.scss
@@ -162,6 +162,31 @@
white-space: nowrap;
}
+ .institution-open-icon {
+ flex-shrink: 0;
+ width: 12px;
+ height: 12px;
+ margin-left: 5px;
+ font-size: 12px;
+ line-height: 1;
+ vertical-align: middle;
+ cursor: pointer;
+ opacity: 0;
+ transition: opacity 0.15s ease;
+
+ &:hover {
+ opacity: 1;
+ }
+ }
+
+ &:hover .institution-open-icon {
+ opacity: 0.7;
+
+ &:hover {
+ opacity: 1;
+ }
+ }
+
&:hover,
&:focus-visible {
background: var(--sg-primary);
diff --git a/webapp/src/app/modules/person-card/person-card.component.ts b/webapp/src/app/modules/person-card/person-card.component.ts
index e8a50711..aef4cd8f 100644
--- a/webapp/src/app/modules/person-card/person-card.component.ts
+++ b/webapp/src/app/modules/person-card/person-card.component.ts
@@ -1,6 +1,6 @@
-import { Component, input, computed, output } from '@angular/core';
+import { Component, inject, input, computed, output } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { RouterLink } from '@angular/router';
+import { Router, RouterLink } from '@angular/router';
import { MatIconModule } from '@angular/material/icon';
import { MatTooltipModule } from '@angular/material/tooltip';
import { CustomAuthor, DehydratedInstitution, WorkTopic } from '../../api';
@@ -23,6 +23,8 @@ import { topicHierarchyColor } from '../../resolvers/utils/topic-colors';
styleUrl: './person-card.component.scss',
})
export class PersonCardComponent {
+ private readonly router = inject(Router);
+
person = input.required();
isBookmarked = input(false);
loading = input(false);
@@ -66,6 +68,20 @@ export class PersonCardComponent {
return newestInstitution;
});
+ institutionPageId = computed(
+ () => this.institution()?.id?.split('/').pop() ?? null,
+ );
+
+ openInstitutionPage(event: Event): void {
+ event.stopPropagation();
+ event.preventDefault();
+
+ const id = this.institutionPageId();
+ if (!id) return;
+
+ void this.router.navigate(['/institution', id]);
+ }
+
isInstitutionActive = computed(() => {
const active = this.activeInstitutionName().trim().toLowerCase();
if (!active) return false;
diff --git a/webapp/src/app/modules/person-list/person-list.component.html b/webapp/src/app/modules/person-list/person-list.component.html
index 0dc9fe14..9647b24a 100644
--- a/webapp/src/app/modules/person-list/person-list.component.html
+++ b/webapp/src/app/modules/person-list/person-list.component.html
@@ -82,6 +82,14 @@
filter.countryCode.toUpperCase()
}}
}
+ @if (findInstitutionPageIdByName(filter.value)) {
+ open_in_new
+ }