diff --git a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js index a9ef8d4c7..9301c305f 100644 --- a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js +++ b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js @@ -142,39 +142,6 @@ export class RDMDepositForm extends Component { - - - {this.noFiles && record.is_published && ( -
- {i18next.t("The record has no files.")} -
- )} - - - -
-
- - - - + + + + @@ -287,6 +272,7 @@ export class RDMDepositForm extends Component { > @@ -320,8 +306,47 @@ export class RDMDepositForm extends Component { })} /> + + + + + + + + + + + {!_isEmpty(customFieldsUI) && ( + + import(`@templates/custom_fields/${widget}.js`), + (widget) => + import(`@js/invenio_rdm_records/src/deposit/customFields`), + (widget) => import(`react-invenio-forms`), + ]} + fieldPathPrefix="custom_fields" + /> + + )} + - - - - - - lang !== null - )} // needed because dumped empty record from backend gives [null] - serializeSuggestions={(suggestions) => - suggestions.map((item) => ({ - text: item.title_l10n, - value: item.id, - key: item.id, - })) - } - /> - - + lang !== null + )} // needed because dumped empty record from backend gives [null] + serializeSuggestions={(suggestions) => + suggestions.map((item) => ({ + text: item.title_l10n, + value: item.id, + key: item.id, + })) + } + /> + @@ -515,25 +510,24 @@ export class RDMDepositForm extends Component { + + - @@ -541,64 +535,62 @@ export class RDMDepositForm extends Component { - + + {this.noFiles && record.is_published && ( +
+ {i18next.t("The record has no files.")} +
+ )} - +
- {!_isEmpty(customFieldsUI) && ( - - import(`@templates/custom_fields/${widget}.js`), - (widget) => - import(`@js/invenio_rdm_records/src/deposit/customFields`), - (widget) => import(`react-invenio-forms`), - ]} - fieldPathPrefix="custom_fields" - /> - - )}