From 99dbf4e39d01420bcabf966b3a1eeff1f4e370bd Mon Sep 17 00:00:00 2001 From: Trip Kirkpatrick Date: Fri, 22 Nov 2024 10:32:19 -0500 Subject: [PATCH 1/7] =?UTF-8?q?Added=20recipe=20to=20navigation=20?= =?UTF-8?q?=E2=9E=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/links.md | 4 ++-- index.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/_includes/links.md b/_includes/links.md index 0f7620a31..4adf3f013 100644 --- a/_includes/links.md +++ b/_includes/links.md @@ -73,12 +73,12 @@ [0377]: {{ site.cookbook_url | absolute_url }}/recipe/0377-image-in-annotation/ "Image in annotation" [0466]: {{ site.cookbook_url | absolute_url }}/recipe/0466-link-for-loading-manifest/ "Loading a manifest with a viewer using a link" - [0485]: {{ site.cookbook_url | absolute_url }}/recipe/0485-contentstate-canvas-region/ "Open a specific region of a canvas in a viewer" - [0434]: {{ site.cookbook_url | absolute_url }}/recipe/0434-choice-av/ "Multiple Choice of Audio Formats in a Single View (Canvas)" [0489]: {{ site.cookbook_url | absolute_url }}/recipe/0489-multimedia-canvas/ "Rendering Multiple Media Types on a Time-Based Canvas" +[0560]: {{ site.cookbook_url | absolute_url }}/recipe/0560-resources-on-a-timeline/ "Rendering Resources Sequentially on a Timeline" + [cookbook-process]: {{site.cookbook_url | absolute_url }}/recipe [trc]: {{ site.root_url | absolute_url }}/community/trc/ diff --git a/index.md b/index.md index c868e6fb7..161f284cb 100644 --- a/index.md +++ b/index.md @@ -114,6 +114,7 @@ _(leading on to segmentation examples later)_ * [Multiple choice of images in a single view][0033] (29) * [Foldouts, Flaps, and Maps][0035] * [Composition from Multiple Images][0036] (30,31) +* [Rendering Resources Sequentially on a Timeline][0560] * [Rendering Multiple Media Types on a Time-Based Canvas][0489] * Multiple images and multiple choices (32,33,34) * [Annotating part of an image to a Canvas][recipe-segment-image-part] (e.g., crop out scanner) (35,36,37,38) From af7a34466d8146b4298a01839fd5df2f203ccf3b Mon Sep 17 00:00:00 2001 From: Trip Kirkpatrick Date: Fri, 22 Nov 2024 10:33:06 -0500 Subject: [PATCH 2/7] =?UTF-8?q?Added=20minimal=20head=20matter=20=E2=9E=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recipe/0560-resources-on-a-timeline/index.md | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 recipe/0560-resources-on-a-timeline/index.md diff --git a/recipe/0560-resources-on-a-timeline/index.md b/recipe/0560-resources-on-a-timeline/index.md new file mode 100644 index 000000000..db7c7aeae --- /dev/null +++ b/recipe/0560-resources-on-a-timeline/index.md @@ -0,0 +1,46 @@ +--- +title: Resources on a Timeline +id: 560 +layout: recipe +tags: timleline +summary: "Placing resources on a timeline independent of format and individual duration" +viewers: +topic: + - complex +--- + +## Use Case + +Describe the use case that the pattern is intended to solve. +Why is this pattern important? + +## Implementation Notes + +What do you need to know to use this pattern? +How do you implement the pattern? + +## Restrictions + +When is this pattern is usable / not usable? Is it deprecated? If it uses multiple specifications, which versions are needed, etc.? + +Delete this section if it is not needed. +If you don't know what the restrictions might be initially, just leave the following line: +**Unknown - Help Needed** + +## Example + +Describe the solution in prose and provide an example. +The example json document must be an external document, and imported with the following: + +{% include manifest_links.html viewers="UV, Mirador, Annona, Clover, Ramp, Aviary, Glycerine, Theseus" manifest="manifest.json" %} + +{% include jsonviewer.html src="manifest.json" %} + +The direct link to the fixture is a useful convenience. + +## Related Recipes + +Provide a bulleted list of related recipes and why they are relevant. + +{% include acronyms.md %} +{% include links.md %} From 1786bf132d1bc740416024d4f9b94d9dcaa00bf5 Mon Sep 17 00:00:00 2001 From: Trip Kirkpatrick Date: Fri, 22 Nov 2024 10:34:51 -0500 Subject: [PATCH 3/7] =?UTF-8?q?Made=20a=20rough=20draft=20of=20manifest=20?= =?UTF-8?q?=F0=9F=93=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note that there's an arbitrary time-based resource in the Manifest. This is to try to force a viewer to create a timeline that the still image resources can show up along. (In other words, a hack for the time being) --- .../manifest.json | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 recipe/0560-resources-on-a-timeline/manifest.json diff --git a/recipe/0560-resources-on-a-timeline/manifest.json b/recipe/0560-resources-on-a-timeline/manifest.json new file mode 100644 index 000000000..2e07f0067 --- /dev/null +++ b/recipe/0560-resources-on-a-timeline/manifest.json @@ -0,0 +1,89 @@ +{ + "@context": "http://iiif.io/api/presentation/3/context.json", + "id": "{{ id.url }}", + "type": "Manifest", + "label": { "en": [ "Resources on a Timeline" ] }, + "items": [ + { + "id": "{{ id.path }}/canvas", + "type": "Canvas", + "height": 2572, + "width": 3764, + "duration": 16, + "items": [ + { + "id": "{{ id.path }}/page/p1/1", + "type": "AnnotationPage", + "items": [ + { + "id": "{{ id.path }}/annotation/p0001-image", + "type": "Annotation", + "motivation": "painting", + "body": { + "id": "https://iiif.io/api/image/3.0/example/reference/329817fc8a251a01c393f517d8a17d87-Northeaster_by_Winslow_Homer_1895/full/max/0/default.jpg", + "type": "Image", + "format": "image/jpeg", + "height": 2572, + "width": 3764, + "service": [ + { + "id": "https://iiif.io/api/image/3.0/example/reference/329817fc8a251a01c393f517d8a17d87-Northeaster_by_Winslow_Homer_1895/", + "profile": "level1", + "type": "ImageService3" + } + ] + }, + "target": "{{ id.path }}/canvas#t=0,5" + }, + { + "id": "{{ id.path }}/annotation/p0001a-image", + "type": "Annotation", + "motivation": "painting", + "body": { + "id": "https://iiif.io/api/image/3.0/example/reference/329817fc8a251a01c393f517d8a17d87-Winslow_Homer_-_The_Gulf_Stream_-_Metropolitan_Museum_of_Art/full/max/0/default.jpg", + "type": "Image", + "format": "image/jpeg", + "height": 3540, + "width": 5886, + "service": [ + { + "id": "https://iiif.io/api/image/3.0/example/reference/329817fc8a251a01c393f517d8a17d87-Winslow_Homer_-_The_Gulf_Stream_-_Metropolitan_Museum_of_Art/", + "profile": "level1", + "type": "ImageService3" + } + ] + }, + "target": "{{ id.path }}/canvas#t=5.1,10" + }, + { + "id": "{{ id.path }}/annotation/p0002-video", + "type": "Annotation", + "motivation": "painting", + "body": { + "id": "https://fixtures.iiif.io/video/indiana/30-minute-clock/medium/30-minute-clock.mp4", + "type": "Video", + "height": 360, + "width": 640, + "duration": 1801.055, + "format": "video/mp4" + }, + "target": "{{ id.path }}/canvas#xywh=0,0,500,600&t=1,10" + }, + { + "id": "{{ id.path }}/annotation/p0006-text", + "type": "Annotation", + "motivation": "painting", + "body": { + "type": "TextualBody", + "format": "text/html", + "value": "

