Skip to content

Commit 7addb9d

Browse files
authored
Merge pull request #641 from IIIF/introduce-tify
Add TIFY viewer
2 parents 41b2f5e + f0c8503 commit 7addb9d

File tree

39 files changed

+84
-41
lines changed

39 files changed

+84
-41
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ but we would welcome other viewers. To see the requirements for adding other vie
8181
This provides a standard link to the JSON and also to viewers. A full example is as follows:
8282

8383
```
84-
{% include manifest_links.html viewers="UV, Mirador, Tify, Curation" manifest="manifest.json" %}
84+
{% include manifest_links.html viewers="UV, Mirador, TIFY, Curation" manifest="manifest.json" %}
8585
```
8686

8787
and this would produce the following line:
8888

89-
[JSON-LD]() | [View in Universal Viewer]() | [View in Mirador]() | [View in Tify]() | [View in IIIF Curation Viewer]()
89+
[JSON-LD]() | [View in Universal Viewer]() | [View in Mirador]() | [View in TIFY]() | [View in IIIF Curation Viewer]()
9090

9191
The `manifest` parameter allows you to pass a relative link to the manifest and the `viewers` parameter is a list of Viewer links to show. For the Viewers property you have the following options:
9292

_includes/viewer_link.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
https://liiive.now/?iiif-content={{manifest_url |strip}}
6767
{% endcapture %}
6868
{% assign default_text="View in liiive" %}
69+
{% elsif include.type == 'TIFY' %}
70+
{% capture viewer_url %}
71+
https://tify-iiif-viewer.github.io/tify/?iiif-content={{manifest_url |strip}}
72+
{% endcapture %}
73+
{% assign default_text="View in TIFY" %}
6974
{% else %}
7075
{% capture default_text %}Unknown Viewer type '{{ include.type}}'{% endcapture %}
7176
{% capture viewer_url %}{{manifest_url |strip}}{% endcapture %}

recipe/0000_template/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If you don't know what the restrictions might be initially, just leave the follo
3232
Describe the solution in prose and provide an example.
3333
The example json document must be an external document, and imported with the following:
3434

35-
{% include manifest_links.html viewers="UV, Mirador, Annona, Clover, Ramp, Aviary, Glycerine, Theseus" manifest="manifest.json" %}
35+
{% include manifest_links.html viewers="UV, Mirador, Annona, Clover, Ramp, Aviary, Glycerine, Theseus, TIFY" manifest="manifest.json" %}
3636

3737
{% include jsonviewer.html src="manifest.json" %}
3838

recipe/0001-mvm-image/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ viewers:
1313
- Theseus
1414
- Curation
1515
- liiive
16+
- TIFY
1617
topic:
1718
- basic
1819
- image

recipe/0002-mvm-audio/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ viewers:
1212
- Aviary
1313
- Theseus
1414
- Glycerine Viewer
15+
- TIFY
1516
topic:
1617
- basic
1718
- AV
@@ -32,7 +33,7 @@ The implementation is identical to the [image example][0001], except that the co
3233

3334
This example shows a Manifest with a single Canvas that lasts for 1985.024 seconds. It has a single audio file (audio-sample.mp4) which is associated with it. The mp4 also has a duration of 1985.024 seconds.
3435

