diff --git a/blacklight-cornell/app/views/aeon/_clearer.html.erb b/blacklight-cornell/app/views/aeon/_clearer.html.erb index 1a33269ab..acadfb178 100644 --- a/blacklight-cornell/app/views/aeon/_clearer.html.erb +++ b/blacklight-cornell/app/views/aeon/_clearer.html.erb @@ -1,8 +1,12 @@ -
- - - or -

+
+ <% holdings = JSON.parse(@document['holdings_json']) %> + <% bounds_with = holdings.any? { |_, holding| holding.key?('boundWith') && holding['boundWith'].any? } %> + <% unless bounds_with %> + + + or +

+ <% end %>

Please email rareref@cornell.edu, or kheelref@cornell.edu if you have any questions. diff --git a/blacklight-cornell/app/views/aeon/reading_room_request.html.erb b/blacklight-cornell/app/views/aeon/reading_room_request.html.erb index 6a04e265e..4a87172f6 100644 --- a/blacklight-cornell/app/views/aeon/reading_room_request.html.erb +++ b/blacklight-cornell/app/views/aeon/reading_room_request.html.erb @@ -40,6 +40,15 @@ Restrictions: <%= @re506 %>

<% end %> + <% holdings = JSON.parse(@document['holdings_json']) %> + <% bounds_with = holdings.any? { |_, holding| holding.key?('boundWith') && holding['boundWith'].any? } %> + <% if bounds_with %> +

+ + This item is bound with another item(s). + Please ask a librarian for assistance to make this request. +

+ <% end %>
Number of items selected: diff --git a/blacklight-cornell/app/views/aeon/scan_aeon.html.erb b/blacklight-cornell/app/views/aeon/scan_aeon.html.erb index e68e4f095..b700c282a 100644 --- a/blacklight-cornell/app/views/aeon/scan_aeon.html.erb +++ b/blacklight-cornell/app/views/aeon/scan_aeon.html.erb @@ -42,6 +42,15 @@ Restrictions: <%= @re506 %>

<% end %> + <% holdings = JSON.parse(@document['holdings_json']) %> + <% bounds_with = holdings.any? { |_, holding| holding.key?('boundWith') && holding['boundWith'].any? } %> + <% if bounds_with %> +

+ + This item is bound with another item(s). + Please ask a librarian for assistance to make this request. +

+ <% end %>