4Science / dspace-angular

Angular UI for DSpace and DSpace-CRIS. In the dspace-cris-7 branch you can find the extension to support DSpace-CRIS
BSD 3-Clause "New" or "Revised" License
13 stars 28 forks source link

metadatagroups with certain security configuration not possible #86

Open floriangantner opened 3 months ago

floriangantner commented 3 months ago

Describe the bug It's hard to save new created metadatagroups with some security level when the leading metadatagroup field has some authority. The choosen security level is not transferred to the Rest API.

To Reproduce Steps to reproduce the behavior:

Screenshot from 2024-04-23 15-01-16

Expected behavior We expect the security level to be set according to the values choosen on the edit-security-toggler

Screenshot from 2024-04-23 15-02-29

The PATCH-request to the database does not reflect on changes of the security-level of newly created elements of some metadatagroup and set the wrong security level.

When reloading the submission form the (non-set) security level values of the saved metadatavalues.

Screenshot from 2024-04-23 15-02-59

Related work Related to https://github.com/4Science/dspace-angular/blob/dspace-cris-2023_02_x/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.ts and it's addSecurityLevelToMetadata method.

The model.securityLevel contains the choosen value, but the model.value does not contain the security level.