zenodo / zenodo-rdm

Zenodo, powered by InvenioRDM
https://zenodo.org
GNU General Public License v2.0
59 stars 28 forks source link

Record search result item styling for branded communities #771

Open slint opened 8 months ago

slint commented 8 months ago

Task overview


We have multiple records search result views where we want the records, depending on their communities, to display differently. We'll use the following terminology:

Branded community (BC): a community that has theme set (e.g. the EU community) Sub-community (SC): a community that has parent set (e.g. a project community like Horizon-ZEN or FAIRCORE4EOSC)

Frontpage and global search

Correct frontpage display

Image

Branded community frontpage (recent uploads) and records search

Correct branded community frontpage display

Image

Sub-community (or any community's) records search


Banner-styling has been commented out in the following places:

All views rendered using ReactSearchKit need to know (via config or similar) if they are being rendered in a BC context. This is important so that we know when to hide BC banner AND skip them in the "Part of" section.