[DSpace-CRIS] Nested / Basic Hierarchical Metadata (Frontend)#5097
[DSpace-CRIS] Nested / Basic Hierarchical Metadata (Frontend)#5097FrancescoMolinaro wants to merge 12 commits intoDSpace:mainfrom
Conversation
…g and status reset of form
|
Hi @FrancescoMolinaro, |
|
Hi @MarieVerdonck, many thanks for the feedback, much appreciated. Regarding the issue you reported with the repeatable fields, I have found out by checking the history of development on the CRIS code base, that the repeatable fields are not supported inside the nested forms. For the inline-group configuration there is an additional limitation, the form fields must be all inside a single row, if you want to achieve a layout on multiple rows, it can be done via the style attribute, I have updated the description accordingly. About the regex issue instead I am not able to reproduce the problem with your configuration at #5097 (comment) (regex on single field inside nested form). regex.webmMight I please ask you to try again? It could be possible that the problem has been mitigated after aligning the PR with the latest changes from main. The second configuration instead is not possible, adding a regex on the top level metadata breaks the UI because is not an actual input, instead the regex should be configured on the fields inside the nested form. |








References
Fixes: DSpace/DSpace#11749
Require backend: DSpace/DSpace#11945
Description
This PR replace the standard group in submission with nested metdatata and UI forms.
The default group in submission will become a nested form and will be opened in a modal, to isolate the form and create connections between pairs of metadata.
Example of configuration:
A new group type called inline-group has been added to mantain the groups inside the main form and not in a modal, follows and example of config:
Please note that the inline-group as a limitation: all the fields needs to be configured inside one tag.
If you want to achieve a display on multiple rows, it can be don through styling, adding for example to each field the style tag as follows: <style>col-12</style>
This is a known limitation and should be added to the documentation as such.
**Please note that is not possible to add repeatable fields inside the nested forms, this would result in errors in the UI breaking the form. This is a known limitation and should be added to the documentation as such.
Input type specific configuration, as the regex, should be added inside the nested form configuration, as they don't work on input types which represent nested forms. (not an actual control in the form) **
Note: A custom layout option will follow in a different PR, wich will allow to group those metadata also on Item page (CRIS Layout)
Instructions for Reviewers
List of changes:
Added new inline-group field.
Adapted group field logic to use modal.
Adpated parsing and templates.
To test this feature follow the config and try to use the form groups in a submission.
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.