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
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:
define and configure some cms in two languages (e.g. en,de)
Edit both of the entries and save.![Screenshot 2023-11-07 at 11-36-17 FIS Universität Bamberg Edit CMS Metadata](https://github.com/4Science/dspace-angular/assets/33422716/1925390c-796c-459b-a7f0-07e48616ceb6)
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](https://github.com/4Science/dspace-angular/assets/33422716/a30fee3e-10e8-47a1-ae47-8d76116f500c)
visit entry again
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](https://github.com/4Science/dspace-angular/assets/33422716/1cf80df4-f175-4a7a-b602-dd0e76ad2957)
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.