@eeacms/volto-cca-policy 0.2.80 → 0.2.82
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 +22 -0
- package/package.json +1 -1
- package/src/components/theme/Views/CaseStudyView.jsx +18 -1
- package/src/components/theme/Views/CaseStudyView.less +8 -0
- package/src/helpers/Constants.jsx +9 -9
- package/src/search/health_observatory/config-health.js +11 -0
- package/src/search/mission_all/config-all.js +11 -0
- package/src/search/mission_funding/config-funding.js +12 -5
- package/src/search/mission_funding/facets-funding.js +13 -13
- package/src/search/mission_projects/config-projects.js +12 -0
- package/src/search/mission_stories/config-stories.js +11 -1
- package/src/search/mission_tools/config-tools.js +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,28 @@ 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.82](https://github.com/eea/volto-cca-policy/compare/0.2.81...0.2.82) - 12 December 2024
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Refs #281176 - test resizable [Tripon Eugen - [`0a6dd6a`](https://github.com/eea/volto-cca-policy/commit/0a6dd6a3a771c554cac251eb1ae22a0fab4c9215)]
|
|
12
|
+
- Refs #281176 - do not show empty fields [Tripon Eugen - [`3c1b1b2`](https://github.com/eea/volto-cca-policy/commit/3c1b1b27505eb17e797362e0703c96c0b27f6769)]
|
|
13
|
+
- Refs #281176 - do not show empty sections [Tripon Eugen - [`4d1ebc2`](https://github.com/eea/volto-cca-policy/commit/4d1ebc2f21c5b2b7381efa290e4ea0265b979009)]
|
|
14
|
+
- Refs #281474 - float image left [Tripon Eugen - [`167561b`](https://github.com/eea/volto-cca-policy/commit/167561be774fdaa1e0fad6f26d1b53b708401138)]
|
|
15
|
+
- Refs #281502 - test wip [Tripon Eugen - [`0145dc5`](https://github.com/eea/volto-cca-policy/commit/0145dc5244c2e1d0deab3c17d623509081ff79e0)]
|
|
16
|
+
- Refs #281502 - test wip [Tripon Eugen - [`da15a99`](https://github.com/eea/volto-cca-policy/commit/da15a99b19331fa177e49dae4acf556bd004a977)]
|
|
17
|
+
- Refs #281502 - test wip [Tripon Eugen - [`3ab8b99`](https://github.com/eea/volto-cca-policy/commit/3ab8b992e7f2b1e79dd710b0ef4a02079c83ede5)]
|
|
18
|
+
- Refs #281502 - lint wip [Tripon Eugen - [`2d1489a`](https://github.com/eea/volto-cca-policy/commit/2d1489a8457d58c34e034be22d943a7bf4c1e404)]
|
|
19
|
+
- Refs #281502 - remuve duplicated country faces on mission funding search [Tripon Eugen - [`324c52e`](https://github.com/eea/volto-cca-policy/commit/324c52eb3c6fe9371caa7797eaf218f2fbc56908)]
|
|
20
|
+
- Refs #281159 - transational regions [Tripon Eugen - [`eb4a98e`](https://github.com/eea/volto-cca-policy/commit/eb4a98e573dc1fb6c91012f54e804df16a136dbb)]
|
|
21
|
+
- Refs #281474 - case study logo [Tripon Eugen - [`ee311cf`](https://github.com/eea/volto-cca-policy/commit/ee311cf2131afa6348abc5cf0a5546cb36f554a6)]
|
|
22
|
+
### [0.2.81](https://github.com/eea/volto-cca-policy/compare/0.2.80...0.2.81) - 25 November 2024
|
|
23
|
+
|
|
24
|
+
#### :hammer_and_wrench: Others
|
|
25
|
+
|
|
26
|
+
- Remove console.log [Tiberiu Ichim - [`1c82ad8`](https://github.com/eea/volto-cca-policy/commit/1c82ad898054a723d47144100139f6880ef5ea0d)]
|
|
27
|
+
- WIP [Tiberiu Ichim - [`5fa406c`](https://github.com/eea/volto-cca-policy/commit/5fa406ca4824829fc8700f8172ae52903f39bd55)]
|
|
28
|
+
- refs #272894: added permanentFilters to search apps to exclude pages with seo_noindex [laszlocseh - [`a64ffb1`](https://github.com/eea/volto-cca-policy/commit/a64ffb11984c122dceddb94294c19b17dfd39ead)]
|
|
7
29
|
### [0.2.80](https://github.com/eea/volto-cca-policy/compare/0.2.79...0.2.80) - 15 November 2024
|
|
8
30
|
|
|
9
31
|
#### :rocket: Dependency updates
|
package/package.json
CHANGED
|
@@ -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 && (
|
|
@@ -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',
|
|
@@ -87,6 +87,17 @@ export default function installMainSearch(config) {
|
|
|
87
87
|
cca_include_in_search_observatory: 'true',
|
|
88
88
|
},
|
|
89
89
|
});
|
|
90
|
+
ccaHealthSearch.permanentFilters.push({
|
|
91
|
+
bool: {
|
|
92
|
+
must_not: [
|
|
93
|
+
{
|
|
94
|
+
term: {
|
|
95
|
+
'seo_noindex.keyword': 'true',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
});
|
|
90
101
|
ccaHealthSearch.contentSectionsParams = {
|
|
91
102
|
enable: true,
|
|
92
103
|
sectionFacetsField: 'op_cluster',
|
|
@@ -54,6 +54,17 @@ export default function installMainSearch(config) {
|
|
|
54
54
|
cluster_name: 'cca',
|
|
55
55
|
},
|
|
56
56
|
});
|
|
57
|
+
missionAll.permanentFilters.push({
|
|
58
|
+
bool: {
|
|
59
|
+
must_not: [
|
|
60
|
+
{
|
|
61
|
+
term: {
|
|
62
|
+
'seo_noindex.keyword': 'true',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
});
|
|
57
68
|
// missionAll.permanentFilters.push({
|
|
58
69
|
// bool: {
|
|
59
70
|
// must_not: [
|
|
@@ -5,7 +5,7 @@ import facets from './facets-funding';
|
|
|
5
5
|
|
|
6
6
|
const missionFundingSearchConfig = {
|
|
7
7
|
title: 'Mission Funding Search',
|
|
8
|
-
|
|
8
|
+
facets,
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export default function installMissionFundingSearch(config) {
|
|
@@ -30,15 +30,22 @@ export default function installMissionFundingSearch(config) {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
const { missionFundingSearch } = config.searchui;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
missionFundingSearch.permanentFilters.push({
|
|
34
|
+
bool: {
|
|
35
|
+
must_not: [
|
|
36
|
+
{
|
|
37
|
+
term: {
|
|
38
|
+
'seo_noindex.keyword': 'true',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
});
|
|
35
44
|
|
|
36
45
|
if (typeof window !== 'undefined') {
|
|
37
46
|
config.searchui.missionFundingSearch.host =
|
|
38
47
|
process.env.RAZZLE_ES_PROXY_ADDR || getClientProxyAddress();
|
|
39
48
|
}
|
|
40
49
|
|
|
41
|
-
// console.log(config.searchui);
|
|
42
|
-
|
|
43
50
|
return config;
|
|
44
51
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
const blacklist = ['IncludeArchived', 'issued.date', 'spatial'];
|
|
6
|
+
const blacklist = ['IncludeArchived', 'issued.date', 'spatial', 'language'];
|
|
7
7
|
|
|
8
8
|
const facets = [
|
|
9
9
|
multiTermFacet({
|
|
@@ -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
|
];
|
|
@@ -58,6 +58,18 @@ export default function installMainSearch(config) {
|
|
|
58
58
|
},
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
+
missionProjects.permanentFilters.push({
|
|
62
|
+
bool: {
|
|
63
|
+
must_not: [
|
|
64
|
+
{
|
|
65
|
+
term: {
|
|
66
|
+
'seo_noindex.keyword': 'true',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
|
|
61
73
|
missionProjects.facets = facets;
|
|
62
74
|
|
|
63
75
|
if (typeof window !== 'undefined') {
|
|
@@ -29,7 +29,17 @@ export default function installMissionStoriesSearch(config) {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
const { missionStoriesSearch } = config.searchui;
|
|
32
|
-
|
|
32
|
+
missionStoriesSearch.permanentFilters.push({
|
|
33
|
+
bool: {
|
|
34
|
+
must_not: [
|
|
35
|
+
{
|
|
36
|
+
term: {
|
|
37
|
+
'seo_noindex.keyword': 'true',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
});
|
|
33
43
|
missionStoriesSearch.facets = facets;
|
|
34
44
|
|
|
35
45
|
if (typeof window !== 'undefined') {
|
|
@@ -30,7 +30,17 @@ export default function installMissionToolsSearch(config) {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
const { missionToolsSearch } = config.searchui;
|
|
33
|
-
|
|
33
|
+
missionToolsSearch.permanentFilters.push({
|
|
34
|
+
bool: {
|
|
35
|
+
must_not: [
|
|
36
|
+
{
|
|
37
|
+
term: {
|
|
38
|
+
'seo_noindex.keyword': 'true',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
});
|
|
34
44
|
missionToolsSearch.facets = facets;
|
|
35
45
|
|
|
36
46
|
if (typeof window !== 'undefined') {
|