From 4ef68b45a64a5a0e13f3700aae8bdadfeea30f31 Mon Sep 17 00:00:00 2001 From: Christy Karpinski Date: Thu, 27 Jul 2023 09:34:35 -0500 Subject: [PATCH 1/5] fixed work show themes to have citations and layout to match UI pictures --- app/assets/stylesheets/themes/cultural_show.scss | 8 ++++++++ .../themes/cultural_show/hyrax/base/show.html.erb | 5 +++-- .../themes/scholarly_show/hyrax/base/show.html.erb | 12 ++++++++---- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/themes/cultural_show.scss b/app/assets/stylesheets/themes/cultural_show.scss index fd923dda..0eb8409f 100644 --- a/app/assets/stylesheets/themes/cultural_show.scss +++ b/app/assets/stylesheets/themes/cultural_show.scss @@ -1,5 +1,13 @@ .cultural_show { + .show-actions { + margin-bottom: 0.5em; + } + + .centered-media.text-center img.canonical-image { + max-width: 300px; + } + dl.work-show dd { border-bottom: 1px solid #ddd; diff --git a/app/views/themes/cultural_show/hyrax/base/show.html.erb b/app/views/themes/cultural_show/hyrax/base/show.html.erb index 8adeda83..061ce53b 100644 --- a/app/views/themes/cultural_show/hyrax/base/show.html.erb +++ b/app/views/themes/cultural_show/hyrax/base/show.html.erb @@ -27,14 +27,15 @@ <% end %> <% end %> -
+
<%= render 'work_description', presenter: @presenter %> <%= render 'metadata', presenter: @presenter %>
-
+
<%= render 'relationships', presenter: @presenter %>
+ <%= render 'citations', presenter: @presenter %>
<%= render 'items', presenter: @presenter %> diff --git a/app/views/themes/scholarly_show/hyrax/base/show.html.erb b/app/views/themes/scholarly_show/hyrax/base/show.html.erb index 7481f1dd..1aa52e72 100644 --- a/app/views/themes/scholarly_show/hyrax/base/show.html.erb +++ b/app/views/themes/scholarly_show/hyrax/base/show.html.erb @@ -20,7 +20,7 @@ <%= render 'video_embed_viewer', presenter: @presenter %>
- <%= render 'work_description', presenter: @presenter %> + <%# render 'work_description', presenter: @presenter %>
<% else %> @@ -30,7 +30,7 @@
- <%= render 'work_description', presenter: @presenter %> + <%# render 'work_description', presenter: @presenter %>
<% else %> @@ -38,15 +38,19 @@ <%= render 'representative_media', presenter: @presenter, viewer: false %>
- <%= render 'work_description', presenter: @presenter %> + <%# render 'work_description', presenter: @presenter %>
<% end %> <% end %>
-