@eeacms/volto-globalsearch 1.0.8 → 1.0.10

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 CHANGED
@@ -4,11 +4,15 @@ 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.8](https://github.com/eea/volto-globalsearch/compare/1.0.7...1.0.8) - 27 January 2023
7
+ ### [1.0.10](https://github.com/eea/volto-globalsearch/compare/1.0.9...1.0.10) - 9 February 2023
8
8
 
9
9
  #### :hammer_and_wrench: Others
10
10
 
11
- - updates on facets & landing page [Zoltan Szabo - [`9d15ee5`](https://github.com/eea/volto-globalsearch/commit/9d15ee5dd40ac47a9c3080e171ab24caf44c28c9)]
11
+ - also show results if it's published but has no publish date [Zoltan Szabo - [`0fc61bc`](https://github.com/eea/volto-globalsearch/commit/0fc61bc59c7f26a3b3e5022aa74d6c278ec1724c)]
12
+ ### [1.0.9](https://github.com/eea/volto-globalsearch/compare/1.0.8...1.0.9) - 7 February 2023
13
+
14
+ ### [1.0.8](https://github.com/eea/volto-globalsearch/compare/1.0.7...1.0.8) - 27 January 2023
15
+
12
16
  ### [1.0.7](https://github.com/eea/volto-globalsearch/compare/1.0.6...1.0.7) - 24 January 2023
13
17
 
14
18
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-globalsearch",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "@eeacms/volto-globalsearch: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -7,7 +7,22 @@ export default {
7
7
  () => ({
8
8
  constant_score: {
9
9
  filter: {
10
- range: { 'issued.date': { lte: getTodayWithTime() } },
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
  }),
@@ -89,6 +89,47 @@ export default {
89
89
  title: 'Topics',
90
90
  facetField: 'topic',
91
91
  sortOn: 'alpha',
92
+ whitelist: [
93
+ 'Agriculture and food',
94
+ 'Air pollution',
95
+ 'Bathing water quality',
96
+ 'Biodiversity',
97
+ 'Bioeconomy',
98
+ 'Buildings and construction',
99
+ 'Chemicals',
100
+ 'Circular economy',
101
+ 'Climate change adaptation',
102
+ 'Climate change mitigation',
103
+ 'Electric vehicles',
104
+ 'Energy',
105
+ 'Energy efficiency',
106
+ 'Environmental health impacts',
107
+ 'Environmental inequalities',
108
+ 'Extreme weather',
109
+ 'Fisheries and aquaculture',
110
+ 'Forests and forestry',
111
+ 'Industry',
112
+ 'Land use',
113
+ 'Nature protection and restoration',
114
+ 'Nature-based solutions',
115
+ 'Noise',
116
+ 'Plastics',
117
+ 'Pollution',
118
+ 'Production and consumption',
119
+ 'Renewable energy',
120
+ 'Resource use and materials',
121
+ 'Road transport',
122
+ 'Seas and coasts',
123
+ 'Soil',
124
+ 'Sustainability challenges',
125
+ 'Sustainability solutions',
126
+ 'Sustainable finance',
127
+ 'Textiles',
128
+ 'Transport and mobility',
129
+ 'Urban sustainability',
130
+ 'Waste and recycling',
131
+ 'Water',
132
+ ],
92
133
  },
93
134
  {
94
135
  id: 'countries',