Sha256: 78c396457b5b97f249a7d63081cee5aa4c342a9189b38b7f585516ccaa4523e3
Contents?: true
Size: 1.41 KB
Versions: 7
Compression:
Stored size: 1.41 KB
Contents
json.set!('@context', 'http://iiif.io/api/presentation/2/context.json') json.set!('@type', 'sc:Manifest') json.set!('@id', iiif_image_url(@manifestation.id, format: :json)) json.label @manifestation.original_title json.seeAlso manifestation_url(@manifestation, format: :download) #json.thumbnail "https://dev.next-l.jp/image-service/#{@manifestation.id}" json.sequences do json.array! [0] do |a| json.set!('@type', 'sc:Sequence') json.viewingHint 'individuals' json.canvases do json.array! [0] do json.set!('@id', manifestation_url(@manifestation)) json.set!('@type', 'sc:Canvas') json.label @manifestation.attachment_file_name json.width 1024 json.height 1024 json.images do json.array! [0] do json.set!('@type', 'oa:Annotation') json.on manifestation_url(@manifestation) json.motivation 'sc:painting' json.resource do json.set!('@id', manifestation_url(@manifestation, format: :download)) json.set!('@type', 'dctypes:Image') json.service do json.set!('@context', 'http://iiif.io/api.image/2/context.json') json.set!('@id', "https://dev.next-l.jp/image-service/#{@manifestation.id}") json.profile 'http://iiif.io/api/image/2/level1.json' end end end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems