Class: BlacklightOaiProvider::SolrDocumentProvider
- Inherits:
-
OAI::Provider::Base
- Object
- OAI::Provider::Base
- BlacklightOaiProvider::SolrDocumentProvider
- Defined in:
- lib/blacklight_oai_provider/solr_document_provider.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(controller, options = {}) ⇒ SolrDocumentProvider
constructor
A new instance of SolrDocumentProvider.
- #list_sets(options = {}) ⇒ Object
Constructor Details
#initialize(controller, options = {}) ⇒ SolrDocumentProvider
Returns a new instance of SolrDocumentProvider.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/blacklight_oai_provider/solr_document_provider.rb', line 5 def initialize(controller, = {}) [:provider] ||= {} [:document] ||= {} self.class.model = SolrDocumentWrapper.new(controller, [:document]) [:repository_name] ||= controller.view_context.send(:application_name) [:repository_url] ||= controller.view_context.send(:oai_catalog_url) [:provider].each do |k, v| self.class.send k, v end end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/blacklight_oai_provider/solr_document_provider.rb', line 3 def @options end |