From 42d9a71ce7e348f08cafd84bcda682f64fdc6ac3 Mon Sep 17 00:00:00 2001 From: Alex Ioannidis Date: Fri, 18 Oct 2024 12:15:40 +0200 Subject: [PATCH] communities-ui: fix subcommunities search and display --- .../semantic-ui/js/zenodo_rdm/src/horizon/community-item.js | 2 +- .../assets/semantic-ui/js/zenodo_rdm/src/horizon/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/horizon/community-item.js b/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/horizon/community-item.js index 3fd62a20..35247ef4 100644 --- a/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/horizon/community-item.js +++ b/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/horizon/community-item.js @@ -23,7 +23,7 @@ export class CommunityItem extends Component { -

{title}

+

{title}

{awardAcronym}
diff --git a/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/horizon/index.js b/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/horizon/index.js index 8de08b7b..c4a27cbd 100644 --- a/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/horizon/index.js +++ b/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/horizon/index.js @@ -7,10 +7,10 @@ const defaultProps = { isInitialSubmission: true, apiConfigs: { allCommunities: { - initialQueryState: { size: 5, page: 1, sortBy: "newest" }, + initialQueryState: { size: 6, page: 1, sortBy: "newest" }, searchApi: { axios: { - url: "/api/communities", + url: "/api/communities/eu/subcommunities", headers: { Accept: "application/vnd.inveniordm.v1+json" }, }, }, @@ -18,7 +18,7 @@ const defaultProps = { toggleText: "Search in all communities", }, myCommunities: { - initialQueryState: { size: 5, page: 1, sortBy: "bestmatch" }, + initialQueryState: { size: 6, page: 1, sortBy: "bestmatch" }, searchApi: { axios: { url: "/api/user/communities",