From 36b4120b8abe051cf3938b64864d7ba0c3934b4b Mon Sep 17 00:00:00 2001 From: Julie Hardesty Date: Wed, 25 Sep 2024 10:51:16 -0400 Subject: [PATCH] Adding alt attribute on thumbnail --- app/views/catalog/_thumbnail_list_default.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/catalog/_thumbnail_list_default.html.erb b/app/views/catalog/_thumbnail_list_default.html.erb index a130be400e..35e6cb0694 100644 --- a/app/views/catalog/_thumbnail_list_default.html.erb +++ b/app/views/catalog/_thumbnail_list_default.html.erb @@ -1,10 +1,10 @@ <% model = document.hydra_model %>
<% if model == Hyrax::PcdmCollection || model < Hyrax::PcdmCollection %> - <%= document_presenter(document)&.thumbnail&.thumbnail_tag({}, suppress_link: true) %> + <%= document_presenter(document)&.thumbnail&.thumbnail_tag({}, suppress_link: true, alt: document.title_or_label) %> <% else %>
- <%= document_presenter(document)&.thumbnail&.thumbnail_tag %> + <%= document_presenter(document)&.thumbnail&.thumbnail_tag(alt: document.title_or_label) %>
<% end %>