iiif_manifest 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18a5aee09b4751f68e8ee7a56e328a842fae63f439df914743ba04be4159b233
|
4
|
+
data.tar.gz: aba2e5b1ae194000b48fb0d31dca76a9ebc7e6a48da5bf295d6d44184804cf3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e14265c4bd0f290d3a7c6c3c782ce420609d4212406c4121aece8199d71f537f2d9db96c4ec81cd9e6c6c4542e1e675812627ffb119018cb9093a65563ea32c7
|
7
|
+
data.tar.gz: 9b5cdc68f0141a3df37c80f86d5234084b0a480ccccc11b5e01cc7197dc0e1a5e3f775ee59c19d67c18ba7987632de66bad3cd95cf6cbdbf26d5bf0c86697159
|
@@ -12,12 +12,13 @@ module IIIFManifest
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def apply(canvas)
|
15
|
+
# Assume first item in canvas is an annotation page
|
16
|
+
annotation['id'] = "#{canvas.items.first['id']}/annotation/#{annotation.index}"
|
15
17
|
annotation['target'] = canvas['id']
|
16
18
|
canvas['width'] = choice.items.first['width']
|
17
19
|
canvas['height'] = choice.items.first['height']
|
18
20
|
canvas['duration'] = choice.items.first['duration']
|
19
21
|
annotation.body = choice
|
20
|
-
# Assume first item in canvas is an annotation page
|
21
22
|
canvas.items.first.items += [annotation]
|
22
23
|
end
|
23
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iiif_manifest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-02-
|
12
|
+
date: 2023-02-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|