Sha256: d121e1a2ac4d1a8cbde08c94768a59f3be590638a6bdb74ae6c000cb067c5d7c

Contents?: true

Size: 704 Bytes

Versions: 13

Compression:

Stored size: 704 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.connection_config
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spotlight-dor-resources-2.0.1 lib/spotlight/dor/resources.rb
spotlight-dor-resources-2.0.0 lib/spotlight/dor/resources.rb
spotlight-dor-resources-1.1.0 lib/spotlight/dor/resources.rb
spotlight-dor-resources-1.0.1 lib/spotlight/dor/resources.rb
spotlight-dor-resources-1.0.0 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.6.2 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.6.1 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.6.0 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.5.0 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.4.1 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.4.0 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.3.3 lib/spotlight/dor/resources.rb
spotlight-dor-resources-0.3.2 lib/spotlight/dor/resources.rb