@@ -90,6 +90,9 @@ export class RDMDepositForm extends Component {
90
90
this . noFiles = true ;
91
91
}
92
92
93
+ this . sectionsConfig = this . config . sections_config ;
94
+ this . severityChecks = this . config . severity_checks ;
95
+
93
96
// hide community header for branded communities
94
97
this . hide_community_selection = this . config . hide_community_selection || false ;
95
98
}
@@ -115,7 +118,6 @@ export class RDMDepositForm extends Component {
115
118
...section ,
116
119
id : section . section . toLowerCase ( ) . replace ( / \s + / g, "-" ) + "-section" ,
117
120
} ) ) ;
118
- const sectionsConfig = this . config . sections_config ;
119
121
120
122
return (
121
123
< Overridable
@@ -147,7 +149,7 @@ export class RDMDepositForm extends Component {
147
149
< FormFeedback
148
150
fieldPath = "message"
149
151
labels = { this . config . custom_fields . error_labels }
150
- sectionsConfig = { sectionsConfig }
152
+ sectionsConfig = { this . sectionsConfig }
151
153
/>
152
154
</ Overridable >
153
155
@@ -172,7 +174,8 @@ export class RDMDepositForm extends Component {
172
174
noFiles = { this . noFiles }
173
175
>
174
176
< AccordionField
175
- includesPaths = { sectionsConfig [ "files-section" ] }
177
+ includesPaths = { this . sectionsConfig [ "files-section" ] }
178
+ severityChecks = { this . severityChecks }
176
179
active
177
180
label = { i18next . t ( "Files" ) }
178
181
id = "files-section"
@@ -208,7 +211,8 @@ export class RDMDepositForm extends Component {
208
211
vocabularies = { this . vocabularies }
209
212
>
210
213
< AccordionField
211
- includesPaths = { sectionsConfig [ "basic-information-section" ] }
214
+ includesPaths = { this . sectionsConfig [ "basic-information-section" ] }
215
+ severityChecks = { this . severityChecks }
212
216
active
213
217
label = { i18next . t ( "Basic information" ) }
214
218
id = "basic-information-section"
@@ -366,7 +370,10 @@ export class RDMDepositForm extends Component {
366
370
record = { record }
367
371
>
368
372
< AccordionField
369
- includesPaths = { sectionsConfig [ "recommended-information-section" ] }
373
+ includesPaths = {
374
+ this . sectionsConfig [ "recommended-information-section" ]
375
+ }
376
+ severityChecks = { this . severityChecks }
370
377
label = { i18next . t ( "Recommended information" ) }
371
378
id = "recommended-information-section"
372
379
>
@@ -457,7 +464,8 @@ export class RDMDepositForm extends Component {
457
464
ui = { this . accordionStyle }
458
465
>
459
466
< AccordionField
460
- includesPaths = { sectionsConfig [ "funding-section" ] }
467
+ includesPaths = { this . sectionsConfig [ "funding-section" ] }
468
+ severityChecks = { this . severityChecks }
461
469
active
462
470
label = "Funding"
463
471
ui = { this . accordionStyle }
@@ -551,7 +559,8 @@ export class RDMDepositForm extends Component {
551
559
vocabularies = { this . vocabularies }
552
560
>
553
561
< AccordionField
554
- includesPaths = { sectionsConfig [ "alternate-identifiers-section" ] }
562
+ includesPaths = { this . sectionsConfig [ "alternate-identifiers-section" ] }
563
+ severityChecks = { this . severityChecks }
555
564
active
556
565
label = { i18next . t ( "Alternate identifiers" ) }
557
566
id = "alternate-identifiers-section"
@@ -577,7 +586,8 @@ export class RDMDepositForm extends Component {
577
586
vocabularies = { this . vocabularies }
578
587
>
579
588
< AccordionField
580
- includesPaths = { sectionsConfig [ "related-works-section" ] }
589
+ includesPaths = { this . sectionsConfig [ "related-works-section" ] }
590
+ severityChecks = { this . severityChecks }
581
591
active
582
592
label = { i18next . t ( "Related works" ) }
583
593
id = "related-works-section"
@@ -600,7 +610,8 @@ export class RDMDepositForm extends Component {
600
610
vocabularies = { this . vocabularies }
601
611
>
602
612
< AccordionField
603
- includesPaths = { sectionsConfig [ "references-section" ] }
613
+ includesPaths = { this . sectionsConfig [ "references-section" ] }
614
+ severityChecks = { this . severityChecks }
604
615
active
605
616
label = { i18next . t ( "References" ) }
606
617
id = "references-section"
0 commit comments