From cb5862593c353d3a7038da05de749390f76b9a42 Mon Sep 17 00:00:00 2001 From: Raza Saleem Date: Wed, 10 Jan 2024 14:53:13 +0500 Subject: [PATCH] Aviary_IIIF_Player_cookbook_recipes --- _includes/viewer_link.html | 5 +++++ recipe/0002-mvm-audio/index.md | 2 +- recipe/0003-mvm-video/index.md | 2 +- recipe/0014-accompanyingcanvas/index.md | 2 +- recipe/0015-start/index.md | 2 +- recipe/0017-transcription-av/index.md | 2 +- recipe/0026-toc-opera/index.md | 2 +- recipe/0074-multiple-language-captions/index.md | 2 +- recipe/0219-using-caption-file/index.md | 2 +- 9 files changed, 13 insertions(+), 8 deletions(-) diff --git a/_includes/viewer_link.html b/_includes/viewer_link.html index b7cc98e01..866d11263 100644 --- a/_includes/viewer_link.html +++ b/_includes/viewer_link.html @@ -10,6 +10,11 @@ https://uv-v3.netlify.app/#?c=&m=&s=&cv=&manifest={{manifest_url |strip}} {% endcapture %} {% assign default_text="View in Universal Viewer" %} +{% elsif include.type == 'aviary' %} + {% capture viewer_url %} + https://iiif.aviaryplatform.com/player?manifest={{manifest_url |strip}} + {% endcapture %} + {% assign default_text="View in Aviary" %} {% elsif include.type == 'Mirador' %} {% capture viewer_url %} https://projectmirador.org/embed/?iiif-content={{manifest_url |strip}} diff --git a/recipe/0002-mvm-audio/index.md b/recipe/0002-mvm-audio/index.md index 7178f33f0..e267f9e8c 100644 --- a/recipe/0002-mvm-audio/index.md +++ b/recipe/0002-mvm-audio/index.md @@ -29,7 +29,7 @@ The implementation is identical to the [image example][0001], except that the co 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. -{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp" manifest="manifest.json" %} +{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp, Aviary" manifest="manifest.json" %} {% include jsonviewer.html src="manifest.json" %} diff --git a/recipe/0003-mvm-video/index.md b/recipe/0003-mvm-video/index.md index b22a32193..3eb8f284f 100644 --- a/recipe/0003-mvm-video/index.md +++ b/recipe/0003-mvm-video/index.md @@ -29,7 +29,7 @@ The implementation is identical to the [image example][0001], except that the co 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. -{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp" manifest="manifest.json" %} +{% include manifest_links.html viewers="UV, Mirador, Clover, Ramp, Aviary" manifest="manifest.json" %} {% include jsonviewer.html src="manifest.json" %} diff --git a/recipe/0014-accompanyingcanvas/index.md b/recipe/0014-accompanyingcanvas/index.md index 10075e323..fb3f929a1 100644 --- a/recipe/0014-accompanyingcanvas/index.md +++ b/recipe/0014-accompanyingcanvas/index.md @@ -32,7 +32,7 @@ Each instance of `accompanyingCanvas` may only contain one Canvas, and as such m In the example, the main Canvas contains audio of a performance of Gustav Mahler's Symphony No. 3 and the `accompanyingCanvas` contains an image of a page from the score. -{% include manifest_links.html manifest="manifest.json" %} +{% include manifest_links.html viewers="Clover, Aviary" manifest="manifest.json" %} {% include jsonviewer.html src="manifest.json" config="data-line='20-58'"%} diff --git a/recipe/0015-start/index.md b/recipe/0015-start/index.md index 0772f4cf9..3729a7e98 100644 --- a/recipe/0015-start/index.md +++ b/recipe/0015-start/index.md @@ -38,7 +38,7 @@ For more information on other Selector classes, see: [IIIF Open/Web Annotation E This example shows a Manifest with a single Canvas with a duration of 1801.055 seconds. It has a single video file (30-minute-clock.mp4) which is associated with it. The `start` property specifies a start point of 120.5 seconds into the playback. The video was created by [DrLex1](https://www.youtube.com/watch?v=Lsq0FiXjGHg) and was released using a [Creative Commons Attribution license](https://creativecommons.org/licenses/by/3.0/). -{% include manifest_links.html viewers="Ramp" manifest="manifest.json" %} +{% include manifest_links.html viewers="Ramp, Aviary" manifest="manifest.json" %} {% include jsonviewer.html src="manifest.json" config='data-line="10-18"' %} diff --git a/recipe/0017-transcription-av/index.md b/recipe/0017-transcription-av/index.md index c22a3b2e9..d7567c9a6 100644 --- a/recipe/0017-transcription-av/index.md +++ b/recipe/0017-transcription-av/index.md @@ -41,7 +41,7 @@ In Universal Viewer, to access the transcript use the 'Download' link on the bot In Ramp, the transcript file is made available to download under the player controls. Click the filename listed in the menu to download the transcript file. -{% include manifest_links.html viewers="UV, Mirador, Ramp" manifest="manifest.json" %} +{% include manifest_links.html viewers="UV, Mirador, Ramp, Aviary" manifest="manifest.json" %} {% include jsonviewer.html src="manifest.json" config='data-line="39-50"'%} # Related recipes diff --git a/recipe/0026-toc-opera/index.md b/recipe/0026-toc-opera/index.md index 8308868c2..c1dbd7cf4 100644 --- a/recipe/0026-toc-opera/index.md +++ b/recipe/0026-toc-opera/index.md @@ -35,7 +35,7 @@ Leaf Range nodes in a structure are played linearly so they should be contiguous The opera covers the whole length of the Canvas and is divided into two Ranges for the two acts. Atto Primo has a Range for the prelude and first song and then a Range for the remainder of the act. Atto Secondo has not been subdivided into Ranges for simplicity of this example. -{% include manifest_links.html viewers="UV, Ramp" manifest="manifest.json" %} +{% include manifest_links.html viewers="UV, Ramp, Aviary" manifest="manifest.json" %} {% include jsonviewer.html src="manifest.json" %} ## Related Recipes diff --git a/recipe/0074-multiple-language-captions/index.md b/recipe/0074-multiple-language-captions/index.md index 780efb803..d2a9e5036 100644 --- a/recipe/0074-multiple-language-captions/index.md +++ b/recipe/0074-multiple-language-captions/index.md @@ -35,7 +35,7 @@ For expressing the availability of the subtitles in the two languages, we use an In this example we use subtitle files in the WebVTT format. Other format options include SRT (SubRip Text) or TTML (Timed Text Markup Language), but these are less likely to be supported in IIIF viewers. -{% include manifest_links.html viewers="Ramp" manifest="manifest.json" %} +{% include manifest_links.html viewers="Ramp, Aviary" manifest="manifest.json" %} {% include jsonviewer.html src="manifest.json" config='data-line="60-92"'%} diff --git a/recipe/0219-using-caption-file/index.md b/recipe/0219-using-caption-file/index.md index c01ce4f34..ecb82d275 100644 --- a/recipe/0219-using-caption-file/index.md +++ b/recipe/0219-using-caption-file/index.md @@ -35,7 +35,7 @@ When using segmented WebVTT with HLS, see [Serving HLS Files][0257]. In this example we use a caption file in the WebVTT format, but other options include a subtitle file in the [SRT](https://en.wikipedia.org/wiki/SubRip) (SubRip Text) or [TTML](https://w3c.github.io/ttml3/index.html) (Timed Text Markup Language) formats, or other text-based format used for the same purpose. -{% include manifest_links.html viewers="Clover, Ramp" manifest="manifest.json" %} +{% include manifest_links.html viewers="Clover, Ramp, Aviary" manifest="manifest.json" %} {% include jsonviewer.html src="manifest.json" config='data-line="41-67"'%}