翻译者:Yuyan Jiang
原文链接:https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/
用例
图书对象(及其数字替代品)有多种形式和布局。有多种形式和布局,这些形式和布局会影响我们向用户显示资源的方式,例如具有正反面概念的抄本、具有连续布局的卷轴或手风琴书籍,或已成像为 2 页跨页的数字化手抄本。
为了告诉演示客户端如何显示彼此相关的资源序列,IIIF 使用了行为属性。例如,一组无序的照片可能会使用属性 “behavior”: “unordered”; 或者,标准手抄本最好以书本视图的形式呈现,两个对开的页面并排显示。在这种情况下,使用的行为属性值是分页的。有关使用 “behavior”: “paged” 属性的示例清单,请参阅“书”(最简单的)专题。这个专题提供了示例清单,演示了两个额外的书籍相关用例的行为属性的使用:
使用案例 1:一本手风琴书,通过多次拍摄捕捉每个片段进行成像,允许书在查看器中“缝合在一起”以获得单个连续视图。在此示例中,清单将使用行为属性连续。
使用案例 2:一本书(古书手抄本)对象,其中的页面图像是每 2 页跨页捕获一个图像。在此示例中,清单将使用行为属性单独。
实施说明
如果未指定,默认行为值是布局行为的个体(与时间、集合、范围和杂项行为相反)。此外,您可能还希望使用该属性(例如,查看方向及其对导览的影响专题),或者,根据预期的用户体验查看资源。和之间的相互作用,特别是当他们设置在多个和/或等级资源,需要特别注意。有关更多信息,请咨询演示3.0规格,以便与未来的版本保持联系。
限制
该属性允许所有资源类型,但某些值(unordered, individuals, continuous, paged)仅适用于Collection, Manifest, and Range,而其他(facing-pages, non-paged)只允许使用在画布上。
样例
使用案例 1:手风琴书(连续)
此清单展现一本埃塞俄比亚手风琴书,从左到右连续布局。它有四个图像,在使用该属性时,将作为单个连续图像显示在查看器中。
JSON-LD| 在Mirador中查看
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/manifest-continuous.json",
"type": "Manifest",
"label": {
"gez": [
"Ms. 21 Māzemurā Dāwit, Asmat [መዝሙረ ዳዊት]"
]
},
"behavior": [
"continuous"
],
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s1",
"type": "Canvas",
"label": {
"en": [
"Section 1 [Recto]"
]
},
"width": 11368,
"height": 1592,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/s1/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/s0001-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmd9_1300412_master/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 11368,
"height": 1592,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmd9_1300412_master",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s1"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s2",
"type": "Canvas",
"label": {
"en": [
"Section 2 [Recto]"
]
},
"width": 11608,
"height": 1536,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/s2/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/s0002-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmft_1300418_master/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 11608,
"height": 1536,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmft_1300418_master",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s2"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s3",
"type": "Canvas",
"label": {
"en": [
"Section 3 [Recto]"
]
},
"width": 10576,
"height": 1504,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/s3/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/s0003-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmgb_1300426_master/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 10576,
"height": 1504,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmgb_1300426_master",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s3"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s4",
"type": "Canvas",
"label": {
"en": [
"Section 4 [Recto]"
]
},
"width": 2488,
"height": 1464,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/s4/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/s0004-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmhv_1300436_master/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 2488,
"height": 1464,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmhv_1300436_master",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s4"
}
]
}
]
}
]
}
使用案例 2:图书图像是每 2 页跨页
此清单代表一本书,图像为 2 页跨页(单个图像中的两个对开页)。使用该属性时,演示文稿客户端将强制执行一次一个视图并删除“书本视图”选项。
JSON-LD | 在Universal Viewer中查看 | 在Mirador中查看
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/manifest-individuals.json",
"type": "Manifest",
"label": {
"ca": [
"[Conoximent de las orines] Ihesus, Ihesus. En nom de Deu et dela beneyeta sa mare e de tots los angels i archangels e de tots los sants e santes de paradis yo micer Johannes comense aquest libre de reseptes en l’ayn Mi 466."
]
},
"behavior": [
"individuals"
],
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v1",
"type": "Canvas",
"label": {
"en": [
"inside cover; 1r"
]
},
"width": 3375,
"height": 2250,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/v1/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/v0001-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-0-21198-zz00022840-1-master/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3375,
"height": 2250,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-0-21198-zz00022840-1-master",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v1"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v2",
"type": "Canvas",
"label": {
"en": [
"2v, 3r"
]
},
"width": 3375,
"height": 2250,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/v2/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/v0002-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-1-21198-zz00022882-1-master/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3375,
"height": 2250,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-1-21198-zz00022882-1-master",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v2"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v3",
"type": "Canvas",
"label": {
"en": [
"3v, 4r"
]
},
"width": 3375,
"height": 2250,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/v3/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/v0003-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-2-21198-zz000228b3-1-master/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3375,
"height": 2250,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-2-21198-zz000228b3-1-master",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v3"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v4",
"type": "Canvas",
"label": {
"en": [
"4v, 5r"
]
},
"width": 3375,
"height": 2250,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/v4/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/v0004-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-3-21198-zz000228d4-1-master/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3375,
"height": 2250,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-3-21198-zz000228d4-1-master",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v4"
}
]
}
]
}
]
}
相关专题
o 书(最简单)
o 查看方向及其对导览的影响
[
](https://iiif.io/api/cookbook/recipe/0010-book-2-viewing-direction)