@@ -99,6 +99,7 @@ export class RDMDepositForm extends Component {
99
99
100
100
render ( ) {
101
101
const {
102
+ config,
102
103
record,
103
104
files,
104
105
permissions,
@@ -109,40 +110,56 @@ export class RDMDepositForm extends Component {
109
110
groupsEnabled,
110
111
allowEmptyFiles,
111
112
} = this . props ;
113
+
112
114
const customFieldsUI = this . config . custom_fields . ui ;
115
+
113
116
return (
114
- < DepositFormApp
115
- config = { this . config }
117
+ < Overridable
118
+ id = "InvenioAppRdm.Deposit.RDMDepositForm.layout"
116
119
record = { record }
117
- preselectedCommunity = { preselectedCommunity }
118
120
files = { files }
121
+ config = { config }
119
122
permissions = { permissions }
123
+ preselectedCommunity = { preselectedCommunity }
124
+ filesLocked = { filesLocked }
125
+ recordRestrictionGracePeriod = { recordRestrictionGracePeriod }
126
+ allowRecordRestriction = { allowRecordRestriction }
127
+ groupsEnabled = { groupsEnabled }
128
+ allowEmptyFiles = { allowEmptyFiles }
129
+ customFieldsUI = { customFieldsUI }
120
130
>
121
- < Overridable
122
- id = "InvenioAppRdm.Deposit.FormFeedback.container"
123
- labels = { this . config . custom_fields . error_labels }
124
- fieldPath = "message"
131
+ < DepositFormApp
132
+ config = { this . config }
133
+ record = { record }
134
+ preselectedCommunity = { preselectedCommunity }
135
+ files = { files }
136
+ permissions = { permissions }
125
137
>
126
- < FormFeedback
127
- fieldPath = "message "
138
+ < Overridable
139
+ id = "InvenioAppRdm.Deposit.FormFeedback.container "
128
140
labels = { this . config . custom_fields . error_labels }
129
- />
130
- </ Overridable >
141
+ fieldPath = "message"
142
+ >
143
+ < FormFeedback
144
+ fieldPath = "message"
145
+ labels = { this . config . custom_fields . error_labels }
146
+ />
147
+ </ Overridable >
131
148
132
149
< Overridable
133
150
id = "InvenioAppRdm.Deposit.CommunityHeader.container"
134
151
record = { record }
135
152
>
136
153
{ ! this . hide_community_selection && (
137
- < CommunityHeader
138
- imagePlaceholderLink = "/static/images/square-placeholder.png"
139
- record = { record }
140
- />
154
+ < CommunityHeader
155
+ imagePlaceholderLink = "/static/images/square-placeholder.png"
156
+ record = { record }
157
+ />
141
158
) }
142
159
</ Overridable >
143
- < Container id = "rdm-deposit-form" className = "rel-mt-1" >
144
- < Grid className = "mt-25" >
145
- < Grid . Column mobile = { 16 } tablet = { 16 } computer = { 11 } >
160
+ < Container id = "rdm-deposit-form" className = "rel-mt-1" >
161
+ < Grid className = "mt-25" >
162
+ < Grid . Column mobile = { 16 } tablet = { 16 } computer = { 11 } >
146
163
< Overridable
147
164
id = "InvenioAppRdm.Deposit.AccordionFieldFiles.container"
148
165
record = { record }
@@ -153,6 +170,7 @@ export class RDMDepositForm extends Component {
153
170
includesPaths = { [ "files.enabled" ] }
154
171
active
155
172
label = { i18next . t ( "Files" ) }
173
+ id = "files-section"
156
174
>
157
175
{ this . noFiles && record . is_published && (
158
176
< div className = "text-align-center pb-10" >
@@ -197,6 +215,7 @@ export class RDMDepositForm extends Component {
197
215
] }
198
216
active
199
217
label = { i18next . t ( "Basic information" ) }
218
+ id = "basic-information-section"
200
219
>
201
220
< Overridable
202
221
id = "InvenioAppRdm.Deposit.PIDField.container"
@@ -254,7 +273,7 @@ export class RDMDepositForm extends Component {
254
273
fieldPath = "metadata.title"
255
274
recordUI = { record . ui }
256
275
required
257
- />
276
+ />
258
277
</ Overridable >
259
278
260
279
< Overridable
@@ -274,7 +293,7 @@ export class RDMDepositForm extends Component {
274
293
fieldPath = "metadata.creators"
275
294
>
276
295
< CreatibutorsField
277
- label = { i18next . t ( "Creators" ) }
296
+ label = { i18next . t ( "Creators" ) }
278
297
labelIcon = "user"
279
298
fieldPath = "metadata.creators"
280
299
roleOptions = { this . vocabularies . metadata . creators . role }
@@ -361,6 +380,7 @@ export class RDMDepositForm extends Component {
361
380
] }
362
381
active
363
382
label = { i18next . t ( "Recommended information" ) }
383
+ id = "recommended-information-section"
364
384
>
365
385
< Overridable
366
386
id = "InvenioAppRdm.Deposit.ContributorsField.container"
@@ -439,8 +459,8 @@ export class RDMDepositForm extends Component {
439
459
< Overridable
440
460
id = "InvenioAppRdm.Deposit.PublisherField.container"
441
461
fieldPath = "metadata.publisher"
442
- >
443
- < PublisherField fieldPath = "metadata.publisher" />
462
+ >
463
+ < PublisherField fieldPath = "metadata.publisher" />
444
464
</ Overridable >
445
465
</ AccordionField >
446
466
</ Overridable >
@@ -453,6 +473,7 @@ export class RDMDepositForm extends Component {
453
473
active
454
474
label = "Funding"
455
475
ui = { this . accordionStyle }
476
+ id = "funding-section"
456
477
>
457
478
< Overridable
458
479
id = "InvenioAppRdm.Deposit.FundingField.container"
@@ -545,6 +566,7 @@ export class RDMDepositForm extends Component {
545
566
includesPaths = { [ "metadata.identifiers" ] }
546
567
active
547
568
label = { i18next . t ( "Alternate identifiers" ) }
569
+ id = "alternate-identifiers-section"
548
570
>
549
571
< Overridable
550
572
id = "InvenioAppRdm.Deposit.IdentifiersField.container"
@@ -570,15 +592,16 @@ export class RDMDepositForm extends Component {
570
592
includesPaths = { [ "metadata.related_identifiers" ] }
571
593
active
572
594
label = { i18next . t ( "Related works" ) }
595
+ id = "related-works-section"
573
596
>
574
597
< Overridable
575
598
id = "InvenioAppRdm.Deposit.RelatedWorksField.container"
576
599
fieldPath = "metadata.related_identifiers"
577
600
vocabularies = { this . vocabularies }
578
601
>
579
- < RelatedWorksField
580
- fieldPath = "metadata.related_identifiers"
581
- options = { this . vocabularies . metadata . identifiers }
602
+ < RelatedWorksField
603
+ fieldPath = "metadata.related_identifiers"
604
+ options = { this . vocabularies . metadata . identifiers }
582
605
showEmptyValue
583
606
/>
584
607
</ Overridable >
@@ -592,6 +615,7 @@ export class RDMDepositForm extends Component {
592
615
includesPaths = { [ "metadata.references" ] }
593
616
active
594
617
label = { i18next . t ( "References" ) }
618
+ id = "references-section"
595
619
>
596
620
< Overridable
597
621
id = "InvenioAppRdm.Deposit.ReferencesField.container"
@@ -708,9 +732,10 @@ export class RDMDepositForm extends Component {
708
732
</ Sticky >
709
733
</ Grid . Column >
710
734
</ Ref >
711
- </ Grid >
712
- </ Container >
713
- </ DepositFormApp >
735
+ </ Grid >
736
+ </ Container >
737
+ </ DepositFormApp >
738
+ </ Overridable >
714
739
) ;
715
740
}
716
741
}
0 commit comments