Skip to content

Commit

Permalink
Merge pull request #29 from impresso/update-canonical-formats
Browse files Browse the repository at this point in the history
Update schema to match canonical formats updates
  • Loading branch information
e-maud authored Feb 23, 2024
2 parents 708ba74 + cc935b8 commit f44c8ae
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions json/newspaper/contentitem.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
"type": "string",
"pattern": "^[a-z]{2}$"
},
"ro": {
"description": "Reading order index of the content item, for the table of contents view on the interface. If not defined, the CI number (after 'i' in the ID) should be used.",
"type": "integer"
},
"ft": {
"description": "the rebuilt fulltext",
"type": "string"
Expand Down
18 changes: 17 additions & 1 deletion json/newspaper/issue.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
"m": {
"description": "Metadata about the content item.",
"$ref": "#/definitions/metadata"
},
"c": {
"type": "array",
"description": "Coordinates of image-region corresponding to the content-item depending on its type (if `tp == image`).",
"minItems":4,
"items": {
"type": "integer"
}
}
},
"required": ["m"]
Expand Down Expand Up @@ -73,6 +81,10 @@
"type": "string",
"description": "Access rights. Three possible situations are defined:\n1. open public: access without NDA, user could redistribute (as defined per Terms of Use)\n2. open private: access without an NDA, user cannot redistribute (private/academic use only)\n3. closed : accessible only upon signing an NDA, user cannot redistribute",
"enum": ["open_public", "open_private", "closed"]
},
"iiif_manifest_uri": {
"type": "string",
"description": "URI for the issue's manifest in the IIIF Presentation API, if the corresponding IIIF server has one."
}
},
"required": ["id", "cdt", "i", "pp", "ar"],
Expand Down Expand Up @@ -106,7 +118,11 @@
},
"iiif_link": {
"type": "string",
"description": "IIIF image link, depending on content item type (if `tp == image`)"
"description": "IIIF image link, depending on content item type (if `tp == image`). Should follow the format: '{scheme}://{server}/{prefix}/{identifier}/info.json'."
},
"ro": {
"type": "integer",
"description": "Reading order index of the content item, for the table of contents view on the interface. If not defined, the CI number (after 'i' in the ID) should be used."
}
},
"required": ["id","pp", "tp"]
Expand Down
6 changes: 5 additions & 1 deletion json/newspaper/page.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
},
"iiif":{
"type": "string",
"description": "URI of the IIIF Manifest of the newspaper page image."
"description": "URI of the IIIF Manifest of the newspaper page image. Deprecated in favor of `iiif_img_base_uri` which should be used whenever it's defined, kept for backwards compatibility."
},
"iiif_img_base_uri":{
"type": "string",
"description": "Base of the IIIF image URI of the newspaper page image. Should follow format `{scheme}://{server}/{prefix}/{identifier}` and not include any suffix."
},
"cc":{
"type": "boolean",
Expand Down

0 comments on commit f44c8ae

Please sign in to comment.