Sha256: 980f386409d5788b4dd9c57c22bc195ffaf7f0d85ca4552e10f8059ef8f815af

Contents?: true

Size: 552 Bytes

Versions: 17

Compression:

Stored size: 552 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module IiifHelper
    def iiif_viewer_display(work_presenter, locals = {})
      render iiif_viewer_display_partial(work_presenter),
             locals.merge(presenter: work_presenter)
    end

    def iiif_viewer_display_partial(work_presenter)
      'hyrax/base/iiif_viewers/' + work_presenter.iiif_viewer.to_s
    end

    def universal_viewer_base_url
      "#{request&.base_url}/uv/uv.html"
    end

    def universal_viewer_config_url
      "#{request&.base_url}/uv/uv-config.json"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/helpers/hyrax/iiif_helper.rb
hyrax-4.0.0.rc1 app/helpers/hyrax/iiif_helper.rb
hyrax-3.5.0 app/helpers/hyrax/iiif_helper.rb
hyrax-4.0.0.beta2 app/helpers/hyrax/iiif_helper.rb
hyrax-3.4.2 app/helpers/hyrax/iiif_helper.rb
hyrax-4.0.0.beta1 app/helpers/hyrax/iiif_helper.rb
hyrax-3.4.1 app/helpers/hyrax/iiif_helper.rb
hyrax-3.4.0 app/helpers/hyrax/iiif_helper.rb
hyrax-3.3.0 app/helpers/hyrax/iiif_helper.rb
hyrax-3.2.0 app/helpers/hyrax/iiif_helper.rb
hyrax-3.1.0 app/helpers/hyrax/iiif_helper.rb
hyrax-3.0.2 app/helpers/hyrax/iiif_helper.rb
hyrax-3.0.1 app/helpers/hyrax/iiif_helper.rb
hyrax-3.0.0 app/helpers/hyrax/iiif_helper.rb
hyrax-3.0.0.pre.rc4 app/helpers/hyrax/iiif_helper.rb
hyrax-3.0.0.pre.rc3 app/helpers/hyrax/iiif_helper.rb
hyrax-3.0.0.pre.rc2 app/helpers/hyrax/iiif_helper.rb