Skip to content

Commit 1b224cc

Browse files
authored
Merge pull request #1326 from IIIF/1242-description-summary
description -> summary (#1242)
2 parents 483dd36 + 680422f commit 1b224cc

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

source/api/presentation/3.0/index.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -200,22 +200,22 @@ Clients _SHOULD_ display the pairs in the order provided. Clients _SHOULD NOT_ u
200200
{"metadata": [ {"label": {"en": ["Creator"]}, "value": {"en": ["Anne Artist (1776-1824)"]}} ]}
201201
```
202202

203-
##### description
204-
A short textual description or summary of the resource that the property is attached to, intended to be conveyed to the user when the `metadata` fields are not being displayed.
203+
##### summary
204+
A short textual summary of this resource, intended to be conveyed to the user when the `metadata` pairs for the resource are not being displayed. This could be used as a snippet for item level search results, for limited screen real-estate environments, or an alternative in the user interface for when the `metadata` is not being rendered.
205205

206206
The value of the property _MUST_ be a JSON object, as described in the [languages][languages-prezi30] section.
207207

208-
* A Collection _SHOULD_ have one or more `description`s.<br/>
209-
Clients _SHOULD_ render `description` on a Collection.
210-
* A Manifest _SHOULD_ have one or more `description`s.
211-
Clients _SHOULD_ render `description` on a Manifest.
212-
* A Canvas _MAY_ have one or more `description`s.<br/>
213-
Clients _SHOULD_ render `description` on a Canvas.
214-
* Other resource types _MAY_ have one or more `description`.<br/>
215-
Clients _MAY_ render `description` on other resource types.
208+
* A Collection _SHOULD_ have one or more `summary`s.<br/>
209+
Clients _SHOULD_ render `summary` on a Collection.
210+
* A Manifest _SHOULD_ have one or more `summmary`s.
211+
Clients _SHOULD_ render `summary` on a Manifest.
212+
* A Canvas _MAY_ have one or more `summary`s.<br/>
213+
Clients _SHOULD_ render `summary` on a Canvas.
214+
* Other resource types _MAY_ have one or more `summary`s.<br/>
215+
Clients _MAY_ render `summary` on other resource types.
216216

217217
``` json-doc
218-
{"description": {"en": ["This is a summary of the object."]}}
218+
{"summary": {"en": ["This is a summary of the object."]}}
219219
```
220220

221221
##### thumbnail
@@ -832,7 +832,7 @@ Any of the properties in the API that can have multiple values _MUST_ always be
832832

833833
### 4.4. Language of Property Values
834834

835-
Language _MAY_ be associated with strings that are intended to be displayed to the user for the `label`, `description`, `attribution` fields, plus the `label` and `value` fields of the `metadata` construction.
835+
Language _MAY_ be associated with strings that are intended to be displayed to the user for the `label`, `summary`, `attribution` fields, plus the `label` and `value` fields of the `metadata` construction.
836836

837837
The values of these fields _MUST_ be JSON objects, with the keys being the [RFC 5646][rfc5646] language code for the language, or if the language is either not known or the string does not have a language, then the key must be `"@none"`. The associated values _MUST_ be arrays of strings, where each string is the content in the given language.
838838

@@ -862,7 +862,7 @@ Note that this does not apply to embedded textual bodies in Annotations, which u
862862

863863
### 4.5. HTML Markup in Property Values
864864

865-
Minimal HTML markup _MAY_ be included in the `description`, `attribution` properties and the `value` property of a `label`/`value` pair in `metadata`. It _MUST NOT_ be used in `label` or other properties. This is included to allow manifest creators to add links and simple formatting instructions to blocks of text. The content _MUST_ be well-formed XML and therefore must be wrapped in an element such as `p` or `span`. There _MUST NOT_ be whitespace on either side of the HTML string, and thus the first character in the string _MUST_ be a '<' character and the last character _MUST_ be '>', allowing a consuming application to test whether the value is HTML or plain text using these. To avoid a non-HTML string matching this, it is _RECOMMENDED_ that an additional whitespace character be added to the end of the value in situations where plain text happens to start and end this way.
865+
Minimal HTML markup _MAY_ be included in the `summary`, `attribution` properties and the `value` property of a `label`/`value` pair in `metadata`. It _MUST NOT_ be used in `label` or other properties. This is included to allow manifest creators to add links and simple formatting instructions to blocks of text. The content _MUST_ be well-formed XML and therefore must be wrapped in an element such as `p` or `span`. There _MUST NOT_ be whitespace on either side of the HTML string, and thus the first character in the string _MUST_ be a '<' character and the last character _MUST_ be '>', allowing a consuming application to test whether the value is HTML or plain text using these. To avoid a non-HTML string matching this, it is _RECOMMENDED_ that an additional whitespace character be added to the end of the value in situations where plain text happens to start and end this way.
866866

867867
In order to avoid HTML or script injection attacks, clients _MUST_ remove:
868868

@@ -875,7 +875,7 @@ In order to avoid HTML or script injection attacks, clients _MUST_ remove:
875875
Clients _SHOULD_ allow only `a`, `b`, `br`, `i`, `img`, `p`, `small`, `span`, `sub` and `sup` tags. Clients _MAY_ choose to remove any and all tags, therefore it _SHOULD NOT_ be assumed that the formatting will always be rendered.
876876

877877
``` json-doc
878-
{"description": {"en-latn": ["<p>Short summary <b>description</b></p>"]}}
878+
{"summary": {"en-latn": ["<p>Short <b>summary</b> of the resource.</p>"]}}
879879
```
880880

881881
### 4.6. Linked Data Context and Extensions
@@ -941,7 +941,7 @@ The example below includes only the Manifest-level information, however actual i
941941
{"label": {"en": ["Source"]},
942942
"value": {"@none": ["<span>From: <a href=\"http://example.org/db/1.html\">Some Collection</a></span>"]}}
943943
],
944-
"description": {"en": ["Book 1, written be Anne Author, published in Paris around 1400."]},
944+
"summary": {"en": ["Book 1, written be Anne Author, published in Paris around 1400."]},
945945
946946
"thumbnail": [{
947947
"id": "https://example.org/images/book1-page1/full/80,100/0/default.jpg",
@@ -1161,7 +1161,7 @@ The content resource is linked in the `body` of the Annotation. The content reso
11611161

11621162
Although it might seem redundant, the URI of the Canvas _MUST_ be repeated in the `target` field of the Annotation. This is to ensure consistency with Annotations that target only part of the resource, described in more detail below, and to remain faithful to the Web Annotation specification, where `target` is mandatory.
11631163

1164-
The type of the content resource _MUST_ be included, and _SHOULD_ be taken from the table listed under the definition of `type`. The format of the resource _SHOULD_ be included and, if so, _SHOULD_ be the media type that is returned when the resource is dereferenced. The content resources _MAY_ also have any of the other fields defined in this specification, including commonly `label`, `description`, `metadata`, `license` and `attribution`.
1164+
The type of the content resource _MUST_ be included, and _SHOULD_ be taken from the table listed under the definition of `type`. The format of the resource _SHOULD_ be included and, if so, _SHOULD_ be the media type that is returned when the resource is dereferenced. The content resources _MAY_ also have any of the other fields defined in this specification, including commonly `label`, `summary`, `metadata`, `license` and `attribution`.
11651165

11661166
Additional features of the [Web Annotation][webanno] data model _MAY_ also be used, such as selecting a segment of the Canvas or content resource, or embedding the comment or transcription within the Annotation. The use of these advanced features sometimes results in situations where the `target` is not a content resource, but instead a `SpecificResource`, a `Choice`, or other non-content object. Implementations should check the `type` of the resource and not assume that it is always content to be rendered.
11671167

@@ -1313,7 +1313,6 @@ The intended usage of collections is to allow clients to:
13131313
* Visualize lists or hierarchies of related manifests.
13141314
* Provide navigation through a list or hierarchy of available manifests.
13151315

1316-
13171316
An empty collection, with no member resources, is allowed but discouraged.
13181317

13191318
An example collection document:
@@ -1327,8 +1326,8 @@ An example collection document:
13271326
"id": "http://example.org/iiif/collection/top",
13281327
"type": "Collection",
13291328
"label": {"en": ["Top Level Collection for Example Organization"]},
1329+
"summary": {"en": ["Short summary of the Collection"]},
13301330
"behavior": ["top"],
1331-
"description": {"en": ["Description of Collection"]},
13321331
"attribution": {"en": ["Provided by Example Organization"]},
13331332
13341333
"items": []
@@ -1517,7 +1516,7 @@ It is possible to include Image API service descriptions within the manifest, an
15171516

15181517
__Descriptive and Rights Properties__
15191518

1520-
| | label | metadata | description | thumbnail | attribution | license | logo |
1519+
| | label | metadata | summary | thumbnail | attribution | license | logo |
15211520
| -------------- | ---------------------- | ---------------------------- | --------------------------- | ----------------------------| ---------------------- | ----------------------- | ------------------------ |
15221521
| Collection | ![required][icon-req] | ![recommended][icon-recc] | ![recommended][icon-recc] | ![recommended][icon-recc] | ![optional][icon-opt] | ![optional][icon-opt] | ![optional][icon-opt] |
15231522
| Manifest | ![required][icon-req] | ![recommended][icon-recc] | ![recommended][icon-recc] | ![recommended][icon-recc] | ![optional][icon-opt] | ![optional][icon-opt] | ![optional][icon-opt] |

0 commit comments

Comments
 (0)