Skip to content

Commit

Permalink
use DL Viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefilter committed Dec 13, 2023
1 parent f8943a6 commit 2cb570d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/services/iiif_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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))}"
"https://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

0 comments on commit 2cb570d

Please sign in to comment.