From bebe86efe5dc30a3b7bd0648e074ef2d12adc476 Mon Sep 17 00:00:00 2001 From: Greg Kostin Date: Mon, 3 Jun 2024 11:51:20 -0400 Subject: [PATCH] ARC-78 Hot Fix --- .../catalog/_aeon_request_checkbox.html.erb | 6 +++++ app/views/catalog/_show_default.html.erb | 24 ++++++++++++------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/app/views/catalog/_aeon_request_checkbox.html.erb b/app/views/catalog/_aeon_request_checkbox.html.erb index 267be539..2fe414fe 100755 --- a/app/views/catalog/_aeon_request_checkbox.html.erb +++ b/app/views/catalog/_aeon_request_checkbox.html.erb @@ -20,4 +20,10 @@ Request "<%= document.aeon_item_sub_title_sr_only %>" <% end %> + + <% if local_assigns[:label] %> +
+ <%= render "arclight/requests/aeon_hidden_form_request" %> +
+ <% end %> diff --git a/app/views/catalog/_show_default.html.erb b/app/views/catalog/_show_default.html.erb index a3d8a38f..fc3d8ccd 100644 --- a/app/views/catalog/_show_default.html.erb +++ b/app/views/catalog/_show_default.html.erb @@ -167,7 +167,13 @@ <% end %> <% if document.is_checkbox_requestable? %> - <%= render "aeon_request_checkbox", document: document, class: 'px-0 pb-3 mt-n3', label_class: 'btn btn-outline-secondary btn-outline-request p-2', label: 'Request Item' %> + <%= render "aeon_request_checkbox", document: document, class: 'px-0 pb-3 mt-n3 d-flex align-items-center', label_class: 'btn btn-outline-secondary btn-outline-request p-2 m-0', label: 'Select Item' %> +<% else %> + <% unless document.collection_has_requestable_components? || document.children? %> +
+ <%= render partial: 'arclight/requests', locals: { document: document } %> +
+ <% end %> <% end %> <%# ================ %> @@ -251,16 +257,16 @@ <%# ========================== %>
-

"> - <%= t("arclight.views.show.sections.contents") %> -

-
-
- <%= render partial: 'arclight/requests', locals: { document: document } %> +

"> + <%= t("arclight.views.show.sections.contents") %> +

+
+
+ <%= render partial: 'arclight/requests', locals: { document: document } %> +
-
- + <%= document.non_component_contents %> <% if document.children? %> <%= content_tag(