From 6edf92c2193be22999edd4c40a3b59e6f04fb5d9 Mon Sep 17 00:00:00 2001 From: Andy Wallace Date: Fri, 8 Dec 2023 16:54:32 -0500 Subject: [PATCH] use DL Viewer --- app/services/iiif_service.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/services/iiif_service.rb b/app/services/iiif_service.rb index 3b0312e9..b88a1767 100644 --- a/app/services/iiif_service.rb +++ b/app/services/iiif_service.rb @@ -2,14 +2,11 @@ class IiifService def src(request, document) - "#{request&.base_url}/mirador3.html?manifest=#{CGI.escape(iiif_manifest_url(document))}" + # "http://localhost:8080/?site=sinai&manifest=#{CGI.escape(iiif_manifest_url(document))}" + "d-w-dl-viewer01.library.ucla.edu?site=sinai&manifest=#{CGI.escape(iiif_manifest_url(document))}" end def iiif_manifest_url(document) - if Flipflop.use_manifest_store? && document[:iiif_manifest_url_ssi] - document[:iiif_manifest_url_ssi].sub('http:', 'https:') - else - "#{Rails.application.config.iiif_url}/#{document.id}/manifest" - end + document[:iiif_manifest_url_ssi].sub('http:', 'https:') end end