From 9a805dc0055a3f629e2dffa738564137226a37dd Mon Sep 17 00:00:00 2001 From: Mirek Simek Date: Tue, 24 Oct 2023 14:04:00 +0200 Subject: [PATCH] Using backends' sort options for default ordering (#100) --- oarepo_ui/resources/config.py | 2 ++ setup.cfg | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/oarepo_ui/resources/config.py b/oarepo_ui/resources/config.py index 95278b36..925ca84c 100644 --- a/oarepo_ui/resources/config.py +++ b/oarepo_ui/resources/config.py @@ -147,6 +147,8 @@ def search_app_config(self, identity, api_config, overrides={}, **kwargs): api_config, identity ), selected_options=self.search_active_sort_options(api_config, identity), + default_option=api_config.search.sort_default, + no_query_option=api_config.search.sort_default_no_query ), facets=self.search_facets_config( available_facets=self.search_available_facets(api_config, identity), diff --git a/setup.cfg b/setup.cfg index 577ffe5e..78fc32b0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-ui -version = 5.0.76 +version = 5.0.77 description = UI module for invenio 3.5+ long_description = file: README.md long_description_content_type = text/markdown