Enforce non-repeatable fields in submission forms#10679
Enforce non-repeatable fields in submission forms#10679Wout-atmire wants to merge 1 commit intoDSpace:mainfrom
Conversation
|
The scope checking here
does mean that it wouldn't validate during workflow scope, but.. that applies to other checks like "is required" as well, so I was going to ask if we could extend this check but now I think that might be better as a separate PR, I'll open something later. |
|
Hi @Wout-atmire, |
|
This PR overlaps with the DSpace-CRIS feature being merged in #11964 / DSpace/dspace-angular#5145 as noted in DSpace/dspace-angular#4274 (comment). Therefore, I'm going to close this PR as this fix will be coming in during the DSpace-CRIS merger. Thanks @Wout-atmire for your contributions to DSpace. If we find this fix has not been fully achieved during the DSpace-CRIS merger, we can always reopen/revisit this PR at a later date. |
References
Description
Updated the Metadata validation to add an error when a non-repeatable visible input has multiple values.
To prevent imports from submitting items that have multiple values for non-repeatable input fields.
Instructions for Reviewers
List of changes in this PR:
MetadataValidation#validateto add error (error.validation.not.repeatable) when a non-repeatable visible input has multiple values.How to test:
dc.contributor.authornon-repeatable in thetraditionalpageoneform (dspace/config/submission-forms.xml)/import-external38940749withPubmed=> ImportComparing Gold-Standard Sanger Sequencing with Two Next-Generation Sequencing Platforms of HIV-1 Single Genome Amplicons.POST server/api/submission/workspaceitemsreques, verify that an error is returned:Checklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).pom.xml), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.