Skip to content

Commit

Permalink
Merge pull request #559 from giacomomarchioro/0540-link-for-opening-m…
Browse files Browse the repository at this point in the history
…ultiple-canvases

changes id.url to  id.path
  • Loading branch information
giacomomarchioro authored Nov 22, 2024
2 parents 04e0555 + 16de24b commit d91f760
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion recipe/0540-link-for-opening-multiple-canvases/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ None known.

## Example
In this example we want to compare two painting of the Colosseum from two different Manifests.
One of the two Manifest is available at the following [link]({{ id.url }}/manifest.json). We can notice that the Colosseum painting is in the second Canvas. The other Manifest is from another recipe, and can be [accessed here](https://iiif.io/api/cookbook/recipe/0318-navPlace-navDate/manifest-2.json).
One of the two Manifest is available at the following [link]({{ id.path }}/manifest.json). We can notice that the Colosseum painting is in the second Canvas. The other Manifest is from another recipe, and can be [accessed here](https://iiif.io/api/cookbook/recipe/0318-navPlace-navDate/manifest-2.json).

The Annotation will target the `id` of the two Canvases we want to compare and contain a reference to the two Manifests as shown in the example:

Expand Down
16 changes: 8 additions & 8 deletions recipe/0540-link-for-opening-multiple-canvases/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"items": [
{
"id": "{{ id.url }}/canvas/p1",
"id": "{{ id.path }}/canvas/p1",
"type": "Canvas",
"label": {
"en": [
Expand All @@ -20,11 +20,11 @@
"width": 2048,
"items": [
{
"id": "{{ id.url }}/page/p1/1",
"id": "{{ id.path }}/page/p1/1",
"type": "AnnotationPage",
"items": [
{
"id": "{{ id.url }}/annotation/p0001-image",
"id": "{{ id.path }}/annotation/p0001-image",
"type": "Annotation",
"motivation": "painting",
"body": {
Expand All @@ -34,14 +34,14 @@
"height": 1464,
"width": 2048
},
"target": "{{ id.url }}/canvas/p1"
"target": "{{ id.path }}/canvas/p1"
}
]
}
]
},
{
"id": "{{ id.url }}/canvas/p2",
"id": "{{ id.path }}/canvas/p2",
"type": "Canvas",
"label": {
"en": [
Expand All @@ -52,11 +52,11 @@
"width": 2048,
"items": [
{
"id": "{{ id.url }}/page/p2/1",
"id": "{{ id.path }}/page/p2/1",
"type": "AnnotationPage",
"items": [
{
"id": "{{ id.url }}/annotation/p0002-image",
"id": "{{ id.path }}/annotation/p0002-image",
"type": "Annotation",
"motivation": "painting",
"body": {
Expand All @@ -66,7 +66,7 @@
"height": 1302,
"width": 2048
},
"target": "{{ id.url }}/canvas/p2"
"target": "{{ id.path }}/canvas/p2"
}
]
}
Expand Down

0 comments on commit d91f760

Please sign in to comment.