Sha256: e4f635a9ee8ba36c1cd4613ce1faa493f2bd8a408fa13d977af00c751ba60be8

Contents?: true

Size: 733 Bytes

Versions: 25

Compression:

Stored size: 733 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  class AdminSetIndexer < ActiveFedora::IndexingService
    include Hyrax::IndexesThumbnails

    self.thumbnail_path_service = Hyrax::CollectionThumbnailPathService

    def generate_solr_document
      super.tap do |solr_doc|
        # Makes Admin Sets show under the "Admin Sets" tab
        solr_doc['generic_type_sim']        = ['Admin Set']
        solr_doc['alternative_title_tesim'] = object.alternative_title
        solr_doc['creator_ssim']            = object.creator
        solr_doc['description_tesim']       = object.description
        solr_doc['title_tesim']             = object.title
        solr_doc['title_sim']               = object.title
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/indexers/hyrax/admin_set_indexer.rb
hyrax-5.0.0 app/indexers/hyrax/admin_set_indexer.rb
hyrax-5.0.0.rc3 app/indexers/hyrax/admin_set_indexer.rb
hyrax-5.0.0.rc2 app/indexers/hyrax/admin_set_indexer.rb
hyrax-5.0.0.rc1 app/indexers/hyrax/admin_set_indexer.rb
hyrax-3.6.0 app/indexers/hyrax/admin_set_indexer.rb
hyrax-4.0.0 app/indexers/hyrax/admin_set_indexer.rb
hyrax-4.0.0.rc3 app/indexers/hyrax/admin_set_indexer.rb
hyrax-4.0.0.rc2 app/indexers/hyrax/admin_set_indexer.rb
hyrax-4.0.0.rc1 app/indexers/hyrax/admin_set_indexer.rb
hyrax-3.5.0 app/indexers/hyrax/admin_set_indexer.rb
hyrax-4.0.0.beta2 app/indexers/hyrax/admin_set_indexer.rb
hyrax-3.4.2 app/indexers/hyrax/admin_set_indexer.rb
hyrax-4.0.0.beta1 app/indexers/hyrax/admin_set_indexer.rb
hyrax-3.4.1 app/indexers/hyrax/admin_set_indexer.rb
hyrax-3.4.0 app/indexers/hyrax/admin_set_indexer.rb
hyrax-3.3.0 app/indexers/hyrax/admin_set_indexer.rb
hyrax-3.2.0 app/indexers/hyrax/admin_set_indexer.rb
hyrax-3.1.0 app/indexers/hyrax/admin_set_indexer.rb
hyrax-3.0.2 app/indexers/hyrax/admin_set_indexer.rb