app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-3.0.0.rc4 vs app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-3.0.0.rc5

- old
+ new

@@ -78,14 +78,30 @@ 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? + config.add_results_collection_tool 'curator_actions', if: :render_curator_actions? + unless config.curator_actions + config.curator_actions ||= Blacklight::NestedOpenStructWithHashAccess.new(Blacklight::Configuration::ToolConfig) + config.curator_actions.save_search + config.curator_actions.bulk_actions + end + + unless config.bulk_actions + config.bulk_actions ||= Blacklight::NestedOpenStructWithHashAccess.new(Blacklight::Configuration::ToolConfig) + + config.bulk_actions.change_visibility + config.bulk_actions.add_tags + config.bulk_actions.remove_tags + end + config.default_solr_params = config.default_solr_params.merge(default_solr_params) + config.default_per_page = default_per_page if default_per_page + config.view.embed.partials ||= ['openseadragon'] config.view.embed.if = false config.view.embed.locals ||= { osd_container_class: '' } # Add any custom fields @@ -183,14 +199,9 @@ v.validate! end end config.per_page = (config.per_page & per_page) unless per_page.blank? - - if default_per_page - config.per_page.delete(default_per_page) - config.per_page.unshift(default_per_page) - end unless document_index_view_types.blank? config.view.each do |k, v| v.original = v.dup v.key = k