From 13864ffdeea1ad29b2f4e6870815d5e52c1e2a01 Mon Sep 17 00:00:00 2001 From: Randall Floyd Date: Thu, 4 Jan 2024 15:13:17 -0500 Subject: [PATCH 1/6] Adding collection show page for overrides --- app/views/catalog/_show_collection.html.erb | 66 +++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 app/views/catalog/_show_collection.html.erb diff --git a/app/views/catalog/_show_collection.html.erb b/app/views/catalog/_show_collection.html.erb new file mode 100644 index 0000000..055d85b --- /dev/null +++ b/app/views/catalog/_show_collection.html.erb @@ -0,0 +1,66 @@ +<% parents = Arclight::Parents.from_solr_document(document).as_parents %> +
+
+ <% if document.digital_objects.present? %> + <%= content_tag :p, class: "media breadcrumb-item breadcrumb-item-#{parents.length + 3}" do %> + + + <%= t('arclight.views.show.online_content_upper') %> + + <%= render_document_partial(document, 'arclight_viewer') %> + <% end %> + <% end %> + + +
+
+ <%= render 'collection_context' %> +
+
+ <%= render 'collection_contents' %> +
+ <% if document.online_content? %> +
+ <%= render partial: 'collection_online_contents', locals: { document: document } %> +
+ <% end %> +
+

<%= t 'arclight.views.show.access' %>

+ <% unless blacklight_config.show.context_access_tab_items.nil? %> + <% items = blacklight_config.show.context_access_tab_items.select { |i| fields_have_content?(@document, i) } %> + <% items.each_with_index do |item, index| %> + <%= render partial: 'access_contents', locals: { document: @document, field_accessor: item, card_index: index} %> + <% end %> + <% end %> +
+
+
+ +
From fbe47335a3b079ffaa9a2aa5ea70945d3b068090 Mon Sep 17 00:00:00 2001 From: Randall Floyd Date: Thu, 4 Jan 2024 15:15:53 -0500 Subject: [PATCH 2/6] AR-203 More roles not in required context --- app/views/catalog/_show_collection.html.erb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/catalog/_show_collection.html.erb b/app/views/catalog/_show_collection.html.erb index 055d85b..f7d4d02 100644 --- a/app/views/catalog/_show_collection.html.erb +++ b/app/views/catalog/_show_collection.html.erb @@ -9,29 +9,29 @@ <%= render_document_partial(document, 'arclight_viewer') %> <% end %> - <% end %> + <% end %>
-
-