From f96bd28af0520023e58109c734e31f4930596808 Mon Sep 17 00:00:00 2001 From: Kirk Wang Date: Wed, 19 Jul 2023 08:14:40 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=81=20Make=20alt=20text=20for=20defaul?= =?UTF-8?q?t=20thumbnails=20dynamic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit will update both AllinsonFlex and IIIF Print to bring in the partials that affect certain thumbnail images. They should now have their alt text respect the alt text that has been set in the Appearance tab. Ref: - https://github.com/samvera-labs/allinson_flex/pull/118 - https://github.com/scientist-softserv/iiif_print/pull/267 - https://github.com/scientist-softserv/utk-hyku/issues/471 --- Gemfile.lock | 4 ++-- app/helpers/hyrax_helper.rb | 2 +- app/views/hyrax/collections/_media_display.html.erb | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 77e1df3a..ed1949e2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/samvera-labs/allinson_flex.git - revision: e98815f6178cc17fab70c189d0fe96a618384a7a + revision: f493853597c71334d436bbe57d62e1ee7f5ada74 specs: allinson_flex (0.1.0) json_schemer @@ -124,7 +124,7 @@ GIT GIT remote: https://github.com/scientist-softserv/iiif_print.git - revision: 7b82aa323db891f5f8e362e13bf3f14b4fe9e0dc + revision: eb320b1c454f0219d9e17fd12fd2b525770123b2 branch: main specs: iiif_print (1.0.0) diff --git a/app/helpers/hyrax_helper.rb b/app/helpers/hyrax_helper.rb index 8daaf4fe..af5b508e 100644 --- a/app/helpers/hyrax_helper.rb +++ b/app/helpers/hyrax_helper.rb @@ -42,6 +42,6 @@ def default_collction_image end def default_work_image - Site.instance.default_work_image? ? Site.instance.default_work_image.url : 'default.png' + Site.instance.default_work_image? ? Site.instance.default_work_image.url : 'work.png' end end diff --git a/app/views/hyrax/collections/_media_display.html.erb b/app/views/hyrax/collections/_media_display.html.erb index 3be71338..9dbeb6cb 100644 --- a/app/views/hyrax/collections/_media_display.html.erb +++ b/app/views/hyrax/collections/_media_display.html.erb @@ -1,8 +1,8 @@ <% if presenter.thumbnail_path %> <%= image_tag presenter.thumbnail_path, class: "representative-media", - alt: "", + alt: block_for(name: 'default_collection_image_text'), role: "presentation" %> <% else %> <%= image_tag(Site.instance.default_collection_image) %> -<% end %> \ No newline at end of file +<% end %>