Skip to content

Commit

Permalink
Allow Alma guest users to request all - In Library Use - from ReCAP
Browse files Browse the repository at this point in the history
  • Loading branch information
christinach committed Nov 21, 2023
1 parent 30030a8 commit 01c5a96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions app/views/requests/request/_request_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
<span class="error error-items">
</span>
</div>
<% if @request.alma_provider_on_shelf_item_available? %>
<h2><%=I18n.t('requests.alma_login.no_access')%> </h2>
<p><%=I18n.t('requests.alma_login.available_no_access', library: @request.location_label) %></p>
<% elsif @request.alma_provider_item_unavailable? %>
<h2><%=I18n.t('requests.alma_login.unavailable')%> </h2>

<% if @request.alma_provider_item_unavailable? %>
<h2><%=I18n.t('requests.alma_login.unavailable')%> </h2> %>
<% 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 %>
Expand Down
3 changes: 1 addition & 2 deletions spec/features/requests/request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 01c5a96

Please sign in to comment.