Skip to content

Commit

Permalink
small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
robcast committed Sep 27, 2024
1 parent b4a5b08 commit 15ce65e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion recipe/0309-annotation-collection/anno_coll.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"Newspaper layout markup"
]
},
"total": 12,
"total": 8,
"first": "{{ id.path }}/anno_p1.json",
"last": "{{ id.path }}/anno_p2.json"

Expand Down
6 changes: 3 additions & 3 deletions recipe/0309-annotation-collection/anno_p1.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"body": {
"type": "TextualBody",
"format": "text/plain",
"value": "headline-1"
"value": "text-1-1"
},
"target": {
"type": "SpecificResource",
Expand All @@ -38,7 +38,7 @@
"body": {
"type": "TextualBody",
"format": "text/plain",
"value": "text-1-1"
"value": "text-1-2"
},
"target": {
"type": "SpecificResource",
Expand All @@ -64,7 +64,7 @@
"body": {
"type": "TextualBody",
"format": "text/plain",
"value": "text-1-2"
"value": "text-1-3"
},
"target": {
"type": "SpecificResource",
Expand Down
9 changes: 9 additions & 0 deletions recipe/0309-annotation-collection/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ All AnnotationPages are separate documents that have an `items` property contain

A IIIF viewer that displays Annotations on a Canvas follows the URIs in the `annotations` property of the Canvas and loads the Annotations in the referenced AnnotationPages. If the viewer wants to indicate that these Annotations belong to one or more AnnotationCollections it has to follow the URI in the `partOf` property of the AnnotationPages to identify the AnnotationCollection and display its label and choose a common color for the Annotations. This means that a viewer has to load all AnnotationPages from all Canvases if it wants to present a list of all AnnotationCollections in the Manifest to the user.

issues:
- partOf in Prezi3 wants a list with id and type https://iiif.io/api/presentation/3.0/#partof

## Restrictions

???
Expand All @@ -41,10 +44,16 @@ We use a Manifest containing two pages from a newspaper (Berliner Tageblatt, Feb

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

AnnotationPage with Annotations on the first Canvas.

{% include jsonviewer.html src="anno_p1.json" %}

AnnotationPage with Annotations on the second Canvas.

{% include jsonviewer.html src="anno_p2.json" %}

AnnotationCollection referencing the AnnotationPages.

{% include jsonviewer.html src="anno_coll.json" %}

## Related Recipes
Expand Down

0 comments on commit 15ce65e

Please sign in to comment.