From b50efacf20c0714698aa362f58268d42b82f6822 Mon Sep 17 00:00:00 2001 From: braydonjustice Date: Wed, 27 Nov 2024 23:03:51 -0800 Subject: [PATCH 1/2] Added slideshow start info back in from blacklight. --- app/assets/stylesheets/hyku.scss | 6 ++++++ app/views/hyrax/collections/show.html.erb | 3 +++ config/locales/en.yml | 1 + 3 files changed, 10 insertions(+) diff --git a/app/assets/stylesheets/hyku.scss b/app/assets/stylesheets/hyku.scss index 7548f944f..49d6692fa 100644 --- a/app/assets/stylesheets/hyku.scss +++ b/app/assets/stylesheets/hyku.scss @@ -716,3 +716,9 @@ tr[data-feature="use-iiif-print"] { flex-wrap: wrap; justify-content: space-between; } + +// slideshow heading +.slideshow-info { + text-align: center; + margin-bottom: 15px; +} \ No newline at end of file diff --git a/app/views/hyrax/collections/show.html.erb b/app/views/hyrax/collections/show.html.erb index 8c58bbff9..6a9e06565 100644 --- a/app/views/hyrax/collections/show.html.erb +++ b/app/views/hyrax/collections/show.html.erb @@ -135,6 +135,9 @@
+
+

<%= t('blacklight.slideshow_info') %>

+
<%= render_document_index @member_docs %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 079ab41c7..996be35f6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -19,6 +19,7 @@ en: etd: "ETD" oer: "OER" blacklight: + slideshow_info: "Select an image to start the slideshow" search: fields: facet: From ff57b3be39860abb75dc329ebb847c2c41bb03c1 Mon Sep 17 00:00:00 2001 From: braydonjustice Date: Thu, 28 Nov 2024 00:36:47 -0800 Subject: [PATCH 2/2] displays slideshow info only when view_type is 'slideshow' --- app/views/hyrax/collections/show.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/hyrax/collections/show.html.erb b/app/views/hyrax/collections/show.html.erb index 6a9e06565..42a8e3f70 100644 --- a/app/views/hyrax/collections/show.html.erb +++ b/app/views/hyrax/collections/show.html.erb @@ -135,9 +135,11 @@
-
-

<%= t('blacklight.slideshow_info') %>

-
+ <% if document_index_view_type == :slideshow %> +
+

<%= t('blacklight.slideshow_info') %>

+
+ <% end %> <%= render_document_index @member_docs %>