Sha256: 2c7e8db1884dc78f31512b12f2fbd9573841dad226e4cf6227f1a05eada3cb1a

Contents?: true

Size: 388 Bytes

Versions: 10

Compression:

Stored size: 388 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)
        solr_doc['thumbnail_path_ss'] = thumbnail_path
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/indexers/hyrax/admin_set_indexer.rb
hyrax-1.1.0 app/indexers/hyrax/admin_set_indexer.rb
hyrax-1.0.5 app/indexers/hyrax/admin_set_indexer.rb
hyrax-1.0.4 app/indexers/hyrax/admin_set_indexer.rb
hyrax-1.0.3 app/indexers/hyrax/admin_set_indexer.rb
hyrax-1.0.2 app/indexers/hyrax/admin_set_indexer.rb
hyrax-1.0.1 app/indexers/hyrax/admin_set_indexer.rb
hyrax-1.0.0.rc2 app/indexers/hyrax/admin_set_indexer.rb
hyrax-1.0.0.rc1 app/indexers/hyrax/admin_set_indexer.rb
test_hyrax-0.0.1.alpha app/indexers/hyrax/admin_set_indexer.rb