app/models/spotlight/resources/iiif_harvester.rb
# Build and index the solr document
Build and index the solr document
Build and index the solr document
def build_resource_and_document
        manifest = @resource.iiif_manifests.first 
        manifest.with_exhibit(@resource.exhibit)
        manifest.with_resource(@resource)
        @resource.data = manifest.manifest_metadata.transform_values { |v| v.first } 
      end
def build_resource_and_document manifest = @resource . iiif_manifests . first manifest . with_exhibit ( @resource . exhibit ) manifest . with_resource ( @resource ) @resource . data = manifest . manifest_metadata . transform_values { | v | v . first } end
Build and index the solr document
Build and index the solr document
# See /models/spotlight/resources/vault_iiif_manifest.rb # We want to index the SolrDocument with a multiple value ({ k => ['v'] }