Sha256: 804dd2c45e72a71b16b66f342884f08ff08f53c278126e8ea047706fe1a0d456
Contents?: true
Size: 582 Bytes
Versions: 54
Compression:
Stored size: 582 Bytes
Contents
module CurationConcerns class CollectionIndexer < Hydra::PCDM::CollectionIndexer include IndexesThumbnails STORED_LONG = Solrizer::Descriptor.new(:long, :stored) 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) # Index the size of the collection in bytes solr_doc[Solrizer.solr_name(:bytes, STORED_LONG)] = object.bytes solr_doc['thumbnail_path_ss'] = thumbnail_path end end end end
Version data entries
54 entries across 54 versions & 2 rubygems