Sha256: 4ffda8a7bc76c0d891969a6d1051682d93fb73367cc45f7520f1e3d8c572a3cf

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

module CurationConcerns
  class CollectionIndexer < Hydra::PCDM::CollectionIndexer
    def generate_solr_document
      super.tap do |solr_doc|
        # Makes Collections show under the "Collections" tab
        Solrizer.set_field(solr_doc, 'generic_type', 'Collection', :facetable)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
curation_concerns-models-0.3.0 app/indexers/curation_concerns/collection_indexer.rb
curation_concerns-models-0.2.0 app/indexers/curation_concerns/collection_indexer.rb