35-
{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp, Aviary, Theseus, Glycerine Viewer" manifest="manifest.json" %}
36+
{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp, Aviary, Theseus, Glycerine Viewer, TIFY" manifest="manifest.json" %}
3637

3738
{% include jsonviewer.html src="manifest.json" %}
3839

recipe/0003-mvm-video/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ viewers:
1212
- Aviary
1313
- Theseus
1414
- Glycerine Viewer
15+
- TIFY
1516
topic:
1617
- basic
1718
- AV
@@ -32,7 +33,7 @@ The implementation is identical to the [image example][0001], except that the co
3233

3334
This example shows a Manifest with a single Canvas that lasts for 572 seconds, or just under 10 minutes. It has a single video file (lunchroom_manners_1024kb.mp4) which is associated with it. The mp4 also has a duration of 572 seconds.
3435

35-
{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp, Aviary, Theseus, Glycerine Viewer" manifest="manifest.json" %}
36+
{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp, Aviary, Theseus, Glycerine Viewer, TIFY" manifest="manifest.json" %}
3637

3738
{% include jsonviewer.html src="manifest.json" %}
3839

recipe/0004-canvas-size/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ viewers:
1010
- Annona
1111
- Theseus
1212
- Curation
13+
- TIFY
1314
topic: image
1415
code:
1516
- iiif-prezi3
@@ -40,7 +41,7 @@ The aspect ratio should be consistent between your source image and Canvas. Othe
4041

4142
This example shows a Manifest with a single Canvas that has height and width dimensions three times the pixel dimensions of the image in order to construct a Canvas with both dimensions greater than 1000px.
4243

43-
{% include manifest_links.html viewers="UV, Mirador, Annona, Theseus, Curation" manifest="manifest.json" %}
44+
{% include manifest_links.html viewers="UV, Mirador, Annona, Theseus, Curation, TIFY" manifest="manifest.json" %}
4445
{% include jsonviewer.html src="manifest.json" config="data-line='14-15,29-30'"%}
4546

4647
# Related recipes

recipe/0005-image-service/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ viewers:
1212
- Theseus
1313
- Curation
1414
- liiive
15+
- TIFY
1516
topic:
1617
- basic
1718
- image
@@ -39,7 +40,7 @@ Though a version 3 Manifest may specify a service using the version 2 `@id` and
3940

4041
## Example
4142

42-
{% include manifest_links.html viewers="Mirador, Annona, Clover, Glycerine Viewer, Theseus, Curation, liiive" manifest="manifest.json" %}
43+
{% include manifest_links.html viewers="Mirador, Annona, Clover, Glycerine Viewer, Theseus, Curation, liiive, TIFY" manifest="manifest.json" %}
4344

4445
{% include jsonviewer.html src="manifest.json" config='data-line="36-42"' %}
4546

recipe/0006-text-language/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ viewers:
1111
- Glycerine Viewer
1212
- Theseus
1313
- Curation
14+
- TIFY
1415
topic: basic
1516
property: label, summary, metadata, requiredStatement
1617
code:
@@ -47,7 +48,7 @@ Note not all viewers support all languages and users should check the viewers wi
4748

4849
The image in this example was sourced via Wikimedia Commons and is public domain.
4950

50-
{% include manifest_links.html viewers="UV, Mirador, Annona, Glycerine Viewer, Theseus, Curation" manifest="manifest.json" %}
51+
{% include manifest_links.html viewers="UV, Mirador, Annona, Glycerine Viewer, Theseus, Curation, TIFY" manifest="manifest.json" %}
5152

5253
{% include jsonviewer.html src="manifest.json" config='data-line="6-11, 16-21, 24-26, 31-36, 39-44, 49-54, 58-63, 66-68"' %}
5354

recipe/0007-string-formats/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ viewers:
1313
- Theseus
1414
- Curation
1515
- liiive
16+
- TIFY
1617
topic: property
1718
property: label, summary, metadata, requiredStatement
1819
code:
@@ -35,7 +36,7 @@ For security reasons, clients are expected to allow only `a`, `b`, `br`, `i`, `i
3536

3637
## Example
3738

38-
{% include manifest_links.html viewers="UV, Mirador, Annona, Clover, Glycerine Viewer, Theseus, Curation, liiive" manifest="manifest.json" %}
39+
{% include manifest_links.html viewers="UV, Mirador, Annona, Clover, Glycerine Viewer, Theseus, Curation, liiive, TIFY" manifest="manifest.json" %}
3940

4041
{% include jsonviewer.html src="manifest.json" config='data-line="7,12,24,38"' %}
4142

0 commit comments

Comments
 (0)