Skip to content

Commit

Permalink
Merge branch 'main' into jeremyf-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Shana Moore authored Apr 22, 2024
2 parents b7b7b6f + 08c2d48 commit 5f2923e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<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)%>
<%= link_to value, generate_work_url(document, request)%>
<div class="caption">
<%= render_document_partials document, blacklight_config.view_config(:gallery).partials, :document_counter => document_counter %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/_index_header_list_collection.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="search-results-title-row col-12 d-flex flex-row align-items-center pb-2">
<%# OVERRIDE begin %>
<h3 class="search-result-title mb-0 pr-3"><%= link_to document.title_or_label, generate_work_url(document.to_h, request) %></h3>
<h3 class="search-result-title mb-0 pr-3"><%= link_to document.title_or_label, generate_work_url(document, request) %></h3>
<%# OVERRIDE end %>
<%= Hyrax::CollectionPresenter.new(document, current_ability).collection_type_badge %>
</div>
2 changes: 1 addition & 1 deletion app/views/catalog/_thumbnail_list_collection.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%# Override Hyrax 3.4.1 to remove thumbnail link supression and use default collection thumbnail %>
<div class="col-md-3">
<% value = collection_thumbnail(document, {}, counter: document_counter_with_offset(document_counter)) %>
<%= link_to value, generate_work_url(document.to_h, request)%>
<%= link_to value, generate_work_url(document, request)%>
</div>
2 changes: 1 addition & 1 deletion app/views/hyrax/homepage/_recent_document.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<span class="sr-only"><%= t('hyrax.homepage.recently_uploaded.document.title_label') %></span>
<h3>
<%= render_thumbnail_tag recent_document, {}, {suppress_link: true} %>
<%= link_to recent_document.title_or_label, generate_work_url(recent_document.to_h, request), data: { turbolinks: block_valkyrie_redirect? } %>
<%= link_to recent_document.title_or_label, generate_work_url(recent_document, request), data: { turbolinks: block_valkyrie_redirect? } %>
</h3>
<p class="recent-field">
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<div class="recently-uploaded col-6 col-md-2">
<%= render_thumbnail_tag recent_document, {class: 'img-fluid mx-auto d-block'}, {suppress_link: true} %>
<div class="recent-doc-title">
<%= link_to recent_document.title_or_label, generate_work_url(recent_document.to_h, request) %>
<%= link_to recent_document.title_or_label, generate_work_url(recent_document, request) %>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<div class="recently-uploaded col-6 col-md-6 pt-3 pb-3">
<%= render_thumbnail_tag recent_document, {class: 'img-fluid mx-auto d-block'}, {suppress_link: true} %>
<div class="recent-doc-title">
<%= link_to recent_document.title_or_label, generate_work_url(recent_document.to_h, request) %>
<%= link_to recent_document.title_or_label, generate_work_url(recent_document, request) %>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<div class="recently-uploaded pb-3 col-6 col-md-6">
<%= render_thumbnail_tag recent_document, {class: 'img-fluid mx-auto d-block'}, {suppress_link: true} %>
<div class="recent-doc-title">
<%= link_to recent_document.title_or_label, generate_work_url(recent_document.to_h, request) %>
<%= link_to recent_document.title_or_label, generate_work_url(recent_document, request) %>
</div>
</div>

0 comments on commit 5f2923e

Please sign in to comment.