@eeacms/volto-cca-policy 0.3.5 → 0.3.7
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 +17 -10
- package/locales/bg/LC_MESSAGES/volto.po +4 -4
- package/locales/cs/LC_MESSAGES/volto.po +16 -3
- package/locales/de/LC_MESSAGES/volto.po +16 -3
- package/locales/en/LC_MESSAGES/volto.po +13 -0
- package/locales/es/LC_MESSAGES/volto.po +16 -3
- package/locales/et/LC_MESSAGES/volto.po +16 -3
- package/locales/fi/LC_MESSAGES/volto.po +16 -3
- package/locales/fr/LC_MESSAGES/volto.po +16 -3
- package/locales/ga/LC_MESSAGES/volto.po +7 -7
- package/locales/hr/LC_MESSAGES/volto.po +16 -3
- package/locales/hu/LC_MESSAGES/volto.po +19 -6
- package/locales/it/LC_MESSAGES/volto.po +16 -3
- package/locales/lt/LC_MESSAGES/volto.po +16 -3
- package/locales/nl/LC_MESSAGES/volto.po +16 -3
- package/locales/pl/LC_MESSAGES/volto.po +16 -3
- package/locales/pt/LC_MESSAGES/volto.po +16 -3
- package/locales/ro/LC_MESSAGES/volto.po +16 -3
- package/locales/sl/LC_MESSAGES/volto.po +16 -3
- package/locales/volto.pot +14 -1
- package/package.json +3 -3
- package/src/components/manage/Blocks/RelevantAceContent/schema.js +1 -1
- package/src/search/common.js +6 -1
- package/src/search/mission_all/facets-all.js +8 -1
- package/src/search/mission_funding/config-funding.js +1 -0
- package/src/search/mission_funding/facets-funding.js +24 -16
- package/src/search/mission_stories/facets-stories.js +20 -3
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { multiTermFacet } from '@eeacms/search';
|
|
2
2
|
import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
|
|
3
|
-
|
|
4
|
-
import {
|
|
3
|
+
import spatialWhitelist from '@eeacms/volto-globalsearch/config/json/spatialWhitelist';
|
|
4
|
+
import {
|
|
5
|
+
cca_adaptation_sectors,
|
|
6
|
+
language,
|
|
7
|
+
// geographic_countries,
|
|
8
|
+
} from './../common';
|
|
9
|
+
|
|
5
10
|
import { defineMessages } from 'react-intl';
|
|
6
11
|
|
|
7
12
|
const messages = defineMessages({
|
|
@@ -13,9 +18,13 @@ const messages = defineMessages({
|
|
|
13
18
|
id: 'Eligible to receive funding',
|
|
14
19
|
defaultMessage: 'Eligible to receive funding',
|
|
15
20
|
},
|
|
21
|
+
countries: {
|
|
22
|
+
id: 'Countries',
|
|
23
|
+
defaultMessage: 'Countries',
|
|
24
|
+
},
|
|
16
25
|
});
|
|
17
26
|
|
|
18
|
-
const blacklist = ['IncludeArchived', 'issued.date', '
|
|
27
|
+
const blacklist = ['IncludeArchived', 'issued.date', 'language', 'spatial'];
|
|
19
28
|
|
|
20
29
|
const facets = [
|
|
21
30
|
multiTermFacet({
|
|
@@ -33,20 +42,19 @@ const facets = [
|
|
|
33
42
|
alwaysVisible: false,
|
|
34
43
|
}),
|
|
35
44
|
cca_adaptation_sectors,
|
|
36
|
-
language,
|
|
37
|
-
// multiTermFacet({
|
|
38
|
-
// field: 'spatial',
|
|
39
|
-
// isFilterable: true,
|
|
40
|
-
// isMulti: true,
|
|
41
|
-
// label: 'Countries',
|
|
42
|
-
// spatialWhitelist: spatialWhitelist,
|
|
43
|
-
// show: 10000,
|
|
44
|
-
// iconsFamily: 'Countries',
|
|
45
|
-
// enableExact: true,
|
|
46
|
-
// alwaysVisible: false,
|
|
47
|
-
// }),
|
|
48
|
-
|
|
49
45
|
...globalSearchBaseConfig.facets.filter((f) => !blacklist.includes(f.field)),
|
|
46
|
+
language,
|
|
47
|
+
multiTermFacet({
|
|
48
|
+
field: 'spatial',
|
|
49
|
+
isFilterable: true,
|
|
50
|
+
isMulti: true,
|
|
51
|
+
label: messages.countries,
|
|
52
|
+
spatialWhitelist: spatialWhitelist,
|
|
53
|
+
show: 10000,
|
|
54
|
+
iconsFamily: 'Countries',
|
|
55
|
+
enableExact: true,
|
|
56
|
+
alwaysVisible: false,
|
|
57
|
+
}),
|
|
50
58
|
];
|
|
51
59
|
|
|
52
60
|
export default facets;
|
|
@@ -7,6 +7,23 @@ import {
|
|
|
7
7
|
language,
|
|
8
8
|
} from './../common';
|
|
9
9
|
|
|
10
|
+
import { defineMessages } from 'react-intl';
|
|
11
|
+
|
|
12
|
+
const messages = defineMessages({
|
|
13
|
+
keyCommunitySystems: {
|
|
14
|
+
id: 'Key Community Systems',
|
|
15
|
+
defaultMessage: 'Key Community Systems',
|
|
16
|
+
},
|
|
17
|
+
fundingProgramme: {
|
|
18
|
+
id: 'Funding Programme',
|
|
19
|
+
defaultMessage: 'Funding Programme',
|
|
20
|
+
},
|
|
21
|
+
hazardType: {
|
|
22
|
+
id: 'Hazard Type',
|
|
23
|
+
defaultMessage: 'Hazard Type',
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
|
|
10
27
|
const facets = [
|
|
11
28
|
cca_climate_impacts,
|
|
12
29
|
cca_adaptation_sectors,
|
|
@@ -14,7 +31,7 @@ const facets = [
|
|
|
14
31
|
field: 'key_system.keyword',
|
|
15
32
|
isFilterable: false,
|
|
16
33
|
isMulti: true,
|
|
17
|
-
label:
|
|
34
|
+
label: messages.keyCommunitySystems,
|
|
18
35
|
iconsFamily: 'Key Community Systems',
|
|
19
36
|
alwaysVisible: false,
|
|
20
37
|
}),
|
|
@@ -23,7 +40,7 @@ const facets = [
|
|
|
23
40
|
field: 'cca_funding_programme.keyword',
|
|
24
41
|
isFilterable: false,
|
|
25
42
|
isMulti: true,
|
|
26
|
-
label:
|
|
43
|
+
label: messages.fundingProgramme,
|
|
27
44
|
iconsFamily: 'Funding Programme',
|
|
28
45
|
alwaysVisible: false,
|
|
29
46
|
}),
|
|
@@ -31,7 +48,7 @@ const facets = [
|
|
|
31
48
|
field: 'climate_threats.keyword',
|
|
32
49
|
isFilterable: false,
|
|
33
50
|
isMulti: true,
|
|
34
|
-
label:
|
|
51
|
+
label: messages.hazardType,
|
|
35
52
|
iconsFamily: 'Hazard Type',
|
|
36
53
|
alwaysVisible: false,
|
|
37
54
|
}),
|