Skip to content

Commit

Permalink
rdm search options (#252)
Browse files Browse the repository at this point in the history
* rdm search options

* rdm search options

---------

Co-authored-by: Alzbeta Pokorna <[email protected]>
  • Loading branch information
Alzpeta and Alzbeta Pokorna authored Feb 12, 2025
1 parent 66c46c8 commit e81ffd0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions oarepo_runtime/services/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from oarepo_runtime.records.systemfields.icu import ICUSuggestField

from .facets.params import GroupedFacetsParam

from invenio_rdm_records.services.config import RDMSearchOptions, RDMSearchDraftsOptions
try:
from invenio_i18n import get_locale
except ImportError:
Expand Down Expand Up @@ -188,7 +188,14 @@ def __get__(self, instance, owner):
}
return ret


class I18nSearchOptions(SearchOptions):
extra_sort_options = {}
record_cls = None

class I18nRDMSearchOptions(RDMSearchOptions):
extra_sort_options = {}
record_cls = None

class I18nRDMDraftsSearchOptions(RDMSearchDraftsOptions):
extra_sort_options = {}
record_cls = None
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-runtime
version = 1.5.91
version = 1.5.92
description = A set of runtime extensions of Invenio repository
authors = Alzbeta Pokorna
readme = README.md
Expand Down

0 comments on commit e81ffd0

Please sign in to comment.