@eeacms/volto-cca-policy 0.2.81 → 0.2.83
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 +36 -0
- package/package.json +2 -2
- package/src/components/theme/Views/CaseStudyView.jsx +18 -1
- package/src/components/theme/Views/CaseStudyView.less +8 -0
- package/src/components/theme/Views/DatabaseItemView.jsx +16 -6
- package/src/helpers/Constants.jsx +10 -9
- package/src/search/common.js +30 -30
- package/src/search/config.js +17 -0
- package/src/search/mission_funding/facets-funding.js +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,34 @@ 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.2.83](https://github.com/eea/volto-cca-policy/compare/0.2.82...0.2.83) - 16 December 2024
|
|
8
|
+
|
|
9
|
+
#### :rocket: Dependency updates
|
|
10
|
+
|
|
11
|
+
- Release @eeacms/volto-searchlib@2.0.5 [EEA Jenkins - [`4adc1dc`](https://github.com/eea/volto-cca-policy/commit/4adc1dc79bca9439b2bd5b79d231c1e2243fc74b)]
|
|
12
|
+
- Release @eeacms/volto-searchlib@2.0.4 [EEA Jenkins - [`3b5547c`](https://github.com/eea/volto-cca-policy/commit/3b5547c8a7be40a44fd978efe9ea4736e3fa7bed)]
|
|
13
|
+
|
|
14
|
+
#### :hammer_and_wrench: Others
|
|
15
|
+
|
|
16
|
+
- Don't expose all the languages [Tiberiu Ichim - [`80e20af`](https://github.com/eea/volto-cca-policy/commit/80e20af2f56d164e6efbd90370307f7317c38909)]
|
|
17
|
+
- Add 2 new fields to download [Tiberiu Ichim - [`c8f71ba`](https://github.com/eea/volto-cca-policy/commit/c8f71ba52d8e39568e3ad00cf6e6bc45650e66b8)]
|
|
18
|
+
- Ad Maps/Graphs height, handle iframe src and URL for indicators [kreafox - [`4f314c0`](https://github.com/eea/volto-cca-policy/commit/4f314c0f8b5e316d67f3c871276e92128ebf129b)]
|
|
19
|
+
- Set download fields [Tiberiu Ichim - [`6677ee0`](https://github.com/eea/volto-cca-policy/commit/6677ee0fa1f863387488db9adb2d5730b4099016)]
|
|
20
|
+
### [0.2.82](https://github.com/eea/volto-cca-policy/compare/0.2.81...0.2.82) - 12 December 2024
|
|
21
|
+
|
|
22
|
+
#### :hammer_and_wrench: Others
|
|
23
|
+
|
|
24
|
+
- Refs #281176 - test resizable [Tripon Eugen - [`0a6dd6a`](https://github.com/eea/volto-cca-policy/commit/0a6dd6a3a771c554cac251eb1ae22a0fab4c9215)]
|
|
25
|
+
- Refs #281176 - do not show empty fields [Tripon Eugen - [`3c1b1b2`](https://github.com/eea/volto-cca-policy/commit/3c1b1b27505eb17e797362e0703c96c0b27f6769)]
|
|
26
|
+
- Refs #281176 - do not show empty sections [Tripon Eugen - [`4d1ebc2`](https://github.com/eea/volto-cca-policy/commit/4d1ebc2f21c5b2b7381efa290e4ea0265b979009)]
|
|
27
|
+
- Refs #281474 - float image left [Tripon Eugen - [`167561b`](https://github.com/eea/volto-cca-policy/commit/167561be774fdaa1e0fad6f26d1b53b708401138)]
|
|
28
|
+
- Refs #281502 - test wip [Tripon Eugen - [`0145dc5`](https://github.com/eea/volto-cca-policy/commit/0145dc5244c2e1d0deab3c17d623509081ff79e0)]
|
|
29
|
+
- Refs #281502 - test wip [Tripon Eugen - [`da15a99`](https://github.com/eea/volto-cca-policy/commit/da15a99b19331fa177e49dae4acf556bd004a977)]
|
|
30
|
+
- Refs #281502 - test wip [Tripon Eugen - [`3ab8b99`](https://github.com/eea/volto-cca-policy/commit/3ab8b992e7f2b1e79dd710b0ef4a02079c83ede5)]
|
|
31
|
+
- Refs #281502 - lint wip [Tripon Eugen - [`2d1489a`](https://github.com/eea/volto-cca-policy/commit/2d1489a8457d58c34e034be22d943a7bf4c1e404)]
|
|
32
|
+
- Refs #281502 - remuve duplicated country faces on mission funding search [Tripon Eugen - [`324c52e`](https://github.com/eea/volto-cca-policy/commit/324c52eb3c6fe9371caa7797eaf218f2fbc56908)]
|
|
33
|
+
- Refs #281159 - transational regions [Tripon Eugen - [`eb4a98e`](https://github.com/eea/volto-cca-policy/commit/eb4a98e573dc1fb6c91012f54e804df16a136dbb)]
|
|
34
|
+
- Refs #281474 - case study logo [Tripon Eugen - [`ee311cf`](https://github.com/eea/volto-cca-policy/commit/ee311cf2131afa6348abc5cf0a5546cb36f554a6)]
|
|
7
35
|
### [0.2.81](https://github.com/eea/volto-cca-policy/compare/0.2.80...0.2.81) - 25 November 2024
|
|
8
36
|
|
|
9
37
|
#### :hammer_and_wrench: Others
|
|
@@ -1673,10 +1701,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1673
1701
|
- Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
|
|
1674
1702
|
- Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
|
|
1675
1703
|
- Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
|
|
1704
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
|
|
1705
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
|
|
1676
1706
|
### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
|
|
1677
1707
|
|
|
1678
1708
|
#### :house: Internal changes
|
|
1679
1709
|
|
|
1710
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
|
|
1680
1711
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
|
|
1681
1712
|
|
|
1682
1713
|
#### :hammer_and_wrench: Others
|
|
@@ -1693,6 +1724,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1693
1724
|
- Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
|
|
1694
1725
|
- Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
|
|
1695
1726
|
- Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
|
|
1727
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
|
|
1728
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
|
|
1729
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
|
|
1696
1730
|
- Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
|
|
1697
1731
|
- Refs #256681 - Fix error in CCA Event view menu. ([React Intl] An id must be provided to format a message.) [GhitaB - [`517eeb8`](https://github.com/eea/volto-cca-policy/commit/517eeb817264a47bbfd6b9b7d22aaf22d44ed224)]
|
|
1698
1732
|
- Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
|
|
@@ -1909,6 +1943,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1909
1943
|
|
|
1910
1944
|
#### :house: Internal changes
|
|
1911
1945
|
|
|
1946
|
+
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
|
|
1912
1947
|
|
|
1913
1948
|
#### :hammer_and_wrench: Others
|
|
1914
1949
|
|
|
@@ -2389,6 +2424,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2389
2424
|
#### :hammer_and_wrench: Others
|
|
2390
2425
|
|
|
2391
2426
|
- Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
|
|
2427
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
|
|
2392
2428
|
### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
|
|
2393
2429
|
|
|
2394
2430
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-cca-policy",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.83",
|
|
4
4
|
"description": "@eeacms/volto-cca-policy: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@eeacms/volto-globalsearch": "^1.1.0",
|
|
36
36
|
"@eeacms/volto-hero-block": "^7.1.0",
|
|
37
37
|
"@eeacms/volto-openlayers-map": "*",
|
|
38
|
-
"@eeacms/volto-searchlib": "2.0.
|
|
38
|
+
"@eeacms/volto-searchlib": "2.0.5",
|
|
39
39
|
"@eeacms/volto-slate-label": "^0.6.0",
|
|
40
40
|
"@eeacms/volto-tabs-block": "^7.5.1",
|
|
41
41
|
"@elastic/search-ui": "1.21.2",
|
|
@@ -24,6 +24,8 @@ import {
|
|
|
24
24
|
ListItem,
|
|
25
25
|
} from 'semantic-ui-react';
|
|
26
26
|
|
|
27
|
+
import './CaseStudyView.less';
|
|
28
|
+
|
|
27
29
|
const messages = defineMessages({
|
|
28
30
|
References: { id: 'References', defaultMessage: 'References' },
|
|
29
31
|
Challenges: { id: 'Challenges', defaultMessage: 'Challenges' },
|
|
@@ -322,7 +324,7 @@ const SectionContent = ({ sectionData, content }) => {
|
|
|
322
324
|
function CaseStudyView(props) {
|
|
323
325
|
const intl = useIntl();
|
|
324
326
|
const { content } = props;
|
|
325
|
-
const { long_description, updating_notes } = content;
|
|
327
|
+
const { long_description, updating_notes, logo, title } = content;
|
|
326
328
|
|
|
327
329
|
const hasValue = (field) => {
|
|
328
330
|
if (!content.hasOwnProperty(field)) {
|
|
@@ -334,6 +336,12 @@ function CaseStudyView(props) {
|
|
|
334
336
|
if (Array.isArray(content[field]) && content[field].length === 0) {
|
|
335
337
|
return false;
|
|
336
338
|
}
|
|
339
|
+
if (
|
|
340
|
+
typeof content[field]?.data === 'string' &&
|
|
341
|
+
content[field]?.data.replace('<p></p>', '').length === 0
|
|
342
|
+
) {
|
|
343
|
+
return false;
|
|
344
|
+
}
|
|
337
345
|
return true;
|
|
338
346
|
};
|
|
339
347
|
|
|
@@ -369,6 +377,15 @@ function CaseStudyView(props) {
|
|
|
369
377
|
computer={8}
|
|
370
378
|
className="col-left"
|
|
371
379
|
>
|
|
380
|
+
{logo && (
|
|
381
|
+
<div>
|
|
382
|
+
<Image
|
|
383
|
+
src={logo?.scales?.mini?.download}
|
|
384
|
+
alt={title}
|
|
385
|
+
className="db-logo"
|
|
386
|
+
/>
|
|
387
|
+
</div>
|
|
388
|
+
)}
|
|
372
389
|
<PrimaryPhoto {...props} />
|
|
373
390
|
<HTMLField value={long_description} />
|
|
374
391
|
{updating_notes && updating_notes.length > 0 && (
|
|
@@ -94,15 +94,26 @@ const MaybeFlourishVisualization = ({ content }) => {
|
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
function getFirstIframeSrc(htmlString) {
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
const iframeRegex = /<iframe[^>]+src=["']([^"']+)["']/;
|
|
98
|
+
|
|
99
|
+
const iframeMatch = htmlString.match(iframeRegex);
|
|
100
|
+
if (iframeMatch) {
|
|
101
|
+
return iframeMatch[1];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
try {
|
|
105
|
+
const url = new URL(htmlString);
|
|
106
|
+
return url.href;
|
|
107
|
+
} catch (e) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
100
110
|
}
|
|
101
111
|
|
|
102
112
|
const MaybeIframeVisualization = ({ content }) => {
|
|
103
|
-
const { map_graphs } = content;
|
|
113
|
+
const { map_graphs, map_graphs_height } = content;
|
|
104
114
|
|
|
105
115
|
const url = getFirstIframeSrc(map_graphs || '');
|
|
116
|
+
const height = map_graphs_height || 800;
|
|
106
117
|
|
|
107
118
|
const [isClient, setIsClient] = React.useState();
|
|
108
119
|
|
|
@@ -110,7 +121,6 @@ const MaybeIframeVisualization = ({ content }) => {
|
|
|
110
121
|
|
|
111
122
|
if (!(isClient && url)) return null;
|
|
112
123
|
|
|
113
|
-
// <div dangerouslySetInnerHTML={{ __html: map_graphs }} />
|
|
114
124
|
return (
|
|
115
125
|
<PrivacyProtection
|
|
116
126
|
data={{
|
|
@@ -119,7 +129,7 @@ const MaybeIframeVisualization = ({ content }) => {
|
|
|
119
129
|
}}
|
|
120
130
|
>
|
|
121
131
|
<iframe
|
|
122
|
-
height=
|
|
132
|
+
height={height}
|
|
123
133
|
width="100%"
|
|
124
134
|
src={url}
|
|
125
135
|
title="Interactive or visual content"
|
|
@@ -107,16 +107,16 @@ export const BIOREGIONS = {
|
|
|
107
107
|
TRANS_MACRO_MED: 'Mediterranean (Euro-Med)',
|
|
108
108
|
TRANS_MACRO_DANUBE: 'Danube Area',
|
|
109
109
|
TRANS_MACRO_ADR_IONIAN: 'Adriatic-Ionian',
|
|
110
|
-
TRANS_MACRO_BALKAN_MED: 'Balkan-Mediterranean',
|
|
111
|
-
TRANS_MACRO_CAR_AREA: 'Caribbean Area',
|
|
112
|
-
TRANS_MACRO_AMAZONIA: 'Amazonia',
|
|
113
|
-
TRANS_MACRO_IND_OCEAN_AREA: 'Indian Ocean Area',
|
|
114
|
-
TRANS_MACRO_SE_EUR: 'South East Europe',
|
|
110
|
+
// TRANS_MACRO_BALKAN_MED: 'Balkan-Mediterranean',
|
|
111
|
+
// TRANS_MACRO_CAR_AREA: 'Caribbean Area',
|
|
112
|
+
// TRANS_MACRO_AMAZONIA: 'Amazonia',
|
|
113
|
+
// TRANS_MACRO_IND_OCEAN_AREA: 'Indian Ocean Area',
|
|
114
|
+
// TRANS_MACRO_SE_EUR: 'South East Europe',
|
|
115
115
|
TRANS_MACRO_MED_BASIN: 'Mediterranean Sea Basin (NEXT)',
|
|
116
|
-
TRANS_MACRO_MID_ATLANTIC: 'Mid-Atlantic',
|
|
117
|
-
TRANS_MACRO_ARCTIC: 'Arctic',
|
|
118
|
-
TRANS_MACRO_BLACKSEA: 'Black Sea',
|
|
119
|
-
TRANS_MACRO_ATLANTIC: 'Atlantic',
|
|
116
|
+
// TRANS_MACRO_MID_ATLANTIC: 'Mid-Atlantic',
|
|
117
|
+
// TRANS_MACRO_ARCTIC: 'Arctic',
|
|
118
|
+
// TRANS_MACRO_BLACKSEA: 'Black Sea',
|
|
119
|
+
// TRANS_MACRO_ATLANTIC: 'Atlantic',
|
|
120
120
|
TRANS_MACRO_BLACKSEA_BASIN: 'Black Sea Basin (NEXT)',
|
|
121
121
|
TRANS_BIO_ALPINE: 'Alpine',
|
|
122
122
|
TRANS_BIO_ANATOLIAN: 'Anatolian',
|
|
@@ -525,6 +525,7 @@ export const EU_COUNTRIES = [
|
|
|
525
525
|
'LV',
|
|
526
526
|
'MT',
|
|
527
527
|
'NL',
|
|
528
|
+
'NO',
|
|
528
529
|
'PL',
|
|
529
530
|
'PT',
|
|
530
531
|
'RO',
|
package/src/search/common.js
CHANGED
|
@@ -141,40 +141,40 @@ export const language = {
|
|
|
141
141
|
type: 'any',
|
|
142
142
|
},
|
|
143
143
|
facetValues: [
|
|
144
|
-
'
|
|
145
|
-
'sr',
|
|
146
|
-
'sq',
|
|
147
|
-
'bg',
|
|
148
|
-
'bs',
|
|
149
|
-
'cs',
|
|
150
|
-
'hr',
|
|
151
|
-
'da',
|
|
152
|
-
'nl',
|
|
153
|
-
'el',
|
|
144
|
+
'de',
|
|
154
145
|
'en',
|
|
155
|
-
'
|
|
156
|
-
'fi',
|
|
146
|
+
'es',
|
|
157
147
|
'fr',
|
|
158
|
-
'ga',
|
|
159
|
-
'de',
|
|
160
|
-
'hu',
|
|
161
|
-
'is',
|
|
162
148
|
'it',
|
|
163
|
-
'lv',
|
|
164
|
-
'lt',
|
|
165
|
-
'mk',
|
|
166
|
-
'mt',
|
|
167
|
-
'no',
|
|
168
149
|
'pl',
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
176
|
-
'
|
|
177
|
-
'
|
|
150
|
+
// 'ar',
|
|
151
|
+
// 'bg',
|
|
152
|
+
// 'bs',
|
|
153
|
+
// 'cs',
|
|
154
|
+
// 'da',
|
|
155
|
+
// 'el',
|
|
156
|
+
// 'et',
|
|
157
|
+
// 'fi',
|
|
158
|
+
// 'ga',
|
|
159
|
+
// 'hr',
|
|
160
|
+
// 'hu',
|
|
161
|
+
// 'is',
|
|
162
|
+
// 'lt',
|
|
163
|
+
// 'lv',
|
|
164
|
+
// 'mk',
|
|
165
|
+
// 'mt',
|
|
166
|
+
// 'nl',
|
|
167
|
+
// 'no',
|
|
168
|
+
// 'pt',
|
|
169
|
+
// 'ro',
|
|
170
|
+
// 'ru',
|
|
171
|
+
// 'sh',
|
|
172
|
+
// 'sk',
|
|
173
|
+
// 'sl',
|
|
174
|
+
// 'sq',
|
|
175
|
+
// 'sr',
|
|
176
|
+
// 'sv',
|
|
177
|
+
// 'tr',
|
|
178
178
|
],
|
|
179
179
|
sortOn: 'custom',
|
|
180
180
|
sortOnCustomLabel: 'Alphabetical',
|
package/src/search/config.js
CHANGED
|
@@ -70,6 +70,22 @@ export default function installMainSearch(config) {
|
|
|
70
70
|
|
|
71
71
|
// console.log('config.searchui.ccaSearch clusers', clusters);
|
|
72
72
|
// debugger;
|
|
73
|
+
config.searchui.globalsearch.download_fields = [
|
|
74
|
+
{ field: 'about', name: 'About' },
|
|
75
|
+
{ field: 'title', name: 'title' },
|
|
76
|
+
{ field: 'issued', name: 'Issued' },
|
|
77
|
+
{ field: 'objectProvides', name: 'Content type' },
|
|
78
|
+
{ field: 'cca_adaptation_sectors', name: 'Sectors' },
|
|
79
|
+
{ field: 'cca_climate_impacts', name: 'Climate impact' },
|
|
80
|
+
{ field: 'transnational_regions', name: 'Transnational regions' },
|
|
81
|
+
{ field: 'cca_adaptation_elements', name: 'Adaptation Approaches' },
|
|
82
|
+
{ field: 'cca_funding_programme', name: 'Funding programme' },
|
|
83
|
+
{ field: 'cca_key_type_measure', name: 'Key type measure' },
|
|
84
|
+
{ field: 'cca_geographic_countries', name: 'Countries' },
|
|
85
|
+
{ field: 'cca_origin_websites', name: 'Origin website' },
|
|
86
|
+
{ field: 'cca_health_impacts', name: 'Health impacts' },
|
|
87
|
+
{ field: 'cca_partner_contributors', name: 'Observatory impacts' },
|
|
88
|
+
];
|
|
73
89
|
config.searchui.ccaSearch = {
|
|
74
90
|
...mergeConfig(envConfig, config.searchui.globalsearchbase),
|
|
75
91
|
elastic_index: '_es/globalsearch',
|
|
@@ -206,5 +222,6 @@ export default function installMainSearch(config) {
|
|
|
206
222
|
process.env.RAZZLE_ES_PROXY_ADDR || getClientProxyAddress();
|
|
207
223
|
}
|
|
208
224
|
|
|
225
|
+
// console.log(config);
|
|
209
226
|
return config;
|
|
210
227
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { multiTermFacet } from '@eeacms/search';
|
|
2
2
|
import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
|
|
3
|
-
import spatialWhitelist from '@eeacms/volto-globalsearch/config/json/spatialWhitelist';
|
|
3
|
+
// import spatialWhitelist from '@eeacms/volto-globalsearch/config/json/spatialWhitelist';
|
|
4
4
|
import { cca_adaptation_sectors } from './../common';
|
|
5
5
|
|
|
6
6
|
const blacklist = ['IncludeArchived', 'issued.date', 'spatial', 'language'];
|
|
@@ -21,17 +21,17 @@ const facets = [
|
|
|
21
21
|
alwaysVisible: false,
|
|
22
22
|
}),
|
|
23
23
|
cca_adaptation_sectors,
|
|
24
|
-
multiTermFacet({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}),
|
|
24
|
+
// multiTermFacet({
|
|
25
|
+
// field: 'spatial',
|
|
26
|
+
// isFilterable: true,
|
|
27
|
+
// isMulti: true,
|
|
28
|
+
// label: 'Countries',
|
|
29
|
+
// spatialWhitelist: spatialWhitelist,
|
|
30
|
+
// show: 10000,
|
|
31
|
+
// iconsFamily: 'Countries',
|
|
32
|
+
// enableExact: true,
|
|
33
|
+
// alwaysVisible: false,
|
|
34
|
+
// }),
|
|
35
35
|
|
|
36
36
|
...globalSearchBaseConfig.facets.filter((f) => !blacklist.includes(f.field)),
|
|
37
37
|
];
|