From e64e0836cbce96fb8f56074e4bec9b84751cd998 Mon Sep 17 00:00:00 2001 From: Jeremy Prevost Date: Fri, 23 Jan 2026 09:15:26 -0500 Subject: [PATCH] Reintroduce changes inadvertently removed These changes were lost in a rebase and are being reintroduced to restore functionality. --- app/views/search/_result_primo.html.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/search/_result_primo.html.erb b/app/views/search/_result_primo.html.erb index f311b48b..f0f03652 100644 --- a/app/views/search/_result_primo.html.erb +++ b/app/views/search/_result_primo.html.erb @@ -72,8 +72,7 @@
<% if result[:links].present? %> <% result[:links].each do |link| %> - <% kind = link['kind'].to_s.strip.downcase %> - <% if kind.include?('full') && kind.include?('record') %> + <% if link['kind'].downcase == 'full record' %> <%# Full record link button uses the same link as the title link %> <% if Feature.enabled?(:record_link) %> <%= link_to 'View full record', link['url'], class: 'button' %> @@ -81,7 +80,7 @@ <%# Primo supplies PDF and HTML links in addition to the OpenURL variant that may be useful. %> <%# We hide links with the `primo-link` css class if LibKey returns results. %> <% else %> - <%= link_to link['kind'].to_s.titleize, link['url'], class: 'button primo-link' %> + <%= link_to link['kind'], link['url'], class: 'button primo-link' %> <% end %> <% end %> <% end %>