Skip to content

Commit

Permalink
release v2.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
psaiz authored and zzacharo committed Jan 11, 2024
1 parent fb7d93e commit 27a7ef5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
Changes
=======

Version 2.8.3 (released 2024-01-11)

- search: add new config parameter for the default search view

Version 2.8.2 (released 2023-09-29)

- a11y: removed option role
Expand Down
2 changes: 1 addition & 1 deletion invenio_search_ui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,6 @@ def my_record_search():

from .ext import InvenioSearchUI

__version__ = "2.8.2"
__version__ = "2.8.3"

__all__ = ("__version__", "InvenioSearchUI")
4 changes: 3 additions & 1 deletion invenio_search_ui/searchconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ def generate(cls, options, **kwargs):
"layoutOptions": generator_object.layoutOptions,
"sortOrderDisabled": True,
"paginationOptions": generator_object.paginationOptions,
"defaultSortingOnEmptyQueryString": generator_object.defaultSortingOnEmptyQueryString,
"defaultSortingOnEmptyQueryString": (
generator_object.defaultSortingOnEmptyQueryString,
),
}
config.update(kwargs)
return config
Expand Down
8 changes: 4 additions & 4 deletions invenio_search_ui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ def sorted_options(sort_options):
return [
{
"title": v["title"],
"value": (
"-{0}".format(k) if v.get("default_order", "asc") == "desc" else k
),
"value": "-{0}".format(k) if v.get("default_order", "asc") == "desc" else k,
}
for k, v in sorted(sort_options.items(), key=lambda x: x[1].get("order", 0))
]
Expand Down Expand Up @@ -243,7 +241,9 @@ def generate(cls, options, **kwargs):
"aggs": generator_object.aggs,
"layoutOptions": generator_object.layoutOptions,
"paginationOptions": generator_object.paginationOptions,
"defaultSortingOnEmptyQueryString": generator_object.defaultSortingOnEmptyQueryString,
"defaultSortingOnEmptyQueryString": (
generator_object.defaultSortingOnEmptyQueryString
),
}
config.update(kwargs)
return config
Expand Down

0 comments on commit 27a7ef5

Please sign in to comment.