We have seen this bug on DSpace 7.4 (and this may be on other versions too) when an item has a owning collection AND a mapped collection.
If both the owning and mapped collections each have their own theme defined in the config.*.yml we have noticed that the theme for the owning collection is always displayed, never the theme for the mapped collection.
To Reproduce
Steps to reproduce the behavior:
Create two collections in DSpace: CollectionA and CollectionB
In your config.*.yml add the following theme config (so default theme is dspace, except for one collection):
name:
uuid:
name: dspace
Set the following for an item:
Owning collection = CollectionA
Mapped collection = CollectionB
View the item in DSpace Angular and notice that the default dspace theme is displayed, not the specific CollectionB theme
Expected behavior
When an item can either use the default theme (that applies for it's owning collection) or the specific theme of its mapped collection. Then the specific theme of it's mapped collection should be prioritised.
So in the steps to reproduce, we would expect the specific theme of CollectionB would be displayed when you view the item.
Describe the bug
We have seen this bug on DSpace 7.4 (and this may be on other versions too) when an item has a owning collection AND a mapped collection.
If both the owning and mapped collections each have their own theme defined in the config.*.yml we have noticed that the theme for the owning collection is always displayed, never the theme for the mapped collection.
To Reproduce
Steps to reproduce the behavior:
Create two collections in DSpace: CollectionA and CollectionB
In your config.*.yml add the following theme config (so default theme is dspace, except for one collection):
Set the following for an item:
View the item in DSpace Angular and notice that the default dspace theme is displayed, not the specific CollectionB theme
Expected behavior
When an item can either use the default theme (that applies for it's owning collection) or the specific theme of its mapped collection. Then the specific theme of it's mapped collection should be prioritised.
So in the steps to reproduce, we would expect the specific theme of CollectionB would be displayed when you view the item.
Related work