<%-
# The 'available' request form offers the following options:
#   - If the holding is from an NYU sublibrary,
#     - Entire item request
#     - Scanned portion
#   - If the holding is from ISAW,
#     - Scanned portion
#   - Otherwise set the appropriate request text for the sublibrary
#     - only offer the entire item option
-%>
<%= request_form(:available) do %>
  <% if (["BOBST", "NCOUR"].include?(holding.sub_library.code)) %>
    <%= entire_request_option(:available) %><br />
    <%= scan_request_option(:available) %>
  <% elsif ["NISAW"].include?(holding.sub_library.code) %>
    <%= scan_request_option(:available) %>
  <% else %>
    <%= request_option(:available) do %>
      <%= content_tag(:p, available_request_text) %>
      <%= pickup_locations_field_set %>
      <%= delivery_times %>
    <% end %>
  <% end %>
  <%= submit_tag 'Submit' %>
<% end %>

<%-
# The 'available' request form offers the following options:
#   - If the holding is from an NYU sublibrary,
#     - Entire item request
#     - Scanned portion
#   - If the holding is from ISAW,
#     - Scanned portion
#   - Otherwise set the appropriate request text for the sublibrary
#     - only offer the entire item option
-%>
<%= request_form(:available) do %>
  <% if (["BOBST", "NCOUR"].include?(holding.sub_library.code)) %>
    <%= entire_request_option(:available) %><br />
    <%= scan_request_option(:available) %>
  <% elsif ["NISAW"].include?(holding.sub_library.code) %>
    <%= pickup_locations_field_set %>
    <%= scan_request_option(:available) %>
  <% else %>
    <%= request_option(:available) do %>
      <%= content_tag(:p, available_request_text) %>
      <%= pickup_locations_field_set %>
      <%= delivery_times %>
    <% end %>
  <% end %>
  <%= submit_tag 'Submit' %>
<% end %>

Add set pickup location function to scannable ISAW items
Add set pickup location function to scannable ISAW items
