Skip to content

Commit

Permalink
updated landing page and facets
Browse files Browse the repository at this point in the history
  • Loading branch information
zotya committed Feb 10, 2023
1 parent 23d72d9 commit 3d04325
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions src/config/facets.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const facets = [
iconsFamily: 'Countries',
enableExact: true,
sortOn: 'value',
alwaysVisible: true,
alwaysVisible: false,
}),
multiTermFacet({
field: 'op_cluster',
Expand All @@ -122,6 +122,14 @@ const facets = [
showInFacetsList: false,
ignoreNLPWhenActive: true,
}),
multiTermFacet({
field: 'cluster_name',
isFilterable: false,
isMulti: true,
label: 'Websites',
iconsFamily: 'Sources',
alwaysVisible: true,
}),

multiTermFacet({
field: 'places',
Expand All @@ -131,6 +139,7 @@ const facets = [
blacklist: placesBlacklist,
show: 10000,
showAllOptions: true, // show all options (even if 0) in modal facet
alwaysVisible: true,
}),
multiTermFacet({
field: 'objectProvides',
Expand All @@ -141,13 +150,6 @@ const facets = [
//whitelist: objectProvidesWhitelist,
optionsFilter: 'typesForClustersOptionsFilter',
}),
multiTermFacet({
field: 'cluster_name',
isFilterable: false,
isMulti: true,
label: 'Sources',
iconsFamily: 'Sources',
}),
histogramFacet({
field: 'year',
// isFilterable: false,
Expand Down
2 changes: 1 addition & 1 deletion src/config/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default {
},
{
id: 'website',
title: 'Sources',
title: 'Websitess',
facetField: 'cluster_name',
sortOn: 'count',
sortOrder: 'desc',
Expand Down

0 comments on commit 3d04325

Please sign in to comment.