app/controllers/spotlight/concerns/application_controller.rb in blacklight-spotlight-3.0.0.rc2 vs app/controllers/spotlight/concerns/application_controller.rb in blacklight-spotlight-3.0.0.rc3

- old
+ new

@@ -36,11 +36,10 @@ else current_exhibit.blacklight_configuration.document_index_view_types.include? config.key.to_s end end - # rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity def field_enabled?(field, *args) if !field.enabled false elsif field.respond_to?(:original) && !blacklight_configuration_context.evaluate_if_unless_configuration(field.original, *args) false @@ -50,11 +49,10 @@ field.show else field.send(document_index_view_type) end end - # rubocop:enable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity private ## # Get the current "view type" (and ensure it is a valid type) @@ -79,9 +77,22 @@ ## # Get the default index view type def default_document_index_view_type document_index_views.select { |_k, config| config.respond_to?(:default) && config.default }.keys.first || document_index_views.keys.first + end + + def featured_image_params + %i[ + iiif_region iiif_tilesource + iiif_manifest_url iiif_canvas_id + iiif_image_id + display + source + image + document_global_id + upload_id + ] end end end end