You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/presentation/4.0/index.md
+4-51Lines changed: 4 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -255,70 +255,23 @@ Annotations are grouped within the [`items`][prezi-40-model-items] property of a
255
255
256
256
The required properties of Annotations, as used in IIIF, are [`id`][prezi-40-model-id], [`type`][prezi-40-model-type], [`target`][prezi-40-model-target] and [`motivation`][prezi-40-model-motivation]. Most Annotations also have the [`body`][prezi-40-model-body]. See the [Annotation Documentation](model/#Annotation) for more detail.
257
257
258
-
259
-
> TODO: JSON examples for Anno, Anno Page and Anno Coll'n ?
use totalItems? https://iiif.io/api/discovery/1.0/#totalitems
306
-
https://github.com/IIIF/api/issues/2118
307
-
-->
308
-
258
+
{% include code_example.html src="09_anno_page_1.json" from=14 to=28 %}
309
259
310
260
### Annotation Page
311
261
312
262
Annotation Pages are used to group Annotations. In cases where many annotations are present, such as when transcription, translation, and commentary are associated with a manuscript, it can be useful to separate these annotations into groups that can facilitate improved user interactions in a client.
313
263
314
264
Each Annotation Page can be embedded or externally referenced. Clients should process the Annotation Pages and their items in the order given in the Container. Publishers may choose to expedite the processing of embedded Annotation Pages by ordering them before external pages, which will need to be dereferenced by the client. Order can be significant, however. Annotations are assigned an ascending [z-index](https://developer.mozilla.org/en-US/docs/Web/CSS/z-index) from the first annotation encountered. Annotations with a higher z-index will render in front of those with a lower z-index when displayed on a Canvas.
315
265
266
+
{% include code_example.html src="09_anno_page_1.json" %}
267
+
316
268
### Annotation Collection
317
269
318
270
Annotation Collections represent groupings of Annotation Pages that should be managed as a single whole, regardless of which Container or resource they target. This allows, for example, all of the Annotations that make up a particular translation of the text of a book to be collected together. A client might then present a user interface that allows all of the Annotations in an Annotation Collection to be displayed or hidden according to the user’s preference.
319
271
320
272
For Annotation Collections with many Annotations, there will be many pages. The Annotation Collection refers to the first and last page, and then the pages refer to the previous and next pages in the ordered list. Each page is part of the Annotation Collection.
321
273
274
+
{% include code_example.html src="09_anno_collection.json" %}
0 commit comments