Sha256: 00a5e95c2b3e93fc3fe3a6823d2a27cbf1d8093bd5587863c7185caddf311d63

Contents?: true

Size: 698 Bytes

Versions: 10

Compression:

Stored size: 698 Bytes

Contents

require 'harvestdor-indexer'
require 'spotlight/dor/resources/version'

module Spotlight
  module Dor
    # Spotlight::Dor::Resources provides a Rails engine
    # that is capable of harvesting and indexing resources
    # from Searchworks and PURL endpoints
    module Resources
      require 'spotlight/dor/indexer'
      require 'spotlight/dor/resources/engine'

      class <<self
        def indexer
          @indexer ||= Spotlight::Dor::Indexer.new gdor_config_path, solr: solr_config
        end

        def gdor_config_path
          File.join(Rails.root, 'config', 'gdor.yml')
        end

        def solr_config
          Blacklight.solr_config
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spotlight-dor-resources-0.3.1 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.3.0 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.2.3 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.2.2 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.2.1 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.2.0 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.1.0 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.0.6 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.0.5 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.0.4 lib/spotlight/dor/resources.rb