lib/service_adaptors/primo_service.rb in umlaut-3.0.0beta5 vs lib/service_adaptors/primo_service.rb in umlaut-3.0.0beta6

- old
+ new

@@ -259,11 +259,13 @@ end # Umlaut specific attributes. service_data[:match_reliability] = (reliable_match?(:title => holding.title, :author => holding.author)) ? ServiceResponse::MatchExact : ServiceResponse::MatchUnsure - service_data[:request_link_supports_ajax_call] = false + service_data[:request_link_supports_ajax_call] = + (holding.respond_to?(:request_link_supports_ajax_call)) ? + holding.request_link_supports_ajax_call : false # Only add one service type, either "primo_source" OR "holding", not both. service_type = (@service_types.include?("primo_source")) ? "primo_source" : "holding" # Add some other holding information for compatibility with default holding partial service_data.merge!({ :call_number => holding.call_number, :collection => holding.collection, @@ -445,6 +447,6 @@ def primo_identifier? return false if @identifier.nil? return @identifier.start_with?('info:sid/primo.exlibrisgroup.com') end -end +end \ No newline at end of file