Skip to content

Commit

Permalink
Updated coobook
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Jun 26, 2024
1 parent 5b01014 commit 050650f
Show file tree
Hide file tree
Showing 79 changed files with 26,585 additions and 11,767 deletions.
26,460 changes: 14,980 additions & 11,480 deletions __tests__/presentation-3-parser/__snapshots__/cookbook.tests.ts.snap

Large diffs are not rendered by default.

65 changes: 0 additions & 65 deletions __tests__/presentation-3-parser/annotation-target.test.ts

This file was deleted.

1 change: 1 addition & 0 deletions __tests__/presentation-3-parser/cookbook.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { normalize, serialize, serializeConfigPresentation3 } from '../../src';

const prWaitingForMerge: string[] = [
// '0219-using-caption-file', // https://github.com/IIIF/cookbook-recipes/pull/340
'0022-linking-with-a-hotspot-manifest',
];

describe('Cookbook', function () {
Expand Down
4 changes: 4 additions & 0 deletions __tests__/presentation-3-parser/smoke.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ const skipThese: string[] = [
// @todo
// - Has ImageService3 and ImageService2 with the same identifier :(
'bodleian.json',

// @todo
// - Updates to service.
'ghent-choices.json',
];

describe('Smoke tests', async function () {
Expand Down
39 changes: 39 additions & 0 deletions fixtures/cookbook/0001-mvm-image-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0001-mvm-image/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Single Image Example"
]
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0001-mvm-image/canvas/p1",
"type": "Canvas",
"height": 1800,
"width": 1200,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0001-mvm-image/page/p1/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0001-mvm-image/annotation/p0001-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "http://iiif.io/api/presentation/2.1/example/fixtures/resources/page1-full.png",
"type": "Image",
"format": "image/png",
"height": 1800,
"width": 1200
},
"target": "https://iiif.io/api/cookbook/recipe/0001-mvm-image/canvas/p1"
}
]
}
]
}
]
}
37 changes: 37 additions & 0 deletions fixtures/cookbook/0002-mvm-audio-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0002-mvm-audio/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Simplest Audio Example 1"
]
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0002-mvm-audio/canvas",
"type": "Canvas",
"duration": 1985.024,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0002-mvm-audio/canvas/page",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0002-mvm-audio/canvas/page/annotation",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://fixtures.iiif.io/audio/indiana/mahler-symphony-3/CD1/medium/128Kbps.mp4",
"type": "Sound",
"format": "audio/mp4",
"duration": 1985.024
},
"target": "https://iiif.io/api/cookbook/recipe/0002-mvm-audio/canvas"
}
]
}
]
}
]
}
41 changes: 41 additions & 0 deletions fixtures/cookbook/0003-mvm-video-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0003-mvm-video/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Video Example 3"
]
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0003-mvm-video/canvas",
"type": "Canvas",
"height": 360,
"width": 480,
"duration": 572.034,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0003-mvm-video/canvas/page",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0003-mvm-video/canvas/page/annotation",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/high/lunchroom_manners_1024kb.mp4",
"type": "Video",
"height": 360,
"width": 480,
"duration": 572.034,
"format": "video/mp4"
},
"target": "https://iiif.io/api/cookbook/recipe/0003-mvm-video/canvas"
}
]
}
]
}
]
}
2 changes: 1 addition & 1 deletion fixtures/cookbook/0003-mvm-video.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"id": "https://iiif.io/api/cookbook/recipe/0003-mvm-video/canvas",
"type": "Canvas",
"height": 360,
"width": 640,
"width": 480,
"duration": 572.034,
"items": [
{
Expand Down
39 changes: 39 additions & 0 deletions fixtures/cookbook/0004-canvas-size-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0004-canvas-size/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Still image from an opera performance at Indiana University"
]
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0004-canvas-size/canvas/p1",
"type": "Canvas",
"height": 1080,
"width": 1920,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0004-canvas-size/page/p1/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0004-canvas-size/annotation/p0001-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://fixtures.iiif.io/video/indiana/donizetti-elixir/act1-thumbnail.png",
"type": "Image",
"format": "image/png",
"height": 360,
"width": 640
},
"target": "https://iiif.io/api/cookbook/recipe/0004-canvas-size/canvas/p1"
}
]
}
]
}
]
}
51 changes: 51 additions & 0 deletions fixtures/cookbook/0005-image-service-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0005-image-service/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Picture of Göttingen taken during the 2019 IIIF Conference"
]
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0005-image-service/canvas/p1",
"type": "Canvas",
"label": {
"en": [
"Canvas with a single IIIF image"
]
},
"height": 3024,
"width": 4032,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0005-image-service/page/p1/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0005-image-service/annotation/p0001-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/918ecd18c2592080851777620de9bcb5-gottingen/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"height": 3024,
"width": 4032,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/918ecd18c2592080851777620de9bcb5-gottingen",
"profile": "level1",
"type": "ImageService3"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0005-image-service/canvas/p1"
}
]
}
]
}
]
}
Loading

0 comments on commit 050650f

Please sign in to comment.