Skip to content

Commit

Permalink
documents: store identifiers
Browse files Browse the repository at this point in the history
* Closes rero#1885.
* Improves json schema reference definitions.
* Closes rero#1873, last bullet point of rero#1873 (comment).
* Fixes startDate and endDate in the editor to accept integers between
  -9999 and 2050.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
  • Loading branch information
rerowep and rerowep committed May 14, 2021
1 parent 393e5e3 commit d44d789
Show file tree
Hide file tree
Showing 12 changed files with 497 additions and 413 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
}
},
"classificationPortion": {
"$ref": "#/ref_classificationPortion"
"$ref": "#/definitions/classificationPortion"
},
"subdivision": {
"$ref": "#/ref_subdivision"
"$ref": "#/definitions/subdivision"
},
"assigner": {
"$ref": "#/ref_assigner"
"$ref": "#/definitions/assigner"
}
}
},
Expand Down Expand Up @@ -79,13 +79,13 @@
}
},
"classificationPortion": {
"$ref": "#/ref_classificationPortion"
"$ref": "#/definitions/classificationPortion"
},
"subdivision": {
"$ref": "#/ref_subdivision"
"$ref": "#/definitions/subdivision"
},
"assigner": {
"$ref": "#/ref_assigner"
"$ref": "#/definitions/assigner"
}
}
},
Expand Down Expand Up @@ -120,13 +120,13 @@
}
},
"classificationPortion": {
"$ref": "#/ref_classificationPortion"
"$ref": "#/definitions/classificationPortion"
},
"subdivision": {
"$ref": "#/ref_subdivision"
"$ref": "#/definitions/subdivision"
},
"assigner": {
"$ref": "#/ref_assigner"
"$ref": "#/definitions/assigner"
}
}
},
Expand Down Expand Up @@ -162,16 +162,16 @@
}
},
"classificationPortion": {
"$ref": "#/ref_classificationPortion"
"$ref": "#/definitions/classificationPortion"
},
"subdivision": {
"$ref": "#/ref_subdivision"
"$ref": "#/definitions/subdivision"
},
"edition": {
"$ref": "#/ref_edition"
"$ref": "#/definitions/edition"
},
"assigner": {
"$ref": "#/ref_assigner"
"$ref": "#/definitions/assigner"
}
}
},
Expand Down Expand Up @@ -207,16 +207,16 @@
}
},
"classificationPortion": {
"$ref": "#/ref_classificationPortion"
"$ref": "#/definitions/classificationPortion"
},
"subdivision": {
"$ref": "#/ref_subdivision"
"$ref": "#/definitions/subdivision"
},
"edition": {
"$ref": "#/ref_edition"
"$ref": "#/definitions/edition"
},
"assigner": {
"$ref": "#/ref_assigner"
"$ref": "#/definitions/assigner"
}
}
},
Expand Down Expand Up @@ -251,13 +251,13 @@
}
},
"classificationPortion": {
"$ref": "#/ref_classificationPortion"
"$ref": "#/definitions/classificationPortion"
},
"subdivision": {
"$ref": "#/ref_subdivision"
"$ref": "#/definitions/subdivision"
},
"assigner": {
"$ref": "#/ref_assigner"
"$ref": "#/definitions/assigner"
}
}
},
Expand Down Expand Up @@ -292,13 +292,13 @@
}
},
"classificationPortion": {
"$ref": "#/ref_classificationPortion"
"$ref": "#/definitions/classificationPortion"
},
"subdivision": {
"$ref": "#/ref_subdivision"
"$ref": "#/definitions/subdivision"
},
"assigner": {
"$ref": "#/ref_assigner"
"$ref": "#/definitions/assigner"
}
}
},
Expand Down Expand Up @@ -387,13 +387,13 @@
}
},
"classificationPortion": {
"$ref": "#/ref_classificationPortion"
"$ref": "#/definitions/classificationPortion"
},
"subdivision": {
"$ref": "#/ref_subdivision"
"$ref": "#/definitions/subdivision"
},
"assigner": {
"$ref": "#/ref_assigner"
"$ref": "#/definitions/assigner"
}
}
}
Expand All @@ -403,37 +403,39 @@
"hide": true
}
},
"ref_classificationPortion": {
"title": "Notation",
"description": "Short alphanumeric string that serves as an identifier for a class",
"type": "string",
"minLength": 1,
"form": {
"placeholder": "Example: 001.012"
}
},
"ref_subdivision": {
"title": "Subdivisions",
"minItems": 0,
"type": "array",
"items": {
"title": "Subdivision",
"definitions": {
"classificationPortion": {
"title": "Notation",
"description": "Short alphanumeric string that serves as an identifier for a class",
"type": "string",
"minLength": 1,
"form": {
"placeholder": "Example: 001.012"
}
},
"subdivision": {
"title": "Subdivisions",
"minItems": 0,
"type": "array",
"items": {
"title": "Subdivision",
"type": "string",
"minLength": 1
}
},
"edition": {
"title": "Edition",
"description": "Used for imported records only. Edition of the classification, identified by a number, a date, or another textual designation.",
"type": "string",
"minLength": 1,
"form": {
"placeholder": "Example: Abridged edition, 22"
}
},
"assigner": {
"title": "Used for imported records only. Assigning agency.",
"type": "string",
"minLength": 1
}
},
"ref_edition": {
"title": "Edition",
"description": "Used for imported records only. Edition of the classification, identified by a number, a date, or another textual designation.",
"type": "string",
"minLength": 1,
"form": {
"placeholder": "Example: Abridged edition, 22"
}
},
"ref_assigner": {
"title": "Used for imported records only. Assigning agency.",
"type": "string",
"minLength": 1
}
}
Loading

0 comments on commit d44d789

Please sign in to comment.