翻译者: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中查看

  1. {
  2. "@context": "http://iiif.io/api/presentation/3/context.json",
  3. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/manifest-continuous.json",
  4. "type": "Manifest",
  5. "label": {
  6. "gez": [
  7. "Ms. 21 Māzemurā Dāwit, Asmat [መዝሙረ ዳዊት]"
  8. ]
  9. },
  10. "behavior": [
  11. "continuous"
  12. ],
  13. "items": [
  14. {
  15. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s1",
  16. "type": "Canvas",
  17. "label": {
  18. "en": [
  19. "Section 1 [Recto]"
  20. ]
  21. },
  22. "width": 11368,
  23. "height": 1592,
  24. "items": [
  25. {
  26. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/s1/1",
  27. "type": "AnnotationPage",
  28. "items": [
  29. {
  30. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/s0001-image",
  31. "type": "Annotation",
  32. "motivation": "painting",
  33. "body": {
  34. "id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmd9_1300412_master/full/max/0/default.jpg",
  35. "type": "Image",
  36. "format": "image/jpeg",
  37. "width": 11368,
  38. "height": 1592,
  39. "service": [
  40. {
  41. "id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmd9_1300412_master",
  42. "type": "ImageService3",
  43. "profile": "level1"
  44. }
  45. ]
  46. },
  47. "target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s1"
  48. }
  49. ]
  50. }
  51. ]
  52. },
  53. {
  54. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s2",
  55. "type": "Canvas",
  56. "label": {
  57. "en": [
  58. "Section 2 [Recto]"
  59. ]
  60. },
  61. "width": 11608,
  62. "height": 1536,
  63. "items": [
  64. {
  65. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/s2/1",
  66. "type": "AnnotationPage",
  67. "items": [
  68. {
  69. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/s0002-image",
  70. "type": "Annotation",
  71. "motivation": "painting",
  72. "body": {
  73. "id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmft_1300418_master/full/max/0/default.jpg",
  74. "type": "Image",
  75. "format": "image/jpeg",
  76. "width": 11608,
  77. "height": 1536,
  78. "service": [
  79. {
  80. "id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmft_1300418_master",
  81. "type": "ImageService3",
  82. "profile": "level1"
  83. }
  84. ]
  85. },
  86. "target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s2"
  87. }
  88. ]
  89. }
  90. ]
  91. },
  92. {
  93. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s3",
  94. "type": "Canvas",
  95. "label": {
  96. "en": [
  97. "Section 3 [Recto]"
  98. ]
  99. },
  100. "width": 10576,
  101. "height": 1504,
  102. "items": [
  103. {
  104. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/s3/1",
  105. "type": "AnnotationPage",
  106. "items": [
  107. {
  108. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/s0003-image",
  109. "type": "Annotation",
  110. "motivation": "painting",
  111. "body": {
  112. "id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmgb_1300426_master/full/max/0/default.jpg",
  113. "type": "Image",
  114. "format": "image/jpeg",
  115. "width": 10576,
  116. "height": 1504,
  117. "service": [
  118. {
  119. "id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmgb_1300426_master",
  120. "type": "ImageService3",
  121. "profile": "level1"
  122. }
  123. ]
  124. },
  125. "target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s3"
  126. }
  127. ]
  128. }
  129. ]
  130. },
  131. {
  132. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s4",
  133. "type": "Canvas",
  134. "label": {
  135. "en": [
  136. "Section 4 [Recto]"
  137. ]
  138. },
  139. "width": 2488,
  140. "height": 1464,
  141. "items": [
  142. {
  143. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/s4/1",
  144. "type": "AnnotationPage",
  145. "items": [
  146. {
  147. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/s0004-image",
  148. "type": "Annotation",
  149. "motivation": "painting",
  150. "body": {
  151. "id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmhv_1300436_master/full/max/0/default.jpg",
  152. "type": "Image",
  153. "format": "image/jpeg",
  154. "width": 2488,
  155. "height": 1464,
  156. "service": [
  157. {
  158. "id": "https://iiif.io/api/image/3.0/example/reference/8c169124171e6b2253b698a22a938f07-21198-zz001hbmhv_1300436_master",
  159. "type": "ImageService3",
  160. "profile": "level1"
  161. }
  162. ]
  163. },
  164. "target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/s4"
  165. }
  166. ]
  167. }
  168. ]
  169. }
  170. ]
  171. }

使用案例 2:图书图像是每 2 页跨页

