Sha256: 407f379d1ee83f050c612d6a1fa1795a20b0a69d5f40ff314e489e27cc3218e1

Contents?: true

Size: 333 Bytes

Versions: 13

Compression:

Stored size: 333 Bytes

Contents

module Hyrax
  class AdminSetIndexer < ActiveFedora::IndexingService
    include Hyrax::IndexesThumbnails

    def generate_solr_document
      super.tap do |solr_doc|
        # Makes Admin Sets show under the "Admin Sets" tab
        Solrizer.set_field(solr_doc, 'generic_type', 'Admin Set', :facetable)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hyrax-2.0.3 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.2 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.1.0.beta1 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.1 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.0 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.0.rc3 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.0.rc2 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.0.rc1 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.0.beta5 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.0.beta4 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.0.beta3 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.0.beta2 app/indexers/hyrax/admin_set_indexer.rb
hyrax-2.0.0.beta1 app/indexers/hyrax/admin_set_indexer.rb