oarepo-runtime 1.5.62__py3-none-any.whl → 1.5.64__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- oarepo_runtime/records/systemfields/__init__.py +3 -1
- oarepo_runtime/services/facets/params.py +10 -3
- {oarepo_runtime-1.5.62.dist-info → oarepo_runtime-1.5.64.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.62.dist-info → oarepo_runtime-1.5.64.dist-info}/RECORD +8 -8
- {oarepo_runtime-1.5.62.dist-info → oarepo_runtime-1.5.64.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.62.dist-info → oarepo_runtime-1.5.64.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.5.62.dist-info → oarepo_runtime-1.5.64.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.62.dist-info → oarepo_runtime-1.5.64.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
from .icu import ICUField, ICUSortField, ICUSuggestField
|
2
2
|
from .mapping import MappingSystemFieldMixin, SystemFieldDumperExt
|
3
|
-
from .selectors import FirstItemSelector, PathSelector, Selector
|
3
|
+
from .selectors import FirstItemSelector, PathSelector, Selector, FilteredSelector, MultiSelector
|
4
4
|
from .synthetic import SyntheticSystemField
|
5
5
|
|
6
6
|
__all__ = (
|
@@ -13,4 +13,6 @@ __all__ = (
|
|
13
13
|
"PathSelector",
|
14
14
|
"Selector",
|
15
15
|
"FirstItemSelector",
|
16
|
+
"FilteredSelector",
|
17
|
+
"MultiSelector",
|
16
18
|
)
|
@@ -55,10 +55,17 @@ class GroupedFacetsParam(FacetsParam):
|
|
55
55
|
return None
|
56
56
|
|
57
57
|
def identity_facets(self, identity: Identity):
|
58
|
+
global_search_model = False
|
59
|
+
for model in current_app.config.get("GLOBAL_SEARCH_MODELS", []):
|
60
|
+
service_config = obj_or_import_string(model["service_config"])
|
61
|
+
if service_config == self.config:
|
62
|
+
global_search_model = True
|
63
|
+
|
58
64
|
if not self.facet_groups:
|
59
|
-
|
60
|
-
|
61
|
-
|
65
|
+
if global_search_model:
|
66
|
+
log.warning(
|
67
|
+
"No facet groups defined on the service config %s", type(self.config)
|
68
|
+
)
|
62
69
|
return self.facets
|
63
70
|
|
64
71
|
has_system_user_id = identity.id == system_user_id
|
@@ -55,7 +55,7 @@ oarepo_runtime/records/relations/base.py,sha256=XQpRt6-MfIKIClZ0IoGJr0GGl2Ru3Rcq
|
|
55
55
|
oarepo_runtime/records/relations/internal.py,sha256=OTp8iJqyl80sWDk0Q0AK42l6UsxZDABspVU_GwWza9o,1556
|
56
56
|
oarepo_runtime/records/relations/lookup.py,sha256=wi3jPfOedazOmhOMrgu50PUETc1jfSdpmjK0wvOFsEM,848
|
57
57
|
oarepo_runtime/records/relations/pid_relation.py,sha256=jKiwUEepJkOc0MRX3Etl5RQJw3t40rY7FOJCIPwOKmg,2932
|
58
|
-
oarepo_runtime/records/systemfields/__init__.py,sha256=
|
58
|
+
oarepo_runtime/records/systemfields/__init__.py,sha256=LL1R64RUakA_4r0IkTq9MtwqD5eV-AQaj5u96zkWa74,533
|
59
59
|
oarepo_runtime/records/systemfields/featured_file.py,sha256=MbSaYR130_o5S9gEOblnChq-PVK4xGPGpSCrzwG3cwc,1720
|
60
60
|
oarepo_runtime/records/systemfields/has_draftcheck.py,sha256=4JkMEefPLpqtPtlTgK3UT0KzTRgyw5_Qtkss2qcz5xk,1643
|
61
61
|
oarepo_runtime/records/systemfields/icu.py,sha256=sSGAgi5WhsAY4cCBL7-7nMpvHAuctpW8Y8vRExHQUfk,6738
|
@@ -87,7 +87,7 @@ oarepo_runtime/services/facets/enum.py,sha256=3LrShQIt9Vt5mkqUkc6FNxXCW5JEFdPwtG
|
|
87
87
|
oarepo_runtime/services/facets/facet_groups_names.py,sha256=RR8eeUmD8d9t966JqfhslZnILn_xDSfYlL0hjyJT92Y,468
|
88
88
|
oarepo_runtime/services/facets/max_facet.py,sha256=TZ4KMKKVJHzyU1KgNne4V7IMQPu1ALRpkz61Y0labrc,407
|
89
89
|
oarepo_runtime/services/facets/nested_facet.py,sha256=y0xgjx37HsSj2xW7URxNemYTksD8hpPs7kOEfIBw22k,971
|
90
|
-
oarepo_runtime/services/facets/params.py,sha256=
|
90
|
+
oarepo_runtime/services/facets/params.py,sha256=IiRKbR0jIm67hucj3fINosUAysZQSSKqhusEXXub-hA,4194
|
91
91
|
oarepo_runtime/services/facets/year_histogram.py,sha256=kdfwx1lgw4UmfjdaqqeElJCB8rAduMH2hy42aZjY37w,6257
|
92
92
|
oarepo_runtime/services/files/__init__.py,sha256=K8MStrEQf_BUhvzhwPTF93Hkhwrd1dtv35LDo7iZeTM,268
|
93
93
|
oarepo_runtime/services/files/components.py,sha256=x6Wd-vvkqTqB1phj2a6h42DNQksN8PuR2XKaOGoNHfw,2400
|
@@ -119,9 +119,9 @@ oarepo_runtime/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
119
119
|
oarepo_runtime/utils/functools.py,sha256=gKS9YZtlIYcDvdNA9cmYO00yjiXBYV1jg8VpcRUyQyg,1324
|
120
120
|
oarepo_runtime/utils/path.py,sha256=V1NVyk3m12_YLbj7QHYvUpE1wScO78bYsX1LOLeXDkI,3108
|
121
121
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
122
|
-
oarepo_runtime-1.5.
|
123
|
-
oarepo_runtime-1.5.
|
124
|
-
oarepo_runtime-1.5.
|
125
|
-
oarepo_runtime-1.5.
|
126
|
-
oarepo_runtime-1.5.
|
127
|
-
oarepo_runtime-1.5.
|
122
|
+
oarepo_runtime-1.5.64.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
123
|
+
oarepo_runtime-1.5.64.dist-info/METADATA,sha256=PUOOR2X2Q4nhO6-QdV8-O4b0R7SvNP06YXPP9aMfZdY,4720
|
124
|
+
oarepo_runtime-1.5.64.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
125
|
+
oarepo_runtime-1.5.64.dist-info/entry_points.txt,sha256=QrlXAKuPDVBinaSh_v3yO9_Nb9ZNmJCJ0VFcCW-z0Jg,327
|
126
|
+
oarepo_runtime-1.5.64.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
127
|
+
oarepo_runtime-1.5.64.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|