From c61fee836f3c3ff1b6f0533a03f39653988750ec Mon Sep 17 00:00:00 2001 From: jazairi <16103405+jazairi@users.noreply.github.com> Date: Tue, 3 Feb 2026 10:00:44 -0800 Subject: [PATCH] Reintroduce availability statements for journals Why these changes are being introduced: We had removed this feature, but UXWS would like it back. Relevant ticket(s): - [USE-363](https://mitlibraries.atlassian.net/browse/USE-363) How this addresses that need: This removes the clause that excludes journals from availability statements. Side effects of this change: None. --- app/views/search/_result_primo.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/search/_result_primo.html.erb b/app/views/search/_result_primo.html.erb index 4bd5d27d..9d06348b 100644 --- a/app/views/search/_result_primo.html.erb +++ b/app/views/search/_result_primo.html.erb @@ -97,7 +97,7 @@ <%= render(partial: 'trigger_openalex_setup', locals: { doi: result[:doi], pmid: result[:pmid] }) %> <% end %> - <% if result[:availability].present? && result[:format].downcase != 'journal' %> + <% if result[:availability].present? %> <% if result[:links]&.find { |link| link['kind'] == 'full record' } %> <%= link_to(availability(result[:availability], result[:location], result[:other_availability]), result[:links].find { |link| link['kind'] == 'full record' }['url']) %>