lib/spotlight/engine.rb in blacklight-spotlight-3.0.0.rc4 vs lib/spotlight/engine.rb in blacklight-spotlight-3.0.0.rc5
- old
+ new
@@ -15,10 +15,12 @@
require 'clipboard/rails'
require 'leaflet-rails'
require 'i18n/active_record'
require 'spotlight/upload_field_config'
require 'riiif'
+require 'faraday'
+require 'faraday_middleware'
module Spotlight
##
# Spotlight::Engine
# rubocop:disable Metrics/ClassLength
@@ -288,9 +290,21 @@
resources: true
}
config.reindexing_batch_size = nil
config.reindexing_batch_count = nil
+ config.hidden_job_classes = %w[Spotlight::ReindexJob]
+ config.bulk_actions_batch_size = 1000
+
+ config.bulk_updates = OpenStruct.new
+ config.bulk_updates.csv_id = 'Item ID'
+ config.bulk_updates.csv_title = 'Item Title'
+ config.bulk_updates.csv_visibility = 'Visibility'
+ config.bulk_updates.csv_tags_prefix = 'Tag:'
+ config.bulk_updates.csv_tags = 'Tag: %s'
+
config.assign_default_roles_to_first_user = true
+
+ config.exhibit_roles = %w[admin curator viewer]
end
end