此清单代表一本书,图像为 2 页跨页(单个图像中的两个对开页)。使用该属性时,演示文稿客户端将强制执行一次一个视图并删除“书本视图”选项。
JSON-LD | 在Universal Viewer中查看 | 在Mirador中查看

  1. {
  2. "@context": "http://iiif.io/api/presentation/3/context.json",
  3. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/manifest-individuals.json",
  4. "type": "Manifest",
  5. "label": {
  6. "ca": [
  7. "[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."
  8. ]
  9. },
  10. "behavior": [
  11. "individuals"
  12. ],
  13. "items": [
  14. {
  15. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v1",
  16. "type": "Canvas",
  17. "label": {
  18. "en": [
  19. "inside cover; 1r"
  20. ]
  21. },
  22. "width": 3375,
  23. "height": 2250,
  24. "items": [
  25. {
  26. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/v1/1",
  27. "type": "AnnotationPage",
  28. "items": [
  29. {
  30. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/v0001-image",
  31. "type": "Annotation",
  32. "motivation": "painting",
  33. "body": {
  34. "id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-0-21198-zz00022840-1-master/full/max/0/default.jpg",
  35. "type": "Image",
  36. "format": "image/jpeg",
  37. "width": 3375,
  38. "height": 2250,
  39. "service": [
  40. {
  41. "id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-0-21198-zz00022840-1-master",
  42. "type": "ImageService3",
  43. "profile": "level1"
  44. }
  45. ]
  46. },
  47. "target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v1"
  48. }
  49. ]
  50. }
  51. ]
  52. },
  53. {
  54. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v2",
  55. "type": "Canvas",
  56. "label": {
  57. "en": [
  58. "2v, 3r"
  59. ]
  60. },
  61. "width": 3375,
  62. "height": 2250,
  63. "items": [
  64. {
  65. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/v2/1",
  66. "type": "AnnotationPage",
  67. "items": [
  68. {
  69. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/v0002-image",
  70. "type": "Annotation",
  71. "motivation": "painting",
  72. "body": {
  73. "id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-1-21198-zz00022882-1-master/full/max/0/default.jpg",
  74. "type": "Image",
  75. "format": "image/jpeg",
  76. "width": 3375,
  77. "height": 2250,
  78. "service": [
  79. {
  80. "id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-1-21198-zz00022882-1-master",
  81. "type": "ImageService3",
  82. "profile": "level1"
  83. }
  84. ]
  85. },
  86. "target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v2"
  87. }
  88. ]
  89. }
  90. ]
  91. },
  92. {
  93. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v3",
  94. "type": "Canvas",
  95. "label": {
  96. "en": [
  97. "3v, 4r"
  98. ]
  99. },
  100. "width": 3375,
  101. "height": 2250,
  102. "items": [
  103. {
  104. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/v3/1",
  105. "type": "AnnotationPage",
  106. "items": [
  107. {
  108. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/v0003-image",
  109. "type": "Annotation",
  110. "motivation": "painting",
  111. "body": {
  112. "id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-2-21198-zz000228b3-1-master/full/max/0/default.jpg",
  113. "type": "Image",
  114. "format": "image/jpeg",
  115. "width": 3375,
  116. "height": 2250,
  117. "service": [
  118. {
  119. "id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-2-21198-zz000228b3-1-master",
  120. "type": "ImageService3",
  121. "profile": "level1"
  122. }
  123. ]
  124. },
  125. "target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v3"
  126. }
  127. ]
  128. }
  129. ]
  130. },
  131. {
  132. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v4",
  133. "type": "Canvas",
  134. "label": {
  135. "en": [
  136. "4v, 5r"
  137. ]
  138. },
  139. "width": 3375,
  140. "height": 2250,
  141. "items": [
  142. {
  143. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/page/v4/1",
  144. "type": "AnnotationPage",
  145. "items": [
  146. {
  147. "id": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/annotation/v0004-image",
  148. "type": "Annotation",
  149. "motivation": "painting",
  150. "body": {
  151. "id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-3-21198-zz000228d4-1-master/full/max/0/default.jpg",
  152. "type": "Image",
  153. "format": "image/jpeg",
  154. "width": 3375,
  155. "height": 2250,
  156. "service": [
  157. {
  158. "id": "https://iiif.io/api/image/3.0/example/reference/85a96c630f077e6ac6cb984f1b752bbf-3-21198-zz000228d4-1-master",
  159. "type": "ImageService3",
  160. "profile": "level1"
  161. }
  162. ]
  163. },
  164. "target": "https://iiif.io/api/cookbook/recipe/0011-book-3-behavior/canvas/v4"
  165. }
  166. ]
  167. }
  168. ]
  169. }
  170. ]
  171. }

相关专题
o 书(最简单)
o 查看方向及其对导览的影响
[

](https://iiif.io/api/cookbook/recipe/0010-book-2-viewing-direction)