File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 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 %>
You can’t perform that action at this time.
0 commit comments