Sha256: 1b5bd9c8c8c7545935ec320ea55b603d8bac01db6780168aafc4457e93aa58b6

Contents?: true

Size: 430 Bytes

Versions: 39

Compression:

Stored size: 430 Bytes

Contents

# -*- encoding : utf-8 -*-
class SolrDocument
  # Add Blacklight behaviors to the SolrDocument
  include Blacklight::Solr::Document
  # Adds Collection behaviors to the SolrDocument.
  include Hydra::Collections::SolrDocumentBehavior

  # Method to return the ActiveFedora model
  def hydra_model
    Array(self[Solrizer.solr_name('active_fedora_model', Solrizer::Descriptor.new(:string, :stored, :indexed))]).first
  end
   
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
hydra-collections-8.2.0 app/models/solr_document.rb
hydra-collections-8.1.1 app/models/solr_document.rb
hydra-collections-8.1.0 app/models/solr_document.rb
hydra-collections-8.0.0 app/models/solr_document.rb
hydra-collections-7.0.0 app/models/solr_document.rb
hydra-collections-5.0.4 app/models/solr_document.rb
hydra-collections-6.0.0 app/models/solr_document.rb
hydra-collections-6.0.0.rc2 app/models/solr_document.rb
hydra-collections-6.0.0.rc1 app/models/solr_document.rb
hydra-collections-5.0.3 app/models/solr_document.rb
hydra-collections-6.0.0.alpha app/models/solr_document.rb
hydra-collections-5.0.2 app/models/solr_document.rb
hydra-collections-5.0.1 app/models/solr_document.rb
hydra-collections-5.0.0 app/models/solr_document.rb
hydra-collections-4.0.0 app/models/solr_document.rb
hydra-collections-4.0.0.rc3 app/models/solr_document.rb
hydra-collections-4.0.0.rc2 app/models/solr_document.rb
hydra-collections-4.0.0.rc1 app/models/solr_document.rb
hydra-collections-4.0.0.beta4 app/models/solr_document.rb
hydra-collections-4.0.0.beta3 app/models/solr_document.rb