Module: Blacklight::Gallery::OpenseadragonSolrDocument

Defined in:
app/models/concerns/blacklight/gallery/openseadragon_solr_document.rb

Instance Method Summary collapse

Instance Method Details

#to_openseadragon(view_config = nil) ⇒ Object



2
3
4
5
6
# File 'app/models/concerns/blacklight/gallery/openseadragon_solr_document.rb', line 2

def to_openseadragon(view_config = nil)
  return unless view_config&.tile_source_field &&
                fetch(view_config.tile_source_field, nil)
  Array(fetch(view_config.tile_source_field))
end