@eeacms/volto-cca-policy 0.3.1 → 0.3.2

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/locales/bg/LC_MESSAGES/volto.po +150 -22
  3. package/locales/cs/LC_MESSAGES/volto.po +150 -22
  4. package/locales/de/LC_MESSAGES/volto.po +150 -22
  5. package/locales/en/LC_MESSAGES/volto.po +150 -22
  6. package/locales/es/LC_MESSAGES/volto.po +150 -22
  7. package/locales/et/LC_MESSAGES/volto.po +150 -22
  8. package/locales/fi/LC_MESSAGES/volto.po +150 -22
  9. package/locales/fr/LC_MESSAGES/volto.po +150 -22
  10. package/locales/ga/LC_MESSAGES/volto.po +150 -22
  11. package/locales/hr/LC_MESSAGES/volto.po +150 -22
  12. package/locales/hu/LC_MESSAGES/volto.po +150 -22
  13. package/locales/it/LC_MESSAGES/volto.po +150 -22
  14. package/locales/lt/LC_MESSAGES/volto.po +150 -22
  15. package/locales/nl/LC_MESSAGES/volto.po +150 -22
  16. package/locales/pl/LC_MESSAGES/volto.po +150 -22
  17. package/locales/pt/LC_MESSAGES/volto.po +150 -22
  18. package/locales/ro/LC_MESSAGES/volto.po +150 -22
  19. package/locales/sl/LC_MESSAGES/volto.po +150 -22
  20. package/locales/volto.pot +151 -1
  21. package/package.json +3 -3
  22. package/src/components/Result/ClusterHorizontalCardItem.jsx +13 -3
  23. package/src/components/Result/HealthHorizontalCardItem.jsx +7 -2
  24. package/src/search/cca/facets.js +45 -8
  25. package/src/search/common.js +38 -13
  26. package/src/search/health_observatory/config-health.js +17 -0
  27. package/src/search/health_observatory/facets-health.js +28 -4
  28. package/src/search/mission_all/facets-all.js +17 -2
  29. package/src/search/mission_funding/facets-funding.js +14 -2
  30. package/src/search/mission_projects/facets-projects.js +15 -2
  31. package/src/search/mission_tools/facets-tools.js +27 -5
@@ -5,13 +5,37 @@ import {
5
5
  issued_date,
6
6
  geographic_countries,
7
7
  } from './../common';
8
+ import { defineMessages } from 'react-intl';
9
+
10
+ const messages = defineMessages({
11
+ adaptationApproaches: {
12
+ id: 'Adaptation Approaches',
13
+ defaultMessage: 'Adaptation Approaches',
14
+ },
15
+ healthImpacts: {
16
+ id: 'Health impacts',
17
+ defaultMessage: 'Health impacts',
18
+ },
19
+ observatoryPartner: {
20
+ id: 'Observatory partner',
21
+ defaultMessage: 'Observatory partner',
22
+ },
23
+ publishingYear: {
24
+ id: 'Publishing year',
25
+ defaultMessage: 'Publishing year',
26
+ },
27
+ sections: {
28
+ id: 'Sections',
29
+ defaultMessage: 'Sections',
30
+ },
31
+ });
8
32
 
