@eeacms/volto-cca-policy 0.1.19 → 0.1.21
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 +14 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
- package/src/search/config.js +68 -100
- package/src/search/facets.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,23 @@ 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
|
+
### [0.1.21](https://github.com/eea/volto-cca-policy/compare/0.1.20...0.1.21) - 8 June 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Fix cluster name [Tiberiu Ichim - [`9668597`](https://github.com/eea/volto-cca-policy/commit/9668597dd7e9c73e611baf17c4c92acb1a4e3153)]
|
|
12
|
+
### [0.1.20](https://github.com/eea/volto-cca-policy/compare/0.1.19...0.1.20) - 8 June 2023
|
|
13
|
+
|
|
14
|
+
#### :hammer_and_wrench: Others
|
|
15
|
+
|
|
16
|
+
- cca add countries to landing page [Tripon Eugen - [`2c0fe52`](https://github.com/eea/volto-cca-policy/commit/2c0fe52122391e506b366b0074522d9f15ac02bd)]
|
|
17
|
+
- cca cluster test and default filter [Tripon Eugen - [`ab14e54`](https://github.com/eea/volto-cca-policy/commit/ab14e540c9f091d00716220af59a1db7c4772b5b)]
|
|
18
|
+
- Fix env variable to exclude external routes [Tiberiu Ichim - [`caf929a`](https://github.com/eea/volto-cca-policy/commit/caf929af031895e2599ebcb6768b36c1d583eb59)]
|
|
7
19
|
### [0.1.19](https://github.com/eea/volto-cca-policy/compare/0.1.18...0.1.19) - 7 June 2023
|
|
8
20
|
|
|
9
21
|
#### :house: Internal changes
|
|
10
22
|
|
|
23
|
+
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
|
|
11
24
|
|
|
12
25
|
#### :hammer_and_wrench: Others
|
|
13
26
|
|
|
@@ -43,7 +56,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
43
56
|
- Add responsive container [Tiberiu Ichim - [`a76ca88`](https://github.com/eea/volto-cca-policy/commit/a76ca886e56117d086a28531c9f629a19c6cb9d1)]
|
|
44
57
|
- Remove layout settings block override on restriction [kreafox - [`e0bf0f8`](https://github.com/eea/volto-cca-policy/commit/e0bf0f80d9475f53d416e79f3da053812a40b514)]
|
|
45
58
|
- add breadcrumbs to apiExpanders, fixes breadcrumbs in the /contents view [Tiberiu Ichim - [`10a17f2`](https://github.com/eea/volto-cca-policy/commit/10a17f270b267985dd078a9470329d1d15254813)]
|
|
46
|
-
- Fix clicking in overlay [Tiberiu Ichim - [`442d726`](https://github.com/eea/volto-cca-policy/commit/442d7264c738179b0411dda6f3ee9341b356d5e1)]
|
|
47
59
|
- Enable layout settings block [kreafox - [`e7c3741`](https://github.com/eea/volto-cca-policy/commit/e7c37419bb74e3590d3676d83f774bc6923e417e)]
|
|
48
60
|
- Refs #251121 - facets update [Tripon Eugen - [`80a44c7`](https://github.com/eea/volto-cca-policy/commit/80a44c7a37ce0dd04b82cfdde748aca72c642f38)]
|
|
49
61
|
- testing volto search [Tripon Eugen - [`0fbe836`](https://github.com/eea/volto-cca-policy/commit/0fbe836345cf0ca8d8765f8df6b8e3914bdc6d3d)]
|
|
@@ -489,6 +501,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
489
501
|
#### :hammer_and_wrench: Others
|
|
490
502
|
|
|
491
503
|
- Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
|
|
504
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
|
|
492
505
|
### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
|
|
493
506
|
|
|
494
507
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import GeolocationWidget from './components/theme/Widgets/GeolocationWidget';
|
|
|
25
25
|
|
|
26
26
|
const applyConfig = (config) => {
|
|
27
27
|
const notInEnMission = /^(?!(\/en\/mission)).*$/;
|
|
28
|
-
if (!__DEVELOPMENT__ || process.env.
|
|
28
|
+
if (!__DEVELOPMENT__ || !process.env.RAZZLE_SET_EXTERNAL_ROUTES) {
|
|
29
29
|
config.settings.externalRoutes = [
|
|
30
30
|
...(config.settings.externalRoutes || []),
|
|
31
31
|
{
|
package/src/search/config.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { mergeConfig } from '@eeacms/search';
|
|
2
|
+
import { build_runtime_mappings } from '@eeacms/volto-globalsearch/utils';
|
|
2
3
|
|
|
3
4
|
import facets from './facets';
|
|
4
5
|
|
|
@@ -17,6 +18,19 @@ const ccaConfig = {
|
|
|
17
18
|
title: 'ClimateAdapt Main',
|
|
18
19
|
};
|
|
19
20
|
|
|
21
|
+
export const clusters = {
|
|
22
|
+
name: 'op_cluster',
|
|
23
|
+
field: 'objectProvides',
|
|
24
|
+
clusters: [
|
|
25
|
+
// {
|
|
26
|
+
// name: 'Type1',
|
|
27
|
+
// icon: { name: 'bullhorn' },
|
|
28
|
+
// values: ['Video', 'Guidance'],
|
|
29
|
+
// defaultResultView: 'horizontalCard',
|
|
30
|
+
// },
|
|
31
|
+
],
|
|
32
|
+
};
|
|
33
|
+
|
|
20
34
|
export default function installMainSearch(config) {
|
|
21
35
|
const envConfig = process.env.RAZZLE_ENV_CONFIG
|
|
22
36
|
? JSON.parse(process.env.RAZZLE_ENV_CONFIG)
|
|
@@ -34,9 +48,10 @@ export default function installMainSearch(config) {
|
|
|
34
48
|
host: process.env.RAZZLE_ES_PROXY_ADDR || 'http://localhost:3000',
|
|
35
49
|
vocab: {
|
|
36
50
|
cluster_name: {
|
|
37
|
-
cca: '
|
|
51
|
+
cca: 'Climate-ADAPT',
|
|
38
52
|
},
|
|
39
53
|
},
|
|
54
|
+
runtime_mappings: build_runtime_mappings(clusters),
|
|
40
55
|
};
|
|
41
56
|
|
|
42
57
|
const { ccaSearch } = config.searchui;
|
|
@@ -81,105 +96,58 @@ export default function installMainSearch(config) {
|
|
|
81
96
|
family: 'Content types',
|
|
82
97
|
},
|
|
83
98
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
// sortOn: 'alpha',
|
|
137
|
-
// maxPerSection: 100,
|
|
138
|
-
// whitelist: [
|
|
139
|
-
// 'Austria',
|
|
140
|
-
// 'Belgium',
|
|
141
|
-
// 'Bulgaria',
|
|
142
|
-
// 'Croatia',
|
|
143
|
-
// 'Cyprus',
|
|
144
|
-
// 'Czechia',
|
|
145
|
-
// 'Denmark',
|
|
146
|
-
// 'Estonia',
|
|
147
|
-
// 'Finland',
|
|
148
|
-
// 'France',
|
|
149
|
-
// 'Germany',
|
|
150
|
-
// 'Greece',
|
|
151
|
-
// 'Hungary',
|
|
152
|
-
// 'Iceland',
|
|
153
|
-
// 'Ireland',
|
|
154
|
-
// 'Italy',
|
|
155
|
-
// 'Latvia',
|
|
156
|
-
// 'Liechtenstein',
|
|
157
|
-
// 'Lithuania',
|
|
158
|
-
// 'Luxembourg',
|
|
159
|
-
// 'Malta',
|
|
160
|
-
// 'Netherlands',
|
|
161
|
-
// 'Norway',
|
|
162
|
-
// 'Poland',
|
|
163
|
-
// 'Portugal',
|
|
164
|
-
// 'Romania',
|
|
165
|
-
// 'Slovakia',
|
|
166
|
-
// 'Slovenia',
|
|
167
|
-
// 'Spain',
|
|
168
|
-
// 'Sweden',
|
|
169
|
-
// 'Switzerland',
|
|
170
|
-
// 'Türkiye',
|
|
171
|
-
// 'Albania',
|
|
172
|
-
// 'Bosnia and Herzegovina',
|
|
173
|
-
// 'Kosovo',
|
|
174
|
-
// 'Montenegro',
|
|
175
|
-
// 'North Macedonia',
|
|
176
|
-
// 'Serbia',
|
|
177
|
-
// ],
|
|
178
|
-
// icon: {
|
|
179
|
-
// family: 'CountryFlags',
|
|
180
|
-
// className: 'facet-option-icon',
|
|
181
|
-
// },
|
|
182
|
-
// },
|
|
99
|
+
{
|
|
100
|
+
id: 'cca_geographic_countries',
|
|
101
|
+
title: 'Countries',
|
|
102
|
+
facetField: 'cca_geographic_countries.keyword',
|
|
103
|
+
// filterType: 'any:exact',
|
|
104
|
+
sortOn: 'alpha',
|
|
105
|
+
// maxPerSection: 100,
|
|
106
|
+
whitelist: [
|
|
107
|
+
'Austria',
|
|
108
|
+
'Belgium',
|
|
109
|
+
'Bulgaria',
|
|
110
|
+
'Croatia',
|
|
111
|
+
'Cyprus',
|
|
112
|
+
'Czechia',
|
|
113
|
+
'Denmark',
|
|
114
|
+
'Estonia',
|
|
115
|
+
'Finland',
|
|
116
|
+
'France',
|
|
117
|
+
'Germany',
|
|
118
|
+
'Greece',
|
|
119
|
+
'Hungary',
|
|
120
|
+
'Iceland',
|
|
121
|
+
'Ireland',
|
|
122
|
+
'Italy',
|
|
123
|
+
'Latvia',
|
|
124
|
+
'Liechtenstein',
|
|
125
|
+
'Lithuania',
|
|
126
|
+
'Luxembourg',
|
|
127
|
+
'Malta',
|
|
128
|
+
'Netherlands',
|
|
129
|
+
'Norway',
|
|
130
|
+
'Poland',
|
|
131
|
+
'Portugal',
|
|
132
|
+
'Romania',
|
|
133
|
+
'Slovakia',
|
|
134
|
+
'Slovenia',
|
|
135
|
+
'Spain',
|
|
136
|
+
'Sweden',
|
|
137
|
+
'Switzerland',
|
|
138
|
+
'Türkiye',
|
|
139
|
+
'Albania',
|
|
140
|
+
'Bosnia and Herzegovina',
|
|
141
|
+
'Kosovo',
|
|
142
|
+
'Montenegro',
|
|
143
|
+
'North Macedonia',
|
|
144
|
+
'Serbia',
|
|
145
|
+
],
|
|
146
|
+
icon: {
|
|
147
|
+
family: 'CountryFlags',
|
|
148
|
+
className: 'facet-option-icon',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
183
151
|
// {
|
|
184
152
|
// id: 'language',
|
|
185
153
|
// title: 'Languages',
|
package/src/search/facets.js
CHANGED
|
@@ -61,7 +61,6 @@ const facets = [
|
|
|
61
61
|
ignoreNLPWhenActive: true,
|
|
62
62
|
blacklist: ['Others', 'Publications'],
|
|
63
63
|
},
|
|
64
|
-
|
|
65
64
|
// {
|
|
66
65
|
// field: 'moreLikeThis',
|
|
67
66
|
// factory: 'MoreLikeThis',
|
|
@@ -1165,6 +1164,7 @@ const facets = [
|
|
|
1165
1164
|
isMulti: true,
|
|
1166
1165
|
sortOn: 'custom',
|
|
1167
1166
|
sortOnCustomLabel: 'Alphabetical',
|
|
1167
|
+
alwaysVisible: true,
|
|
1168
1168
|
},
|
|
1169
1169
|
{
|
|
1170
1170
|
field: 'cca_geographic_transnational_region.keyword',
|