Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ public String getPermalink(String uuid, String language) {
// Get the recordLinkFormatter from the UI configuration
String recordLinkFormatter = XslUtil.getUiConfigurationJsonProperty(null, "mods.search.formatter.recordLinkFormatter");

// If the recordLinkFormatter is defined append it to the defaultLink
// If recordLinkFormatter is configured add the recordViewFormatter query parameter
if (StringUtils.isNotBlank(recordLinkFormatter)) {
uriComponentsBuilder.queryParam("recordLinkFormatter", recordLinkFormatter);
uriComponentsBuilder.queryParam("recordViewFormatter", recordLinkFormatter);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ private String replaceLinks(String message) {
.fromHttpUrl(settingManager.getNodeURL())
.pathSegment("api", "records", replaceLinksWithHtmlFormat ? "{{index:uuid}}" : "'{{'index:uuid'}}'");

// If recordLinkFormatter is configured add it as a query parameter
// If recordLinkFormatter is configured add the recordViewFormatter query parameter
if (StringUtils.isNotBlank(recordLinkFormatter)) {
uriComponentsBuilder.queryParam("recordLinkFormatter", recordLinkFormatter);
uriComponentsBuilder.queryParam("recordViewFormatter", recordLinkFormatter);
}

return message.replace("{{link}}", uriComponentsBuilder.build().toString());
Expand Down
Loading