Skip to content

Commit

Permalink
documents: add identifiedBy on some fields
Browse files Browse the repository at this point in the history
Fields involved:
supplement, supplementTo, otherEdition, otherPhysicalFormat,
issuedWith, precededBy, succeededBy, relatedTo, hasReproduction,
reproductionOf, work_access_point

* Removes templateOptions on the country jsonschema.
* Fixes typo on the type entry (lower case t).
* Adds the card wrapper on vendors jsonschema.
* Closes #2275.
* Closes #2388.
* Closes #2766.
* Closes #2659.
* Closes #2649.
* Closes #2625.
* Closes #2340.

⚠️  Elasticsearch reindexing.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Jun 9, 2022
1 parent 72f7060 commit 2be3812
Show file tree
Hide file tree
Showing 17 changed files with 101 additions and 68 deletions.
4 changes: 2 additions & 2 deletions rero_ils/jsonschemas/common/languages-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2541,7 +2541,7 @@
],
"form": {
"templateOptions": {
"itemCssClass": "col-lg-6"
"itemCssClass": "col-lg-12"
},
"hide": true
}
Expand All @@ -2568,7 +2568,7 @@
"minLength": 1,
"form": {
"templateOptions": {
"itemCssClass": "col-lg-6"
"itemCssClass": "col-lg-12"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"other"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "rdact:1002",
Expand Down Expand Up @@ -160,7 +160,7 @@
"other"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "rdact:1021",
Expand Down Expand Up @@ -254,7 +254,7 @@
"other"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "rdact:1011",
Expand Down Expand Up @@ -337,7 +337,7 @@
"other"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "rdact:1030",
Expand Down Expand Up @@ -400,7 +400,7 @@
"other"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "rdact:1032",
Expand Down Expand Up @@ -488,7 +488,7 @@
"other"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "rdact:1042",
Expand Down Expand Up @@ -552,7 +552,7 @@
"other"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "rdact:1045",
Expand Down Expand Up @@ -630,7 +630,7 @@
"other"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "rdact:1051",
Expand Down Expand Up @@ -696,7 +696,7 @@
"unspecified"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "unspecified",
Expand Down Expand Up @@ -752,7 +752,7 @@
"other"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "rdaco:1002",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,18 @@
}
},
"identifiedBy": {
"$ref": "https://bib.rero.ch/schemas/documents/document_identifier-v0.0.1.json#/identifier_contribution"
"allOf": [
{
"form": {
"templateOptions": {
"itemCssClass": "col-12"
}
}
},
{
"$ref": "https://bib.rero.ch/schemas/documents/document_identifier-v0.0.1.json#/identifier_contribution"
}
]
}
},
"form": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@
"type": "object",
"additionalProperties": false,
"propertiesOrder": [
"label"
"label",
"identifiedBy"
],
"required": [
"label"
Expand All @@ -252,6 +253,9 @@
"label": {
"type": "string",
"minLength": 1
},
"identifiedBy": {
"$ref": "https://bib.rero.ch/schemas/documents/document_identified_by-v0.0.1.json#/identifiedBy"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"noInfo"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "resource",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"bf:Topic"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "bf:Topic",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@
"minLength": 1,
"form": {
"placeholder": "Examples: LCCN, PMID, DNB",
"hide": true,
"hideExpression": "field.parent.model && field.parent.model.type !== 'bf:Local'",
"expressionProperties": {
"templateOptions.required": "field.parent.model && field.parent.model.type === 'bf:Local'"
},
"templateOptions": {
"itemCssClass": "col-lg-6"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"value",
"source"
],
"required": [
"type",
"value"
],
"properties": {
"type": {
"$ref": "#/definitions/type_main"
Expand Down Expand Up @@ -35,6 +39,10 @@
"value",
"source"
],
"required": [
"type",
"value"
],
"properties": {
"type": {
"$ref": "#/definitions/type_contribution"
Expand Down Expand Up @@ -89,9 +97,6 @@
],
"templateOptions": {
"itemCssClass": "col-lg-4"
},
"expressionProperties": {
"templateOptions.required": "true"
}
}
},
Expand Down Expand Up @@ -125,9 +130,6 @@
],
"templateOptions": {
"itemCssClass": "col-lg-4"
},
"expressionProperties": {
"templateOptions.required": "true"
}
}
},
Expand All @@ -138,9 +140,6 @@
"form": {
"templateOptions": {
"itemCssClass": "col-lg-4"
},
"expressionProperties": {
"templateOptions.required": "true"
}
}
},
Expand All @@ -156,7 +155,7 @@
"expressionProperties": {
"templateOptions.required": "true"
},
"hideExpression": "field.parent.model && field.parent.model.type !== 'bf:Local'"
"hideExpression": "!field.parent.model || (field.parent.model && field.parent.model.type !== 'bf:Local')"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"target_understanding_caregivers"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "target_understanding_children",
Expand Down Expand Up @@ -230,7 +230,7 @@
"target_school_master"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "target_school_harmos1",
Expand Down Expand Up @@ -335,7 +335,7 @@
"pegi_18"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "pegi_3",
Expand Down Expand Up @@ -403,7 +403,7 @@
"from the age of 2"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "from the age of 18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
],
"templateOptions": {
"itemcCssClass": "col-lg-4"
"itemcCssClass": "col"
}
}
},
Expand Down Expand Up @@ -94,7 +94,18 @@
}
},
"country": {
"$ref": "https://bib.rero.ch/schemas/common/countries-v0.0.1.json#/country"
"allOf": [
{
"form": {
"templateOptions": {
"itemCssClass": "col-lg-4"
}
}
},
{
"$ref": "https://bib.rero.ch/schemas/common/countries-v0.0.1.json#/country"
}
]
},
"canton": {
"$ref": "https://bib.rero.ch/schemas/common/cantons-v0.0.1.json#/canton"
Expand All @@ -114,7 +125,18 @@
}
},
"identifiedBy": {
"$ref": "https://bib.rero.ch/schemas/documents/document_identifier-v0.0.1.json#/identifier_contribution"
"allOf": [
{
"form": {
"templateOptions": {
"itemCssClass": "col-lg-8"
}
}
},
{
"$ref": "https://bib.rero.ch/schemas/documents/document_identifier-v0.0.1.json#/identifier_contribution"
}
]
}
},
"form": {
Expand Down Expand Up @@ -191,11 +213,6 @@
"itemCssClass": "col-lg-8"
}
}
},
"form": {
"templateOptions": {
"itemCssClass": "col-lg-6"
}
}
},
"form": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"Other"
],
"form": {
"Type": "selectWithSort",
"type": "selectWithSort",
"options": [
{
"label": "Linear scale",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,6 @@
]
},
"form": {
"hide": true,
"templateOptions": {
"cssClass": "w-md-50"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"form_subdivision",
"medium_of_performance_for_music",
"arranged_statement_for_music",
"key_for_music"
"key_for_music",
"identifiedBy"
],
"required": [
"title"
Expand Down Expand Up @@ -142,6 +143,9 @@
"title": "Key (music)",
"type": "string",
"minLength": 1
},
"identifiedBy": {
"$ref": "https://bib.rero.ch/schemas/documents/document_identifier-v0.0.1.json#/identifier_contribution"
}
}
}
Expand Down
Loading

0 comments on commit 2be3812

Please sign in to comment.