app/presenters/spotlight/iiif_manifest_presenter.rb in blacklight-spotlight-2.7.2 vs app/presenters/spotlight/iiif_manifest_presenter.rb in blacklight-spotlight-2.8.0
- old
+ new
@@ -25,11 +25,11 @@
end
# IIIFManifest expects leaf nodes to implement #display_image, which returns an instance of IIIFManifest::DisplayImage.
def display_image
IIIFManifest::DisplayImage.new(id,
- width: resource.first(:spotlight_full_image_width_ssm),
- height: resource.first(:spotlight_full_image_height_ssm),
+ width: resource.first(:spotlight_full_image_width_ssm)&.to_i,
+ height: resource.first(:spotlight_full_image_height_ssm)&.to_i,
format: 'image/jpeg',
iiif_endpoint: endpoint)
end
# Returns an array of leaf nodes. Currently, this is a single element array containing this presenter