", + "language": "en" + }, + "target": "{{ id.path }}/canvas#xywh=27000,10200,25000,5000&t=11,16" + } + ] + } + ] + } + ] + } From 34512513094667e0f8543cdc281b86b3dad50ffc Mon Sep 17 00:00:00 2001 From: Trip Kirkpatrick Date: Fri, 22 Nov 2024 11:42:47 -0500 Subject: [PATCH 4/7] =?UTF-8?q?Corrected=20topic=20to=20canonical=20?= =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recipe/0560-resources-on-a-timeline/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/0560-resources-on-a-timeline/index.md b/recipe/0560-resources-on-a-timeline/index.md index db7c7aeae..cfbdf8598 100644 --- a/recipe/0560-resources-on-a-timeline/index.md +++ b/recipe/0560-resources-on-a-timeline/index.md @@ -6,7 +6,7 @@ tags: timleline summary: "Placing resources on a timeline independent of format and individual duration" viewers: topic: - - complex + - realWorldObject --- ## Use Case From 7f1c4dfd9409dd531c4a711a06118f3fc07c5748 Mon Sep 17 00:00:00 2001 From: Trip Kirkpatrick Date: Fri, 13 Dec 2024 08:44:00 -0500 Subject: [PATCH 5/7] =?UTF-8?q?Removed=20extraneous=20items=20=F0=9F=9A=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manifest.json | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/recipe/0560-resources-on-a-timeline/manifest.json b/recipe/0560-resources-on-a-timeline/manifest.json index 2e07f0067..0cd9c2051 100644 --- a/recipe/0560-resources-on-a-timeline/manifest.json +++ b/recipe/0560-resources-on-a-timeline/manifest.json @@ -54,32 +54,6 @@ ] }, "target": "{{ id.path }}/canvas#t=5.1,10" - }, - { - "id": "{{ id.path }}/annotation/p0002-video", - "type": "Annotation", - "motivation": "painting", - "body": { - "id": "https://fixtures.iiif.io/video/indiana/30-minute-clock/medium/30-minute-clock.mp4", - "type": "Video", - "height": 360, - "width": 640, - "duration": 1801.055, - "format": "video/mp4" - }, - "target": "{{ id.path }}/canvas#xywh=0,0,500,600&t=1,10" - }, - { - "id": "{{ id.path }}/annotation/p0006-text", - "type": "Annotation", - "motivation": "painting", - "body": { - "type": "TextualBody", - "format": "text/html", - "value": "

