Skip to content
Merged
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
5 changes: 2 additions & 3 deletions app/views/search/_result_primo.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,15 @@
<div class="result-get">
<% 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' %>
<% end %>
<%# 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 %>
Expand Down