You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
DSpace 7.4 (Tested with Firefox 107 and Chrome 108)
The values for input form metadata fields declared with the metadata.hide configuration are hidden on first load of a previously-saved workspace submission. This will confuse the user as they will not see the value that was previously entered (although it was saved to the database). To further confuse matters, if any input field is modified, and the "Save" button is selected, the initially hidden metadata values will appear.
To Reproduce
Steps to reproduce the behavior:
Declare a metadata field to be hidden via the appropriate metadata.hide parameter in local.cfg
Declare an input field for the metadata (e.g., onebox) in a testable input form in submission-forms.xml
Restart the UI and backend
Log in as a non-Admin user and start a new submission using the test input form
Enter a value for the "hidden" input field
Select "Save for later"
Verify that the database metadatavalue row is present (i.e., input value was saved)
Edit the previously-saved submission
The value for the input field will be blank
Edit any other input field (to enable the Save button)
Select Save
The previously entered value for the input field is now displayed
Expected behavior
Any input field values for metadata declared with metadata.hide should be viewable at all times during an in-progress submission. The metadata.hide declarations should only take effect once the item has been archived. This is the behaviour in DSpace 6.x and allows a "protected" metadata value to be initially entered by the submitter but subsequently hidden from view (to non-Administrators) once the item has been archived.
Related work
Link to any related tickets or PRs here.
The text was updated successfully, but these errors were encountered:
Something similar could happen when a local admin tries to add a hidden metadata. I think users with edit item permission should be able to see this metadata. I have just submitted a PR with this change.
Describe the bug
DSpace 7.4 (Tested with Firefox 107 and Chrome 108)
The values for input form metadata fields declared with the metadata.hide configuration are hidden on first load of a previously-saved workspace submission. This will confuse the user as they will not see the value that was previously entered (although it was saved to the database). To further confuse matters, if any input field is modified, and the "Save" button is selected, the initially hidden metadata values will appear.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Any input field values for metadata declared with metadata.hide should be viewable at all times during an in-progress submission. The metadata.hide declarations should only take effect once the item has been archived. This is the behaviour in DSpace 6.x and allows a "protected" metadata value to be initially entered by the submitter but subsequently hidden from view (to non-Administrators) once the item has been archived.
Related work
Link to any related tickets or PRs here.
The text was updated successfully, but these errors were encountered: