翻译:Wu Gang
原文地址:https://iiif.io/api/cookbook/recipe/0202-start-canvas/
专题主页 | 专题列表
用例
在某些情况下,书籍对象将具有大多数用户想要跳过的前页译者注:例如扉页、版权页、目次等部分,例如空白页(或者可能是装订的照片和其他非文本视图或颜色校准图像)。在本专题中,我们演示了使用 start 属性告诉展示客户端在加载资源时跳过初始 Canvas(空白页面),而显示第二个 Canvas(内容开始处)。
实施说明
通过添加客户端在特定 Canvas 上加载 Manfiest 所需的信息,本专题扩展了“ 多个相关图像(书籍等)”。这是通过将 start 属性添加到 Manifest 上,并指定客户端在初始化时应该显示的 Canvas 来完成的。
start 属性的目标必须是具有 id 和 type 属性的 JSON 对象,其中 type 可以是 Canvas 或带有 Selector 的特定资源。在本用例中,目标 type 属性是 Canvas (“type”: “Canvas”)。
有关使用带有 Selector 的特定资源的 start 属性的示例,请参阅“在特定点开始回放 - 基于时间的媒体”。 有关 start 属性的更多信息,请参阅:start属性。
示例
这个例子展示了一个书籍对象的带有多个Canvas 的 Manifest。 start 属性指定在第二个 Canvas 上加载 Manifest。 请注意,所有 Canvas 仍显示在查看器中,用户可以使用查看器导航控件导航回第一个 Canvas。
JSON-LD | 在 Mirador 中查看
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Multiple Related Images (Book, etc.)"
]
},
"start": {
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p2",
"type": "Canvas"
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p1",
"type": "Canvas",
"label": {
"en": [
"Blank page"
]
},
"height": 4613,
"width": 3204,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/page/p1/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/annotation/p0001-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f18/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"height": 4613,
"width": 3204,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f18",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p1"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p2",
"type": "Canvas",
"label": {
"en": [
"Frontispiece"
]
},
"width": 3186,
"height": 4612,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/page/p2/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/annotation/p0002-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f19/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3186,
"height": 4612,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f19",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p2"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p3",
"type": "Canvas",
"label": {
"en": [
"Title page"
]
},
"width": 3204,
"height": 4613,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/page/p3/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/annotation/p0003-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f20/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3204,
"height": 4613,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f20",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p3"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p4",
"type": "Canvas",
"label": {
"en": [
"Blank page"
]
},
"width": 3174,
"height": 4578,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/page/p4/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/annotation/p0004-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f21/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3174,
"height": 4578,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f21",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p4"
}
]
}
]
},
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p5",
"type": "Canvas",
"label": {
"en": [
"Bookplate"
]
},
"width": 3198,
"height": 4632,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/page/p5/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/annotation/p0005-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f22/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"width": 3198,
"height": 4632,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f22",
"type": "ImageService3",
"profile": "level1"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p5"
}
]
}
]
}
]
}