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

patch site object in cms has siteobject with defaultProjection in response #56

Open floriangantner opened 8 months ago

floriangantner commented 8 months ago

Describe the bug The site object is usually returned in allLanguages Projection. https://github.com/4Science/dspace-angular/blob/30543a476d00d07311442d76b73d8cf5e75baa56/src/app/core/data/site-data.service.ts#L51

Using the cms metadata component to edit the site object returns some patch(ed) Object with the default projection. https://github.com/4Science/dspace-angular/blob/30543a476d00d07311442d76b73d8cf5e75baa56/src/app/admin/edit-cms-metadata/edit-cms-metadata.component.ts#L78

To Reproduce Steps to reproduce the behavior:

  1. define and configure some cms in two languages (e.g. en,de)

  2. Edit both of the entries and save. Screenshot 2023-11-07 at 11-36-17 FIS Universität Bamberg Edit CMS Metadata

  3. You are returned to the dropdown of selected cms metadata. Screenshot 2023-11-07 at 11-36-27 FIS Universität Bamberg Edit CMS Metadata

  4. visit entry again

  5. the entry in the none-main language (=de) should be empty Screenshot 2023-11-07 at 11-36-33 FIS Universität Bamberg Edit CMS Metadata

  6. Administers which might click the save button loose the previously saved data.

Expected behavior We expect the site object to be returned correctly with all languages or to be reloaded after the change

Related work Link to any related tickets or PRs here.