Sha256: 1b0d6006fc27dba464683aa4f613537327ad1ef7864f16d19bc4b0c8c107ef75
Contents?: true
Size: 494 Bytes
Versions: 34
Compression:
Stored size: 494 Bytes
Contents
module Spotlight module Resources # transforms a IiifHarvester into solr documents class IiifBuilder < Spotlight::SolrDocumentBuilder def to_solr return to_enum(:to_solr) { 0 } unless block_given? base_doc = super resource.iiif_manifests.each do |manifest| manifest.with_exhibit(exhibit) manifest_solr = manifest.to_solr yield base_doc.merge(manifest_solr) if manifest_solr.present? end end end end end
Version data entries
34 entries across 34 versions & 2 rubygems