From b4ecafd011e61825857106b72605ba6fdd7ac1d1 Mon Sep 17 00:00:00 2001 From: Matus Kasak Date: Tue, 26 May 2026 17:23:34 +0200 Subject: [PATCH] Redirect to search with name not authority --- src/app/shared/clarin-shared-util.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/app/shared/clarin-shared-util.ts b/src/app/shared/clarin-shared-util.ts index ea52d86bf9e..a0280f46582 100644 --- a/src/app/shared/clarin-shared-util.ts +++ b/src/app/shared/clarin-shared-util.ts @@ -84,8 +84,6 @@ export function loadItemAuthors(item, itemAuthors, baseUrl, fields, orcidDomainU authorsMV.forEach((authorMV: MetadataValue) => { let isOrcid = false; let orcidUrl: string; - let searchValue: string; - let searchOperator: string; if (authorMV.authority) { const authority = String(authorMV.authority).trim(); if (ORCID_URL_PATTERN.test(authority)) { @@ -95,13 +93,10 @@ export function loadItemAuthors(item, itemAuthors, baseUrl, fields, orcidDomainU orcidUrl = `${domain}/${authority}`; isOrcid = true; } - searchValue = encodeURIComponent(authorMV.authority); - searchOperator = 'authority'; - } else { - searchValue = encodeURIComponent(authorMV.value); - searchOperator = 'equals'; } - const authorSearchLink = baseUrl + '/search?f.author=' + searchValue + ',' + searchOperator; + // Always redirect search by author name (equals), regardless of authority/ORCID. + // The ORCID iD is only used to build the orcidUrl for the ORCID icon link. + const authorSearchLink = baseUrl + '/search?f.author=' + encodeURIComponent(authorMV.value) + ',equals'; const authorNameLink = Object.assign(new AuthorNameLink(), { name: authorMV.value, url: authorSearchLink,