Skip to content

Commit

Permalink
🧹 Shared Search: Don't display "From:" if there is no value to display
Browse files Browse the repository at this point in the history
  • Loading branch information
Shana Moore committed Dec 7, 2023
1 parent a7e0a6a commit 51d370f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/views/catalog/_index_list_default.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
<% end %>
<% end %>
<% if current_account.search_only %>
<small class="search-only-institution-link">
<span>From: <%= link_to "//#{document.account_cname.first}", target: :_blank do %>
<%= document.account_institution_name&.join %>
<% end %></span>
</small>
<% if document.account_institution_name.first.present? %>
<small class="search-only-institution-link">
<span>From: <%= link_to "//#{document.account_cname.first}", target: :_blank do %>
<%= document.account_institution_name&.join %>
<% end %></span>
</small>
<% end %>
<% end %>
</dl>
</div>
Expand Down

0 comments on commit 51d370f

Please sign in to comment.