Skip to content

Commit

Permalink
Restructuring the mutation of the Manifest Object to use "rendering"
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgriffiniii committed Oct 23, 2017
1 parent e1ef1e4 commit 9b1c4d9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/services/manifest_builder/rendering_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ def initialize(resource)
# @return [IIIF::Presentation::Manifest]
def apply(manifest)
# This is currently here to work around https:/iiif-prezi/osullivan/issues/56
if identifier?
if manifest.is_a? FasterIIIFManifest
manifest.rendering = rendering_hash
else
manifest.insert(-1, 'rendering', rendering_hash)
end
end
manifest['rendering'] = rendering_hash if identifier?
manifest
end

Expand Down

0 comments on commit 9b1c4d9

Please sign in to comment.