Sha256: b3915a8e7c4d1222cfa40dbbbdfd12a9349f56854e89b9046af2dad1000c5c5f

Contents?: true

Size: 752 Bytes

Versions: 14

Compression:

Stored size: 752 Bytes

Contents

require 'spotlight/engine'
require 'spotlight/dor/resources'

module Spotlight::Dor::Resources
  # :nodoc:
  class Engine < ::Rails::Engine
    initializer 'spotlight.dor.initialize' do
      Spotlight::Engine.config.resource_providers << Spotlight::Resources::Searchworks
      Spotlight::Engine.config.resource_providers << Spotlight::Resources::Purl
      Spotlight::Dor::Resources::Engine.config.parallel_options = { in_threads: 1 }
      Spotlight::Dor::Resources::Engine.config.base_stacks_url = 'https://stacks.stanford.edu'
      Spotlight::Dor::Resources::Engine.config.stacks_file_url = "#{config.base_stacks_url}/file"
      Spotlight::Dor::Resources::Engine.config.stacks_iiif_url = "#{config.base_stacks_url}/image/iiif"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spotlight-dor-resources-0.5.0 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.4.1 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.4.0 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.3.3 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.3.2 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.3.1 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.3.0 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.2.3 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.2.2 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.2.1 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.2.0 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.1.0 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.0.6 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.0.5 lib/spotlight/dor/resources/engine.rb