dspace-angular icon indicating copy to clipboard operation
dspace-angular copied to clipboard

Cannot add new metadata values when onebox field uses a controlled vocabulary

Open alanorth opened this issue 1 year ago • 1 comments

Describe the bug On current DSpace 7.6.2-SNAPSHOT and 8.0-SNAPSHOT it is not possible to add custom metadata values during submission when a field uses a onebox with a controlled vocabulary. It seems to only happen when the field is marked as being not repeatable, though there are other issues with the autosave that can clear these values too.

Short demonstration:

Screencast from 2024-03-01 15-13-05.webm

To Reproduce Steps to reproduce the behavior:

  1. Configure submission-forms.xml with a field configured to use an external vocabulary with a onebox that is not repeatable, for example:
            <row>
                <field>
                    <dc-schema>dc</dc-schema>
                    <dc-element>subject</dc-element>
                    <dc-qualifier></dc-qualifier>
                    <repeatable>false</repeatable>
                    <label>Subject Keywords 2</label>
                    <input-type>onebox</input-type>
                    <hint>Enter appropriate subject keywords or phrases.</hint>
                    <required></required>
                    <vocabulary>srsc</vocabulary>
                </field>
            </row>
  1. Enter the minimum bibliographic information, including a custom value in the onebox configured above
  2. Save the submission
  3. View the metadata for the item in your workspace
  4. The custom subject value entered above is missing

alanorth avatar Mar 01 '24 12:03 alanorth

Needs a volunteer to investigate. Pulling over to the 7.6.x board just to keep it with other bugs

tdonohue avatar Mar 01 '24 14:03 tdonohue