Skip to content

Commit e64e083

Browse files
committed
Reintroduce changes inadvertently removed
These changes were lost in a rebase and are being reintroduced to restore functionality.
1 parent 3592e92 commit e64e083

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/views/search/_result_primo.html.erb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,15 @@
7272
<div class="result-get">
7373
<% if result[:links].present? %>
7474
<% result[:links].each do |link| %>
75-
<% kind = link['kind'].to_s.strip.downcase %>
76-
<% if kind.include?('full') && kind.include?('record') %>
75+
<% if link['kind'].downcase == 'full record' %>
7776
<%# Full record link button uses the same link as the title link %>
7877
<% if Feature.enabled?(:record_link) %>
7978
<%= link_to 'View full record', link['url'], class: 'button' %>
8079
<% end %>
8180
<%# Primo supplies PDF and HTML links in addition to the OpenURL variant that may be useful. %>
8281
<%# We hide links with the `primo-link` css class if LibKey returns results. %>
8382
<% else %>
84-
<%= link_to link['kind'].to_s.titleize, link['url'], class: 'button primo-link' %>
83+
<%= link_to link['kind'], link['url'], class: 'button primo-link' %>
8584
<% end %>
8685
<% end %>
8786
<% end %>

0 commit comments

Comments
 (0)