app/models/solr_document.rb
# overriding the upstream method with our own that knows
# how to unpack the agg_is_shown_by > wr_has_service field
overriding the upstream method with our own that knows
how to unpack the agg_is_shown_by > wr_has_service field
overriding the upstream method with our own that knows how to unpack the agg_is_shown_by > wr_has_service field
def to_openseadragon(_view_config = nil)
    iiif_services = shown_by_service(conforms_to: 'http://iiif.io/api/image')
    return unless iiif_services.any?
    "#{iiif_services.first['service_id']}/info.json"
  end
def to_openseadragon ( _view_config = nil ) iiif_services = shown_by_service ( conforms_to : 'http://iiif.io/api/image' ) return unless iiif_services . any? "#{iiif_services.first['service_id']}/info.json" end
overriding the upstream method with our own that knows
how to unpack the agg_is_shown_by > wr_has_service field
overriding the upstream method with our own that knows how to unpack the agg_is_shown_by > wr_has_service field
_view_config