@eeacms/volto-cca-policy 0.3.6 → 0.3.8
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 +20 -0
- 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/helpers/index.js +0 -11
- package/src/index.js +30 -0
- package/src/search/common.js +5 -1
- package/src/search/mission_stories/facets-stories.js +20 -3
package/src/index.js
CHANGED
|
@@ -411,6 +411,36 @@ const applyConfig = (config) => {
|
|
|
411
411
|
{ cssClass: 'small-text', label: 'Small text' },
|
|
412
412
|
];
|
|
413
413
|
|
|
414
|
+
// TODO: fix in all languages
|
|
415
|
+
config.settings.menuItemsLayouts = {
|
|
416
|
+
'/en/countries-regions': {
|
|
417
|
+
menuItemColumns: [
|
|
418
|
+
'three wide column',
|
|
419
|
+
'six wide column',
|
|
420
|
+
'three wide column',
|
|
421
|
+
],
|
|
422
|
+
menuItemChildrenListColumns: [1, 4, 1],
|
|
423
|
+
},
|
|
424
|
+
'/en/eu-adaptation-policy': {
|
|
425
|
+
menuItemColumns: [
|
|
426
|
+
'two wide column',
|
|
427
|
+
'two wide column',
|
|
428
|
+
'six wide column',
|
|
429
|
+
'two wide column',
|
|
430
|
+
],
|
|
431
|
+
menuItemChildrenListColumns: [1, 1, 4, 1],
|
|
432
|
+
},
|
|
433
|
+
'/en/observatory/evidence-on-climate-and-health-menu': {
|
|
434
|
+
menuItemColumns: [
|
|
435
|
+
'six wide column',
|
|
436
|
+
'two wide column',
|
|
437
|
+
'two wide column',
|
|
438
|
+
'two wide column',
|
|
439
|
+
],
|
|
440
|
+
menuItemChildrenListColumns: [4, 1, 1, 1],
|
|
441
|
+
},
|
|
442
|
+
};
|
|
443
|
+
|
|
414
444
|
// we won't need the listing for Folders
|
|
415
445
|
delete config.views.layoutViews.listing_view;
|
|
416
446
|
|
package/src/search/common.js
CHANGED
|
@@ -28,6 +28,10 @@ const messages = defineMessages({
|
|
|
28
28
|
id: 'Language',
|
|
29
29
|
defaultMessage: 'Language',
|
|
30
30
|
},
|
|
31
|
+
Published: {
|
|
32
|
+
id: 'Published',
|
|
33
|
+
defaultMessage: 'Published',
|
|
34
|
+
},
|
|
31
35
|
});
|
|
32
36
|
|
|
33
37
|
export const geographic_countries = {
|
|
@@ -110,7 +114,7 @@ export const issued_date = {
|
|
|
110
114
|
showInFacetsList: false,
|
|
111
115
|
filterType: 'any',
|
|
112
116
|
isFilterable: false,
|
|
113
|
-
activeFilterLabel:
|
|
117
|
+
activeFilterLabel: messages.Published,
|
|
114
118
|
isFilter: true,
|
|
115
119
|
showInSecondaryFacetsList: true,
|
|
116
120
|
isMulti: false,
|
|
@@ -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
|
}),
|