", - "language": "en" - }, - "target": "{{ id.path }}/canvas#xywh=27000,10200,25000,5000&t=11,16" } ] } From 2715e0c5f558273ac55b3b88483f819103f8404c Mon Sep 17 00:00:00 2001 From: Trip Kirkpatrick Date: Fri, 13 Dec 2024 08:44:44 -0500 Subject: [PATCH 6/7] =?UTF-8?q?Added=20behavior=20property=20to=20make=20a?= =?UTF-8?q?=20loop=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recipe/0560-resources-on-a-timeline/manifest.json | 1 + 1 file changed, 1 insertion(+) diff --git a/recipe/0560-resources-on-a-timeline/manifest.json b/recipe/0560-resources-on-a-timeline/manifest.json index 0cd9c2051..0e363adf3 100644 --- a/recipe/0560-resources-on-a-timeline/manifest.json +++ b/recipe/0560-resources-on-a-timeline/manifest.json @@ -3,6 +3,7 @@ "id": "{{ id.url }}", "type": "Manifest", "label": { "en": [ "Resources on a Timeline" ] }, + "behavior": ["auto-advance", "repeat"], "items": [ { "id": "{{ id.path }}/canvas", From 8b81b6fc673c521ba3dc96580c784b0d7b95a6be Mon Sep 17 00:00:00 2001 From: Trip Kirkpatrick Date: Fri, 13 Dec 2024 08:45:20 -0500 Subject: [PATCH 7/7] =?UTF-8?q?Shortened=20durations=20to=20make=20testing?= =?UTF-8?q?=20easier=20=E2=9E=96=E2=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recipe/0560-resources-on-a-timeline/manifest.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipe/0560-resources-on-a-timeline/manifest.json b/recipe/0560-resources-on-a-timeline/manifest.json index 0e363adf3..0e939bdb6 100644 --- a/recipe/0560-resources-on-a-timeline/manifest.json +++ b/recipe/0560-resources-on-a-timeline/manifest.json @@ -10,7 +10,7 @@ "type": "Canvas", "height": 2572, "width": 3764, - "duration": 16, + "duration": 2, "items": [ { "id": "{{ id.path }}/page/p1/1", @@ -34,7 +34,7 @@ } ] }, - "target": "{{ id.path }}/canvas#t=0,5" + "target": "{{ id.path }}/canvas#t=0,1" }, { "id": "{{ id.path }}/annotation/p0001a-image", @@ -54,7 +54,7 @@ } ] }, - "target": "{{ id.path }}/canvas#t=5.1,10" + "target": "{{ id.path }}/canvas#t=1,2" } ] }