Sha256: e9caa2cc46ab78c893e3300642eaeddb17aa2c08740b16eda29c11bffd10793f
Contents?: true
Size: 591 Bytes
Versions: 6
Compression:
Stored size: 591 Bytes
Contents
module CurationConcerns class CollectionIndexer < Hydra::PCDM::CollectionIndexer include IndexesThumbnails STORED_INTEGER = Solrizer::Descriptor.new(:integer, :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_INTEGER)] = object.bytes solr_doc['thumbnail_path_ss'] = thumbnail_path end end end end
Version data entries
6 entries across 6 versions & 1 rubygems