Sha256: c0c472ac4fbb5bffe69e21768263b4c9e77183499fcbedf737967f6aaff7c211

Contents?: true

Size: 565 Bytes

Versions: 5

Compression:

Stored size: 565 Bytes

Contents

module BlacklightOaiProvider
  class SolrDocumentProvider < ::OAI::Provider::Base
    attr_accessor :options
    def initialize controller, options = {}

      options[:provider] ||= {}
      options[:document] ||= {}

      self.class.model = SolrDocumentWrapper.new(controller, options[:document])

      options[:repository_name] ||= controller.view_context.send(:application_name)
      options[:repository_url] ||= controller.view_context.send(:oai_provider_url)

      options[:provider].each do |k,v|
        self.class.send k, v
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight_oai_provider-0.1.0 lib/blacklight_oai_provider/solr_document_provider.rb
blacklight_oai_provider-0.0.2 lib/blacklight_oai_provider/solr_document_provider.rb
blacklight_oai_provider-0.0.1 lib/blacklight_oai_provider/solr_document_provider.rb
blacklight_oai_provider-0.0.1pre2 lib/blacklight_oai_provider/solr_document_provider.rb
blacklight_oai_provider-0.0.1pre1 lib/blacklight_oai_provider/solr_document_provider.rb