Adding a publication/person relationship during submission, causes the relationship to be displayed twice #8584
Labels
bug
component: configurable entities
Related to Configurable Entities feature
component: submission
Related to configurable submission system
help wanted
Needs a volunteer to claim to move forward
Describe the bug
DSpace Version: DSpace 7.4
This looks to be an edge case, with a specific submission configuration situation (detailed below).
When adding a new author via lookup, all authors (including the newly added one) show up duplicated. They are stored (correctly) only once. Reloading the submission page fixes the display, until a new author is added via lookup.
To Reproduce
Steps to reproduce the behavior:
person
andpublication
submission-forms.xml
, add thedc.contributor.author
field twice, with different type-bind settings (e.g. required for one type, not required for another) as mentioned in the documentation. They need to be configured as relationship fields between theperson
andpublication
entitiesThe relationship will be added to the metadata and listed twice in the submission form.
Reloading the submission form, fixes the issue.
Expected behavior
The relationship should be added to the metadata and listed once in the submission form
Notes
I took a look at the server responses for the workspace items. The correct metadata is visible in
_embedded/item/metadata/dc.contributor.author
, but/sections/publicationBasicdata/dc.contributor.author
always contains each author twice, even after reloading:This is caused by
DescribeStep
.java, in thereadField(InProgressSubmission obj, SubmissionStepConfig config, DataDescribe data, DCInputSet inputConfig)
method it iterates over the submission configuration, adding metadata for each field it encounters in the form. The offending fielddc.contributor.author
is encountered twice, so the metadata values are added twiceThe text was updated successfully, but these errors were encountered: