Skip to content

Commit

Permalink
data: reorganisation of json schema.
Browse files Browse the repository at this point in the history
Reorganizes `numbering_script` from `common/languages-v0.0.1.json`
to `documents/document_series-v0.0.1.json`.

* closes #1147

Co-Authored-by: Peter Weber <[email protected]>
  • Loading branch information
rerowep and rerowep committed Aug 17, 2020
1 parent 760167e commit eaf2d93
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 34 deletions.
32 changes: 0 additions & 32 deletions rero_ils/jsonschemas/common/languages-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2560,37 +2560,5 @@
"$ref": "#/language_script_code"
}
}
},
"numbering_script": {
"title": "Values",
"type": "object",
"propertiesOrder": [
"language",
"value"
],
"required": [
"value"
],
"form": {
"templateOptions": {
"cssClass": "row"
}
},
"properties": {
"value": {
"title": "Value",
"type": "string",
"minLength": 1,
"form": {
"placeholder": "Example: vol.3",
"templateOptions": {
"cssClass": "col-lg-6"
}
}
},
"language": {
"$ref": "#/language_script_code"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"minItems": 1,
"items": {
"title": "Numbering",
"$ref": "https://ils.rero.ch/schemas/common/languages-v0.0.1.json#/numbering_script"
"numbering_script": {
"$ref": "#/definitions/numbering_script"
}
}
},
"subseriesStatement": {
Expand Down Expand Up @@ -66,7 +68,9 @@
"minItems": 1,
"items": {
"title": "Numbering",
"$ref": "https://ils.rero.ch/schemas/common/languages-v0.0.1.json#/numbering_script"
"numbering_script": {
"$ref": "#/definitions/numbering_script"
}
}
}
}
Expand All @@ -86,5 +90,39 @@
"cssClass": "editor-title"
}
}
},
"definitions": {
"numbering_script": {
"title": "Values",
"type": "object",
"propertiesOrder": [
"language",
"value"
],
"required": [
"value"
],
"form": {
"templateOptions": {
"cssClass": "row"
}
},
"properties": {
"value": {
"title": "Value",
"type": "string",
"minLength": 1,
"form": {
"placeholder": "Example: vol.3",
"templateOptions": {
"cssClass": "col-lg-6"
}
}
},
"language": {
"$ref": "https://ils.rero.ch/schemas/common/languages-v0.0.1.json#/language_script_code"
}
}
}
}
}

0 comments on commit eaf2d93

Please sign in to comment.