diff --git a/app/views/catalog/_thumbnail_list_collection.html.erb b/app/views/catalog/_thumbnail_list_collection.html.erb new file mode 100644 index 000000000..4674e1800 --- /dev/null +++ b/app/views/catalog/_thumbnail_list_collection.html.erb @@ -0,0 +1,5 @@ +<%# [hyc-override] https://github.com/samvera/hyrax/blob/hyrax-v4.0.0/app/views/catalog/_thumbnail_list_collection.html.erb %> +<%# [hyc-override] Add alt text for thumbnails @todo can be removed when fixed upstream %> +
+ <%= document_presenter(document)&.thumbnail&.thumbnail_tag({ alt: "Thumbnail for #{document.title_or_label}" }, { suppress_link: true }) %> +
\ No newline at end of file diff --git a/app/views/catalog/_thumbnail_list_default.html.erb b/app/views/catalog/_thumbnail_list_default.html.erb new file mode 100644 index 000000000..a2aa04ebb --- /dev/null +++ b/app/views/catalog/_thumbnail_list_default.html.erb @@ -0,0 +1,12 @@ +<%# [hyc-override] https://github.com/samvera/hyrax/blob/hyrax-v4.0.0/app/views/catalog/_thumbnail_list_default.html.erb %> +<%# [hyc-override] Add alt text for thumbnails @todo can be removed when fixed upstream %> +<% model = document.hydra_model %> +
+ <% if model == Hyrax::PcdmCollection || model < Hyrax::PcdmCollection %> + <%= document_presenter(document)&.thumbnail&.thumbnail_tag({ alt: "Thumbnail for #{document.title_or_label}"}, suppress_link: true) %> + <% else %> +
+ <%= document_presenter(document)&.thumbnail&.thumbnail_tag({ alt: "Thumbnail for #{document.title_or_label }" }) %> +
+ <% end %> +
\ No newline at end of file diff --git a/app/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb b/app/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb index 76cbbe6ed..767246891 100644 --- a/app/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb +++ b/app/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb @@ -1,4 +1,5 @@ <%# [hyc-override] https://github.com/samvera/hyrax/tree/hyrax-v4.0.0/app/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb %> +<%# [hyc-override] Add alt text for thumbnails @todo can be removed when fixed upstream %> <% document = show_document_list_row %> <% id = document.id %> @@ -10,7 +11,7 @@
<%= link_to [main_app, document], "class" => "media-left", "aria-hidden" => "true" do %> - <%= document_presenter(document)&.thumbnail&.thumbnail_tag({ class: "d-none d-md-block file_listing_thumbnail" }, { suppress_link: true }) %> + <%= document_presenter(document)&.thumbnail&.thumbnail_tag({ class: "d-none d-md-block file_listing_thumbnail", alt: "Thumbnail for #{document.title_or_label}" }, { suppress_link: true }) %> <% end %>

diff --git a/app/views/hyrax/admin/admin_sets/show.html.erb b/app/views/hyrax/admin/admin_sets/show.html.erb new file mode 100644 index 000000000..41a374343 --- /dev/null +++ b/app/views/hyrax/admin/admin_sets/show.html.erb @@ -0,0 +1,38 @@ +<%# https://github.com/samvera/hyrax/blob/hyrax-v4.0.0/app/views/hyrax/admin/admin_sets/show.html.erb %> +<%# [hyc-override] Add alt text for thumbnails @todo can be removed when fixed upstream %> +<% provide :page_header do %> +

<%= t('.header') %>

+<% end %> + +
+
+
+ <%= render 'show_actions', presenter: @presenter %> + +
+
+ <% if has_thumbnail? @presenter.solr_document %> +
+ <%= render_thumbnail_tag(@presenter.solr_document, { alt: 'thumbnail' }, { suppress_link: true }) %> +
+ <% else %> + + <% end %> +
+
+ <%= render 'collection_description', presenter: @presenter %> + <%= render 'show_descriptions' %> +
+
+ +
+

