Skip to content

Commit

Permalink
90-ocr-highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
alishaevn committed May 12, 2022
1 parent 5ebeb0a commit 50489ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/presenters/hyrax/iiif_manifest_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def manifest_metadata
def manifest_url
return '' if id.blank?

Rails.application.routes.url_helpers.polymorphic_url([:manifest, model], host: hostname)
protocol = ENV['HYKU_SSL_CONFIGURED'] == 'true' ? 'https' : 'http'
Rails.application.routes.url_helpers.polymorphic_url([:manifest, model], host: hostname, protocol: protocol)
end

##
Expand Down
3 changes: 1 addition & 2 deletions config/initializers/iiif_manifest.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# IIFManifest OVERRIDE : Add sequence['viewingHint'] = 'paged' to Sequences for two-page view
# OVERRIDE IIIFManifest v0.5.0: Add sequence['viewingHint'] = 'paged' to Sequences for two-page view

module IIIFManifest
class ManifestBuilder
Expand All @@ -11,7 +11,6 @@ def initialize(work, canvas_builder_factory:, sequence_factory:)
end

def apply(manifest)
# sequence.viewing_hint = manifest.viewing_hint
manifest.sequences += [sequence] unless empty?
manifest
end
Expand Down

0 comments on commit 50489ac

Please sign in to comment.