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 rero#2275.
* Closes rero#2388.
* Closes rero#2766.
* Closes rero#2659.
* Closes rero#2649.
* Closes rero#2625.
* Closes rero#2340.

⚠️  Elasticsearch reindexing.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed May 11, 2022
1 parent 36eaf99 commit 5fcd754
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 34 deletions.
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 @@ -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 @@ -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 @@ -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_identified_by-v0.0.1.json#/identifiedBy"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -713,7 +713,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
},
Expand Down Expand Up @@ -1089,7 +1089,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -1120,7 +1120,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -1151,7 +1151,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -1182,7 +1182,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -1213,7 +1213,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -1244,7 +1244,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -1275,7 +1275,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -1306,7 +1306,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -1337,7 +1337,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -1368,7 +1368,7 @@
"type": "keyword"
},
"status": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down Expand Up @@ -1681,10 +1681,19 @@
"type": {
"type": "keyword"
},
"value": {
"type": "keyword"
},
"note": {
"type": "text"
},
"qualifier": {
"type": "keyword"
},
"source": {
"type": "keyword"
},
"value": {
"status": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,13 @@
}
}
}
},
"form": {
"templateOptions": {
"wrappers": [
"card"
]
}
}
},
"order_contact": {
Expand Down

0 comments on commit 5fcd754

Please sign in to comment.