<%= t '.item_list_header' %>

+ <%= render 'sort_and_per_page', collection: @presenter %> + + <%= render_document_index @member_docs %> + + <%= render 'paginate' %> +
+
+
+
diff --git a/app/views/hyrax/base/_file_manager_thumbnail.html.erb b/app/views/hyrax/base/_file_manager_thumbnail.html.erb new file mode 100644 index 000000000..8f9eeba41 --- /dev/null +++ b/app/views/hyrax/base/_file_manager_thumbnail.html.erb @@ -0,0 +1,3 @@ +<%# https://github.com/samvera/hyrax/blob/hyrax-v4.0.0/app/views/hyrax/base/_file_manager_thumbnail.html.erb %> +<%# [hyc-override] Add alt text for thumbnails @todo can be removed when fixed upstream %> +<%= document_presenter(node)&.thumbnail&.thumbnail_tag({ alt: 'thumbnail', class: 'thumbnail-inner mw-100' }, {}) %> \ No newline at end of file diff --git a/app/views/hyrax/collections/_list_works.html.erb b/app/views/hyrax/collections/_list_works.html.erb new file mode 100644 index 000000000..0c34e79e1 --- /dev/null +++ b/app/views/hyrax/collections/_list_works.html.erb @@ -0,0 +1,40 @@ +<%# https://github.com/samvera/hyrax/blob/hyrax-v4.0.0/app/views/hyrax/collections/_list_works.html.erb %> +<%# [hyc-override] Add alt text for thumbnails @todo can be removed when fixed upstream %> + + + + + <%= render 'hyrax/batch_select/add_button', document: document %>  + + + +
+ <%= link_to [main_app, document], class: 'media-left', 'aria-hidden' => true do %> + <%= document_presenter(document)&.thumbnail&.thumbnail_tag( + { alt: "Thumbnail for #{document.title_or_label}", class: 'd-none d-md-block file_listing_thumbnail' }, { suppress_link: true } + ) %> + <% end %> + +
+
+ + <%= link_to [main_app, document], id: "src_copy_link#{document.id}", class: 'document-title' do %> + + <%= t("hyrax.dashboard.my.sr.show_label") %> + + <%= document.title_or_label %> + <% end %> + +
+ <%= render_collection_links(document) %> + +
+
+
+ + + <%= document.date_uploaded %> + + + <%= render_visibility_link document %> + \ No newline at end of file diff --git a/app/views/hyrax/dashboard/collections/_list_works.html.erb b/app/views/hyrax/dashboard/collections/_list_works.html.erb new file mode 100644 index 000000000..086ba8a68 --- /dev/null +++ b/app/views/hyrax/dashboard/collections/_list_works.html.erb @@ -0,0 +1,44 @@ +<%# https://github.com/samvera/hyrax/blob/hyrax-v4.0.0/app/views/hyrax/dashboard/collections/_list_works.html.erb %> +<%# [hyc-override] Add alt text for thumbnails @todo can be removed when fixed upstream %> + + + + + <%= render 'hyrax/batch_select/add_button', document: document %>  + + + +
+ <%= link_to [main_app, document], class: 'media-left', 'aria-hidden': true do %> + <%= document_presenter(document)&.thumbnail&.thumbnail_tag( + { class: 'd-none d-md-block file_listing_thumbnail', alt: "Thumbnail for #{document.title_or_label}" }, { suppress_link: true } + ) %> + <% end %> + +
+
+ + <%= link_to [main_app, document], id: "src_copy_link#{document.id}", class: 'document-title' do %> + + <%= t("hyrax.dashboard.my.sr.show_label") %> + + <%= document.title_or_label %> + <% end %> + +
+ <%= render_collection_links(document) %> + +
+
+
+ + + <%= document.date_uploaded %> + + + <%= render_visibility_link document %> + + + <%= render 'work_action_menu', document: document %> + + \ No newline at end of file