From 8bbab33c481ada021f21ff34d546510bd5ce72fb Mon Sep 17 00:00:00 2001 From: Michael Gibney Date: Fri, 20 Nov 2020 11:00:35 -0500 Subject: [PATCH] directly piggyback BBM on pickup@penn, as indicated from Alma, filtered for ETAS --- app/controllers/franklin_alma_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/franklin_alma_controller.rb b/app/controllers/franklin_alma_controller.rb index dcf055a3..66810b45 100644 --- a/app/controllers/franklin_alma_controller.rb +++ b/app/controllers/franklin_alma_controller.rb @@ -462,6 +462,7 @@ def request_options api = api_instance.ezwadl_api[0] options = { user_id: userid, consider_dlr: true } response_data = api_instance.request(api.almaws_v1_bibs.mms_id_request_options, :get, params.merge(options)) + pickup_at_penn = false results = response_data['request_option'].map do |option| request_url = option['request_url'] details = option['general_electronic_service_details'] || option['rs_broker_details'] || {} @@ -472,6 +473,7 @@ def request_options when 'HOLD' # TODO: when libraries reopen: remove conditional, Pickup@Penn=>Request unless suppress_pickup_at_penn(ctx) + pickup_at_penn = true { option_name: 'Pickup@Penn', # option_url: option['request_url'], @@ -540,7 +542,7 @@ def request_options if ['Associate', 'Athenaeum Staff', 'Faculty', 'Faculty Express', 'Faculty Spouse', 'Grad Student', 'Library Staff', 'Medical Center Staff', 'Retired Library Staff', 'Staff', 'Undergraduate Student'] - .member?(session['user_group']) && !suppress_pickup_at_penn(ctx) + .member?(session['user_group']) && pickup_at_penn results.append( { option_name: 'Books By Mail',