Skip to content

Commit

Permalink
🐛 Fix custom thumbnail showing on searches
Browse files Browse the repository at this point in the history
This commit will remove a Hyrax override that seemed to be causing some
issues with the search list view and also bring in a fix from PALs with
to address the search gallery view.

Ref:
  - #122
  - scientist-softserv/palni-palci#540
  • Loading branch information
kirkkwang committed Nov 17, 2023
1 parent ddd0516 commit 4f5f555
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 5 additions & 4 deletions app/views/catalog/_index_gallery_collection_wrapper.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<%# OVERRIDE Hyrax 3.4.1: make collection thumbnail a link so it matches works %>
<div class="document col-xs-6 col-md-3">
<%# OVERRIDE: Hyrax 3.5 to use render_thumbnail_tag for gallery view partial %>
<div class="document col-6 col-md-3">
<div class="thumbnail">
<% value = collection_thumbnail(document, {}, counter: document_counter_with_offset(document_counter)) %>
<%= link_to value, generate_work_url(document.to_h, request)%>
<%# OVERRIDE begin %>
<%= render_thumbnail_tag document, {}, { full_url: true } %>
<%# OVERRIDE end %>
<div class="caption">
<%= render_document_partials document, blacklight_config.view_config(:gallery).partials, :document_counter => document_counter %>
</div>
Expand Down
5 changes: 0 additions & 5 deletions app/views/catalog/_thumbnail_list_collection.html.erb

This file was deleted.

0 comments on commit 4f5f555

Please sign in to comment.