Skip to content

Commit

Permalink
By default, all facets are active (previously none were)
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus committed Jan 10, 2024
1 parent b71ee0b commit 4aee314
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion oarepo_ui/resources/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ def search_available_sort_options(self, api_config, identity):
return api_config.search.sort_options

def search_active_facets(self, api_config, identity):
return list([])
"""Return list of active facets that will be displayed by search app.
By default, all facets are active but a repository can, for performance reasons,
display only a subset of facets.
"""
return list(self.search_available_facets(api_config, identity).keys())

def search_active_sort_options(self, api_config, identity):
return list(api_config.search.sort_options.keys())
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-ui
version = 5.0.96
version = 5.0.97
description = UI module for invenio 3.5+
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit 4aee314

Please sign in to comment.