Skip to content

Commit

Permalink
documents & holdings: remove default values on optional fields
Browse files Browse the repository at this point in the history
* Closes rero#2080.
* Closes rero#2310.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Aug 19, 2021
1 parent 0f94bb2 commit 8657bb8
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,12 @@
"harvested": {
"title": "Harvested",
"description": "Document is harvested or not, will disable record edition or similar.",
"type": "boolean",
"default": false
"type": "boolean"
},
"_draft": {
"title": "Draft",
"description": "Document is a draft record or not, will disable record validation.",
"type": "boolean",
"default": false,
"form": {
"templateOptions": {
"wrappers": [
Expand All @@ -301,7 +299,6 @@
"title": "Masked",
"type": "boolean",
"description": "A masked document is visible in the professional interface, but not in the public interface.",
"default": false,
"form": {
"templateOptions": {
"cssClass": "editor-title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"title": "Carrier type",
"type": "string",
"description": "Format of the storage medium and housing of a carrier in combination with the type of intermediation device required to view, play, run, etc., the content of a manifestation (MARC 338).",
"default": "other",
"enum": [
"rdact:1002",
"rdact:1003",
Expand Down Expand Up @@ -148,7 +147,6 @@
"title": "Carrier type",
"type": "string",
"description": "Format of the storage medium and housing of a carrier in combination with the type of intermediation device required to view, play, run, etc., the content of a manifestation (MARC 338).",
"default": "other",
"enum": [
"rdact:1021",
"rdact:1022",
Expand Down Expand Up @@ -244,7 +242,6 @@
"title": "Carrier type",
"type": "string",
"description": "Format of the storage medium and housing of a carrier in combination with the type of intermediation device required to view, play, run, etc., the content of a manifestation (MARC 338).",
"default": "other",
"enum": [
"rdact:1011",
"rdact:1012",
Expand Down Expand Up @@ -335,7 +332,6 @@
"title": "Carrier type",
"type": "string",
"description": "Format of the storage medium and housing of a carrier in combination with the type of intermediation device required to view, play, run, etc., the content of a manifestation (MARC 338).",
"default": "other",
"enum": [
"rdact:1030",
"other"
Expand Down Expand Up @@ -391,7 +387,6 @@
"title": "Carrier type",
"type": "string",
"description": "Format of the storage medium and housing of a carrier in combination with the type of intermediation device required to view, play, run, etc., the content of a manifestation (MARC 338).",
"default": "other",
"enum": [
"rdact:1032",
"rdact:1033",
Expand Down Expand Up @@ -487,7 +482,6 @@
"title": "Carrier type",
"type": "string",
"description": "Format of the storage medium and housing of a carrier in combination with the type of intermediation device required to view, play, run, etc., the content of a manifestation (MARC 338).",
"default": "other",
"enum": [
"rdact:1042",
"rdact:1043",
Expand Down Expand Up @@ -548,7 +542,6 @@
"title": "Carrier type",
"type": "string",
"description": "Format of the storage medium and housing of a carrier in combination with the type of intermediation device required to view, play, run, etc., the content of a manifestation (MARC 338).",
"default": "other",
"enum": [
"rdact:1045",
"rdact:1046",
Expand Down Expand Up @@ -629,7 +622,6 @@
"title": "Carrier type",
"type": "string",
"description": "Format of the storage medium and housing of a carrier in combination with the type of intermediation device required to view, play, run, etc., the content of a manifestation (MARC 338).",
"default": "other",
"enum": [
"rdact:1051",
"rdact:1052",
Expand Down Expand Up @@ -700,7 +692,6 @@
"title": "Carrier type",
"type": "string",
"description": "Format of the storage medium and housing of a carrier in combination with the type of intermediation device required to view, play, run, etc., the content of a manifestation (MARC 338).",
"default": "unspecified",
"enum": [
"unspecified"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"title": "Conference",
"description": "Mark as conference if the access point is directly at the conference name and not at the corporate body name",
"type": "boolean",
"default": false,
"form": {
"templateOptions": {
"itemCssClass": "col-lg-6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
"title": "Content type",
"description": "Is displayed as the text of the link.",
"type": "string",
"default": "fullText",
"enum": [
"poster",
"audio",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"source": {
"title": "Source",
"description": "Source of the subject, for instance rero.",
"default": "rero",
"type": "string"
},
"type": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,22 +468,19 @@
"title": "Maximum number of claims",
"description": "After this number, no further claims will be sent. 0 means that no claims will be sent.",
"type": "integer",
"minimum": 0,
"default": 3
"minimum": 0
},
"days_before_first_claim": {
"title": "Number of days before 1st claim",
"description": "If the item is not received, this defines the number of days from the expected date after which it is claimed.",
"type": "integer",
"minimum": 1,
"default": 7
"minimum": 1
},
"days_before_next_claim": {
"title": "Number of days before next claims",
"description": "If the item is not received, this defines the number of days from the last claim date after which it is claimed again.",
"type": "integer",
"minimum": 1,
"default": 7
"minimum": 1
},
"language": {
"title": "Language",
Expand Down

0 comments on commit 8657bb8

Please sign in to comment.