From 01c5a96b4bc98fc189589e1ab69ff685612c3220 Mon Sep 17 00:00:00 2001 From: Christina Chortaria Date: Tue, 21 Nov 2023 17:46:07 -0500 Subject: [PATCH] Allow Alma guest users to request all - In Library Use - from ReCAP --- app/views/requests/request/_request_form.html.erb | 8 +++----- spec/features/requests/request_spec.rb | 3 +-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/views/requests/request/_request_form.html.erb b/app/views/requests/request/_request_form.html.erb index 953de50c2..fcab3ab5e 100644 --- a/app/views/requests/request/_request_form.html.erb +++ b/app/views/requests/request/_request_form.html.erb @@ -22,11 +22,9 @@ - <% if @request.alma_provider_on_shelf_item_available? %> -

<%=I18n.t('requests.alma_login.no_access')%>

-

<%=I18n.t('requests.alma_login.available_no_access', library: @request.location_label) %>

- <% elsif @request.alma_provider_item_unavailable? %> -

<%=I18n.t('requests.alma_login.unavailable')%>

+ + <% if @request.alma_provider_item_unavailable? %> +

<%=I18n.t('requests.alma_login.unavailable')%>

%> <% elsif @request.only_aeon? %> <%= render partial: "requestable_list_aeon", locals: { requestable_list: @request.requestable, mfhd: @request.mfhd, holdings: @request.holdings, default_pick_ups: @request.default_pick_ups } %> <% else %> diff --git a/spec/features/requests/request_spec.rb b/spec/features/requests/request_spec.rb index a3a657524..1f4682be0 100644 --- a/spec/features/requests/request_spec.rb +++ b/spec/features/requests/request_spec.rb @@ -1491,7 +1491,6 @@ expect(page).not_to have_content 'Electronic Delivery' expect(page).not_to have_content 'Physical Item Delivery' expect(page).to have_content 'Request options for this item are only available to Faculty, Staff, and Students.' - expect(page).to have_content 'Please proceed to Firestone Library - Classics Collection to retrieve this item' end it "does not allow access to items on the shelf when not available" do @@ -1554,7 +1553,7 @@ end end - it "does not allow reuesting of on order books" do + it "does not allow requesting of on order books" do visit "requests/99125492003506421?mfhd=22927395910006421" expect(page).to have_content 'This item is not available' end