9
33
  const op_cluster = {
10
34
  field: 'op_cluster',
11
35
  factory: 'MultiTermFacet',
12
36
  isFilterable: true,
13
37
  isMulti: true,
14
- label: 'Section',
38
+ label: messages.sections,
15
39
  show: 10000,
16
40
  showInFacetsList: false,
17
41
  ignoreNLPWhenActive: true,
@@ -21,7 +45,7 @@ const op_cluster = {
21
45
  const healthImpacts = {
22
46
  field: 'cca_health_impacts.keyword',
23
47
  factory: 'MultiTermFacet',
24
- label: 'Health impacts',
48
+ label: messages.healthImpacts,
25
49
  showInFacetsList: true,
26
50
  filterType: 'any',
27
51
  isFilterable: false,
@@ -46,7 +70,7 @@ const healthImpacts = {
46
70
  const partnerContributions = {
47
71
  field: 'cca_partner_contributors.keyword',
48
72
  factory: 'MultiTermFacet',
49
- label: 'Observatory partner',
73
+ label: messages.observatoryPartner,
50
74
  showInFacetsList: true,
51
75
  filterType: 'any',
52
76
  isFilterable: false,
@@ -60,7 +84,7 @@ const partnerContributions = {
60
84
  const year = {
61
85
  field: 'year',
62
86
  factory: 'HistogramFacet',
63
- label: 'Publishing year',
87
+ label: messages.publishingYear,
64
88
  height: 100,
65
89
  showInFacetsList: true,
66
90
  isFilterable: false,
@@ -8,6 +8,19 @@ import {
8
8
  cca_adaptation_sectors,
9
9
  } from '../common';
10
10
 
11
+ import { defineMessages } from 'react-intl';
12
+
13
+ const messages = defineMessages({
14
+ typeOfItem: {
15
+ id: 'Type of item',
16
+ defaultMessage: 'Type of item',
17
+ },
18
+ adaptationApproaches: {
19
+ id: 'Adaptation Approaches',
20
+ defaultMessage: 'Adaptation Approaches',
21
+ },
22
+ });
23
+
11
24
  const blacklist = ['IncludeArchived', 'issued.date', 'language'];
12
25
  let globalFacets = globalSearchBaseConfig.facets.filter(
13
26
  (f) => !blacklist.includes(f.field),
@@ -15,7 +28,8 @@ let globalFacets = globalSearchBaseConfig.facets.filter(
15
28
 
16
29
  for (let i = 0; i < globalFacets.length; i++) {
17
30
  if (globalFacets[i]['field'] === 'objectProvides') {
18
- globalFacets[i]['label'] = 'Type of item';
31
+ // globalFacets[i]['label'] = 'Type of item';
32
+ globalFacets[i]['label'] = messages.typeOfItem;
19
33
  }
20
34
  }
21
35
 
@@ -28,7 +42,8 @@ globalFacets = globalFacets.concat(
28
42
  field: 'cca_adaptation_elements.keyword',
29
43
  isFilterable: false,
30
44
  isMulti: true,
31
- label: 'Adaptation Approaches',
45
+ // label: 'Adaptation Approaches',
46
+ label: messages.adaptationApproaches,
32
47
  alwaysVisible: false,
33
48
  }),
34
49
  );
@@ -2,6 +2,18 @@ import { multiTermFacet } from '@eeacms/search';
2
2
  import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
3
3
  // import spatialWhitelist from '@eeacms/volto-globalsearch/config/json/spatialWhitelist';
4
4
  import { cca_adaptation_sectors, language } from './../common';
5
+ import { defineMessages } from 'react-intl';
6
+
7
+ const messages = defineMessages({
8
+ rastStepssOfRelevance: {
9
+ id: 'RAST step(s) of relevance',
10
+ defaultMessage: 'RAST step(s) of relevance',
11
+ },
12
+ eligibleToReceiveFunding: {
13
+ id: 'Eligible to receive funding',
14
+ defaultMessage: 'Eligible to receive funding',
15
+ },
16
+ });
5
17
 
6
18
  const blacklist = ['IncludeArchived', 'issued.date', 'spatial', 'language'];
7
19
 
@@ -10,14 +22,14 @@ const facets = [
10
22
  field: 'cca_rast_steps.keyword',
11
23
  isFilterable: false,
12
24
  isMulti: true,
13
- label: 'RAST step(s) of relevance',
25
+ label: messages.rastStepssOfRelevance,
14
26
  alwaysVisible: false,
15
27
  }),
16
28
  multiTermFacet({
17
29
  field: 'cca_eligible_entities.keyword',
18
30
  isFilterable: false,
19
31
  isMulti: true,
20
- label: 'Eligible to receive funding',
32
+ label: messages.eligibleToReceiveFunding,
21
33
  alwaysVisible: false,
22
34
  }),
23
35
  cca_adaptation_sectors,
@@ -9,12 +9,25 @@ import {
9
9
  cca_adaptation_sectors,
10
10
  } from './../common';
11
11
 
12
+ import { defineMessages } from 'react-intl';
13
+
14
+ const messages = defineMessages({
15
+ fundingProgramme: {
16
+ id: 'Funding Programme',
17
+ defaultMessage: 'Funding Programme',
18
+ },
19
+ adaptationApproaches: {
20
+ id: 'Adaptation Approaches',
21
+ defaultMessage: 'Adaptation Approaches',
22
+ },
23
+ });
24
+
12
25
  const facets = [
13
26
  multiTermFacet({
14
27
  field: 'cca_funding_programme.keyword',
15
28
  isFilterable: false,
16
29
  isMulti: true,
17
- label: 'Funding Programme',
30
+ label: messages.fundingProgramme,
18
31
  iconsFamily: 'Funding Programme',
19
32
  alwaysVisible: false,
20
33
  }),
@@ -24,7 +37,7 @@ const facets = [
24
37
  field: 'cca_adaptation_elements.keyword',
25
38
  isFilterable: false,
26
39
  isMulti: true,
27
- label: 'Adaptation Approaches',
40
+ label: messages.adaptationApproaches,
28
41
  alwaysVisible: false,
29
42
  }),
30
43
  geographic_countries,
@@ -9,19 +9,41 @@ import {
9
9
  language,
10
10
  } from './../common';
11
11
 
12
+ import { defineMessages } from 'react-intl';
13
+
14
+ const messages = defineMessages({
15
+ rastStepsOfRelevance: {
16
+ id: 'RAST step(s) of relevance',
17
+ defaultMessage: 'RAST step(s) of relevance',
18
+ },
19
+ geographicalScale: {
20
+ id: 'Geographical scale',
21
+ defaultMessage: 'Geographical scale',
22
+ },
23
+ languagesOfTheTool: {
24
+ id: 'Language(s) of the tool',
25
+ defaultMessage: 'Language(s) of the tool',
26
+ },
27
+ mostUsefulFor: { id: 'Most useful for', defaultMessage: 'Most useful for' },
28
+ userRequirements: {
29
+ id: 'User requirements',
30
+ defaultMessage: 'User requirements',
31
+ },
32
+ });
33
+
12
34
  const facets = [
13
35
  multiTermFacet({
14
36
  field: 'cca_rast_steps.keyword',
15
37
  isFilterable: false,
16
38
  isMulti: true,
17
- label: 'RAST step(s) of relevance',
39
+ label: messages.rastStepsOfRelevance,
18
40
  alwaysVisible: false,
19
41
  }),
20
42
  multiTermFacet({
21
43
  field: 'cca_geographical_scale.keyword',
22
44
  isFilterable: false,
23
45
  isMulti: true,
24
- label: 'Geographical scale',
46
+ label: messages.geographicalScale,
25
47
  alwaysVisible: false,
26
48
  }),
27
49
  cca_climate_impacts,
@@ -29,7 +51,7 @@ const facets = [
29
51
  field: 'cca_tool_language.keyword',
30
52
  isFilterable: false,
31
53
  isMulti: true,
32
- label: 'Language(s) of the tool',
54
+ label: messages.languagesOfTheTool,
33
55
  alwaysVisible: false,
34
56
  }),
35
57
  cca_adaptation_sectors,
@@ -37,14 +59,14 @@ const facets = [
37
59
  field: 'cca_most_useful_for.keyword',
38
60
  isFilterable: false,
39
61
  isMulti: true,
40
- label: 'Most useful for',
62
+ label: messages.mostUsefulFor,
41
63
  alwaysVisible: false,
42
64
  }),
43
65
  multiTermFacet({
44
66
  field: 'cca_user_requirements.keyword',
45
67
  isFilterable: false,
46
68
  isMulti: true,
47
- label: 'User requirements',
69
+ label: messages.userRequirements,
48
70
  alwaysVisible: false,
49
71
  }),
50
72
  language,