@eeacms/volto-globalsearch 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -2
- package/package.json +1 -1
- package/src/config/facets.js +11 -9
- package/src/config/filters.js +16 -1
- package/src/config/views.js +1 -1
- package/src/utils.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,21 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
### [1.0.
|
|
7
|
+
### [1.0.11](https://github.com/eea/volto-globalsearch/compare/1.0.10...1.0.11) - 14 February 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Fix nbame [Tiberiu Ichim - [`57ded54`](https://github.com/eea/volto-globalsearch/commit/57ded54282f232b8598fe9847bc7619ba970c541)]
|
|
12
|
+
- Updated facet names [Zoltan Szabo - [`798f43b`](https://github.com/eea/volto-globalsearch/commit/798f43bcbdbebac3a5566c58f90ee9e394d66354)]
|
|
13
|
+
- Whitespace [Tiberiu Ichim - [`f02946b`](https://github.com/eea/volto-globalsearch/commit/f02946bb03d942b879d0cab1d94ae835ad7207e3)]
|
|
14
|
+
- updated landing page and facets [Zoltan Szabo - [`3d04325`](https://github.com/eea/volto-globalsearch/commit/3d04325df54c5f502f951bc1573cd40eb385b435)]
|
|
15
|
+
### [1.0.10](https://github.com/eea/volto-globalsearch/compare/1.0.9...1.0.10) - 9 February 2023
|
|
8
16
|
|
|
9
17
|
#### :hammer_and_wrench: Others
|
|
10
18
|
|
|
11
|
-
-
|
|
19
|
+
- also show results if it's published but has no publish date [Zoltan Szabo - [`0fc61bc`](https://github.com/eea/volto-globalsearch/commit/0fc61bc59c7f26a3b3e5022aa74d6c278ec1724c)]
|
|
20
|
+
### [1.0.9](https://github.com/eea/volto-globalsearch/compare/1.0.8...1.0.9) - 7 February 2023
|
|
21
|
+
|
|
12
22
|
### [1.0.8](https://github.com/eea/volto-globalsearch/compare/1.0.7...1.0.8) - 27 January 2023
|
|
13
23
|
|
|
14
24
|
### [1.0.7](https://github.com/eea/volto-globalsearch/compare/1.0.6...1.0.7) - 24 January 2023
|
package/package.json
CHANGED
package/src/config/facets.js
CHANGED
|
@@ -111,7 +111,7 @@ const facets = [
|
|
|
111
111
|
iconsFamily: 'Countries',
|
|
112
112
|
enableExact: true,
|
|
113
113
|
sortOn: 'value',
|
|
114
|
-
alwaysVisible:
|
|
114
|
+
alwaysVisible: false,
|
|
115
115
|
}),
|
|
116
116
|
multiTermFacet({
|
|
117
117
|
field: 'op_cluster',
|
|
@@ -122,15 +122,24 @@ const facets = [
|
|
|
122
122
|
showInFacetsList: false,
|
|
123
123
|
ignoreNLPWhenActive: true,
|
|
124
124
|
}),
|
|
125
|
+
multiTermFacet({
|
|
126
|
+
field: 'cluster_name',
|
|
127
|
+
isFilterable: false,
|
|
128
|
+
isMulti: true,
|
|
129
|
+
label: 'Websites',
|
|
130
|
+
iconsFamily: 'Sources',
|
|
131
|
+
alwaysVisible: true,
|
|
132
|
+
}),
|
|
125
133
|
|
|
126
134
|
multiTermFacet({
|
|
127
135
|
field: 'places',
|
|
128
136
|
isFilterable: true,
|
|
129
137
|
isMulti: true,
|
|
130
|
-
label: 'Regions/Places
|
|
138
|
+
label: 'Regions/Places',
|
|
131
139
|
blacklist: placesBlacklist,
|
|
132
140
|
show: 10000,
|
|
133
141
|
showAllOptions: true, // show all options (even if 0) in modal facet
|
|
142
|
+
alwaysVisible: true,
|
|
134
143
|
}),
|
|
135
144
|
multiTermFacet({
|
|
136
145
|
field: 'objectProvides',
|
|
@@ -141,13 +150,6 @@ const facets = [
|
|
|
141
150
|
//whitelist: objectProvidesWhitelist,
|
|
142
151
|
optionsFilter: 'typesForClustersOptionsFilter',
|
|
143
152
|
}),
|
|
144
|
-
multiTermFacet({
|
|
145
|
-
field: 'cluster_name',
|
|
146
|
-
isFilterable: false,
|
|
147
|
-
isMulti: true,
|
|
148
|
-
label: 'Sources',
|
|
149
|
-
iconsFamily: 'Sources',
|
|
150
|
-
}),
|
|
151
153
|
histogramFacet({
|
|
152
154
|
field: 'year',
|
|
153
155
|
// isFilterable: false,
|
package/src/config/filters.js
CHANGED
|
@@ -7,7 +7,22 @@ export default {
|
|
|
7
7
|
() => ({
|
|
8
8
|
constant_score: {
|
|
9
9
|
filter: {
|
|
10
|
-
|
|
10
|
+
bool: {
|
|
11
|
+
should: [
|
|
12
|
+
{
|
|
13
|
+
bool: {
|
|
14
|
+
must_not: {
|
|
15
|
+
exists: {
|
|
16
|
+
field: 'issued',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
range: { 'issued.date': { lte: getTodayWithTime() } },
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
},
|
|
11
26
|
},
|
|
12
27
|
},
|
|
13
28
|
}),
|
package/src/config/views.js
CHANGED
package/src/utils.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// });
|
|
6
6
|
// return icons;
|
|
7
7
|
// };
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
export const build_runtime_mappings = (settings) => {
|
|
10
10
|
const clusters = settings.clusters
|
|
11
11
|
.map((cluster) => {
|
|
@@ -62,6 +62,7 @@ export function getTodayWithTime() {
|
|
|
62
62
|
].join('');
|
|
63
63
|
return output;
|
|
64
64
|
}
|
|
65
|
+
|
|
65
66
|
export const getGlobalsearchIconUrl = (contentTypeNormalize) => (
|
|
66
67
|
result,
|
|
67
68
|
config,
|