app/presenters/spotlight/iiif_manifest_presenter.rb in blacklight-spotlight-2.9.0 vs app/presenters/spotlight/iiif_manifest_presenter.rb in blacklight-spotlight-2.10.0
- old
+ new
@@ -72,10 +72,12 @@
def endpoint
IIIFManifest::IIIFEndpoint.new(iiif_url, profile: 'http://iiif.io/api/image/2/level2.json')
end
def iiif_url
- # yes this is hacky, and we are appropriately ashamed.
- controller.riiif.info_url(uploaded_resource.upload.id).sub(%r{/info\.json\Z}, '')
+ Spotlight::Engine.config.iiif_url_helpers.info_url(
+ uploaded_resource.upload.id,
+ host: controller.request.host_with_port
+ ).sub(%r{/info\.json\Z}, '')
end
end
end