app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-3.0.0.rc2 vs app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-3.0.0.rc3
- old
+ new
@@ -74,10 +74,11 @@
config.current_exhibit = exhibit
config.show.merge! show unless show.blank?
config.index.merge! index unless index.blank?
+ config.index.respond_to[:iiif_json] = true
config.index.thumbnail_field ||= Spotlight::Engine.config.thumbnail_field
config.add_results_collection_tool 'save_search', if: :render_save_this_search?
@@ -351,10 +352,10 @@
# Check to see whether config.view.foobar.title_only_by_default is available
def title_only_by_default?(view)
return false if %i[show enabled].include?(view)
- title_only = default_blacklight_config.view.send(:[], view).try(:title_only_by_default)
+ title_only = default_blacklight_config.view.send(:[], view)&.title_only_by_default
title_only.nil? ? false : title_only
end
def set_show_field_defaults(field)
return unless index_fields.blank?