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
Records with a BC as the default:
MUST display the BC's banner
MUST use the BC theme colors for the title and date label
MUST NOT show the BC in the "Part of" section
Records with an SC as the default, or no default community set:
MUST display using the normal site theme
MUST list all their communities in the "Part of" section (even BCs that are not set as default)
Correct frontpage display
Branded community frontpage (recent uploads) and records search
Records with a BC as the default:
MUST NOT display the BC's banner
MUST use the BC theme colors for the title and date label
MUST NOT show the BC in the "Part of" section
Records with an SC as the default, or no default community set:
MUST NOT display the BC's banner
MUST use the BC theme colors for the title and date label
MUST NOT show the BC in the "Part of" section
Correct branded community frontpage display
Sub-community (or any community's) records search
TBD by Lars
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.
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 hastheme
set (e.g. the EU community)Sub-community (SC)
: a community that hasparent
set (e.g. a project community like Horizon-ZEN or FAIRCORE4EOSC)Frontpage and global search
BC
as the default:BC
's bannerBC
theme colors for the title and date labelBC
in the "Part of" sectionSC
as the default, or no default community set:BC
s that are not set as default)Correct frontpage display
Branded community frontpage (recent uploads) and records search
BC
as the default:BC
's bannerBC
theme colors for the title and date labelBC
in the "Part of" sectionSC
as the default, or no default community set:BC
's bannerBC
theme colors for the title and date labelBC
in the "Part of" sectionCorrect branded community frontpage display
Sub-community (or any community's) records search
Banner-styling has been commented out in the following places:
zenodo-rdm
invenio-app-rdm
All views rendered using
ReactSearchKit
need to know (via config or similar) if they are being rendered in aBC
context. This is important so that we know when to hideBC
banner AND skip them in the "Part of" section.