@eeacms/volto-cca-policy 0.2.83 → 0.2.84

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 CHANGED
@@ -4,6 +4,13 @@ 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.84](https://github.com/eea/volto-cca-policy/compare/0.2.83...0.2.84) - 17 December 2024
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Fix eslint [Tiberiu Ichim - [`d2ab8e1`](https://github.com/eea/volto-cca-policy/commit/d2ab8e15c70bf790a40105e9ea994d907b8cfbd5)]
12
+ - Remove console.log [Tiberiu Ichim - [`5a78a19`](https://github.com/eea/volto-cca-policy/commit/5a78a1938470e4d4997cbaf9bee2d08e6a40cf49)]
13
+ - Rework language facets for Mission [Tiberiu Ichim - [`85a611a`](https://github.com/eea/volto-cca-policy/commit/85a611ae595f682b1348936d18750ed4bd209137)]
7
14
  ### [0.2.83](https://github.com/eea/volto-cca-policy/compare/0.2.82...0.2.83) - 16 December 2024
8
15
 
9
16
  #### :rocket: Dependency updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.2.83",
3
+ "version": "0.2.84",
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",
@@ -102,5 +102,7 @@ export default function installMainSearch(config) {
102
102
  process.env.RAZZLE_ES_PROXY_ADDR || getClientProxyAddress();
103
103
  }
104
104
 
105
+ // console.log(config);
106
+
105
107
  return config;
106
108
  }
@@ -2,13 +2,13 @@ import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-sea
2
2
  import { multiTermFacet } from '@eeacms/search';
3
3
  import {
4
4
  // objectProvides,
5
- // language,
5
+ language,
6
6
  geographic_countries,
7
7
  cca_climate_impacts,
8
8
  cca_adaptation_sectors,
9
9
  } from '../common';
10
10
 
11
- const blacklist = ['IncludeArchived', 'issued.date'];
11
+ const blacklist = ['IncludeArchived', 'issued.date', 'language'];
12
12
  let globalFacets = globalSearchBaseConfig.facets.filter(
13
13
  (f) => !blacklist.includes(f.field),
14
14
  );
@@ -23,6 +23,7 @@ globalFacets = globalFacets.concat(
23
23
  cca_climate_impacts,
24
24
  cca_adaptation_sectors,
25
25
  geographic_countries,
26
+ language,
26
27
  multiTermFacet({
27
28
  field: 'cca_adaptation_elements.keyword',
28
29
  isFilterable: false,
@@ -1,7 +1,7 @@
1
1
  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
- import { cca_adaptation_sectors } from './../common';
4
+ import { cca_adaptation_sectors, language } from './../common';
5
5
 
6
6
  const blacklist = ['IncludeArchived', 'issued.date', 'spatial', 'language'];
7
7
 
@@ -21,6 +21,7 @@ const facets = [
21
21
  alwaysVisible: false,
22
22
  }),
23
23
  cca_adaptation_sectors,
24
+ language,
24
25
  // multiTermFacet({
25
26
  // field: 'spatial',
26
27
  // isFilterable: true,
@@ -1,7 +1,11 @@
1
1
  import { multiTermFacet } from '@eeacms/search';
2
2
 
3
3
  import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
4
- import { cca_climate_impacts, cca_adaptation_sectors } from './../common';
4
+ import {
5
+ cca_climate_impacts,
6
+ cca_adaptation_sectors,
7
+ language,
8
+ } from './../common';
5
9
 
6
10
  const facets = [
7
11
  cca_climate_impacts,
@@ -31,6 +35,7 @@ const facets = [
31
35
  iconsFamily: 'Hazard Type',
32
36
  alwaysVisible: false,
33
37
  }),
38
+ language,
34
39
  ];
35
40
 
36
41
  export default facets;
@@ -1,7 +1,11 @@
1
1
  import { multiTermFacet } from '@eeacms/search';
2
2
 
3
- import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
4
- import { cca_climate_impacts, cca_adaptation_sectors } from './../common';
3
+ // import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
4
+ import {
5
+ cca_climate_impacts,
6
+ cca_adaptation_sectors,
7
+ language,
8
+ } from './../common';
5
9
 
6
10
  const facets = [
7
11
  multiTermFacet({
@@ -41,7 +45,8 @@ const facets = [
41
45
  label: 'User requirements',
42
46
  alwaysVisible: false,
43
47
  }),
44
- ...globalSearchBaseConfig.facets,
48
+ language,
49
+ // ...globalSearchBaseConfig.facets,
45
50
  ];
46
51
 
47
52
  export default facets;