From 323336ce8a940248cd226e77a98ba46a87b0d4b1 Mon Sep 17 00:00:00 2001 From: Mike Ritter Date: Wed, 18 Dec 2024 16:26:43 -0500 Subject: [PATCH] Use link text formatter to display external link --- src/config/default.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/config/default.js b/src/config/default.js index 0381bf2..c6d5fed 100644 --- a/src/config/default.js +++ b/src/config/default.js @@ -6,6 +6,7 @@ import { decade, displayName, filterLink, + linkText, list, listOf, nameRole, @@ -619,9 +620,10 @@ export default { }, }), field: 'collectionobjects_common:publishedRelatedLinkGroupList', - format: listOf(nameRole({ - nameFieldName: 'relatedLink', - roleFieldName: 'descriptiveTitle', + format: listOf(linkText({ + urlFieldName: 'relatedLink', + textFieldName: 'descriptiveTitle', + type: 'external', })), }, },