@eeacms/volto-marine-policy 1.1.12 → 1.1.14

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,11 +4,22 @@ 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
- ### [1.1.12](https://github.com/eea/volto-marine-policy/compare/1.1.11...1.1.12) - 30 May 2024
7
+ ### [1.1.14](https://github.com/eea/volto-marine-policy/compare/1.1.13...1.1.14) - 5 June 2024
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - disable country-profiles externalRoutes [laszlocseh - [`910b21b`](https://github.com/eea/volto-marine-policy/commit/910b21b6e397c58e378ded45ea91105cc6daa24a)]
12
+ ### [1.1.13](https://github.com/eea/volto-marine-policy/compare/1.1.12...1.1.13) - 31 May 2024
13
+
14
+ #### :rocket: New Features
15
+
16
+ - feat: updated fatets in Indicators table [laszlocseh - [`339d2af`](https://github.com/eea/volto-marine-policy/commit/339d2afba1fc8116316a4d7975703ba352dfb1d2)]
8
17
 
9
18
  #### :bug: Bug Fixes
10
19
 
11
- - fix: updated wm_dpsir_type field name [laszlocseh - [`80afa40`](https://github.com/eea/volto-marine-policy/commit/80afa401683223ab60c44a0ddd4f458c9b089ef8)]
20
+ - fix: do not break tabs due to tokenWidget [nileshgulia1 - [`c7a16ae`](https://github.com/eea/volto-marine-policy/commit/c7a16aedb492fbbf45cbc1166189629d1b69eab4)]
21
+
22
+ ### [1.1.12](https://github.com/eea/volto-marine-policy/compare/1.1.11...1.1.12) - 30 May 2024
12
23
 
13
24
  ### [1.1.11](https://github.com/eea/volto-marine-policy/compare/1.1.10...1.1.11) - 30 May 2024
14
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-marine-policy",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "@eeacms/volto-marine-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -25,6 +25,8 @@ const WrappedRowItem = (props) => {
25
25
  <Table.Cell key={index}>
26
26
  {col.title === 'Name of indicator' ? (
27
27
  <a href={result['data_provenances'].raw.link}>{result['title']}</a>
28
+ ) : col.title === 'Last updated' ? (
29
+ result[col.field]?.raw.substring(0, 4)
28
30
  ) : (
29
31
  normalizeStr(
30
32
  Array.isArray(result[col.field]?.raw)
package/src/index.js CHANGED
@@ -113,8 +113,8 @@ const applyConfig = (config) => {
113
113
  config.widgets.widget.text_align = TextAlignWidget;
114
114
  // check if it breaks the 'theme' field in volto-tabs-block in the 'horizontal carousel' layout
115
115
  // We have a 'theme' field in the wise catalogue metadata (CatalogueMetadata)
116
- config.widgets.id.theme = TokenWidget;
117
116
  config.widgets.id.indicator_theme = TokenWidget;
117
+ // config.widgets.id.theme = TokenWidget;
118
118
 
119
119
  config.blocks.groupBlocksOrder = [
120
120
  ...config.blocks.groupBlocksOrder,
@@ -212,17 +212,17 @@ const applyConfig = (config) => {
212
212
  return payload.location.pathname;
213
213
  },
214
214
  },
215
- {
216
- match: {
217
- path:
218
- '/(.*)marine(-new)?/countries-and-regional-seas/country-profiles(.*)',
219
- exact: false,
220
- strict: false,
221
- },
222
- url(payload) {
223
- return payload.location.pathname;
224
- },
225
- },
215
+ // {
216
+ // match: {
217
+ // path:
218
+ // '/(.*)marine(-new)?/countries-and-regional-seas/country-profiles(.*)',
219
+ // exact: false,
220
+ // strict: false,
221
+ // },
222
+ // url(payload) {
223
+ // return payload.location.pathname;
224
+ // },
225
+ // },
226
226
  // {
227
227
  // match: {
228
228
  // path:
@@ -70,6 +70,20 @@ export default function install(config) {
70
70
  runtime_mappings: build_runtime_mappings(clusters),
71
71
  };
72
72
 
73
+ config.searchui.marinemeasure.sortOptions = [
74
+ ...config.searchui.marinemeasure.sortOptions,
75
+ {
76
+ name: 'Source (A-Z)',
77
+ value: 'data_provenances_organisations.keyword',
78
+ direction: 'asc',
79
+ },
80
+ {
81
+ name: 'Source (Z-A)',
82
+ value: 'data_provenances_organisations.keyword',
83
+ direction: 'desc',
84
+ },
85
+ ];
86
+
73
87
  config.searchui.marinemeasure.facets = envConfig.facets;
74
88
 
75
89
  config.searchui.marinemeasure.contentSectionsParams = {
@@ -1,9 +1,14 @@
1
1
  import { histogramFacet, makeRange, multiTermFacet } from '@eeacms/search';
2
2
  import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
3
3
 
4
+ const sources = ['EEA', 'HELCOM', 'OSPAR', 'UNEP/MAP'];
5
+
4
6
  const facets = [
5
7
  ...globalSearchBaseConfig.facets.filter(
6
- (facet) => facet.field !== 'time_coverage',
8
+ (facet) =>
9
+ !['time_coverage', 'data_provenances_organisations.keyword'].includes(
10
+ facet.field,
11
+ ),
7
12
  ),
8
13
  multiTermFacet({
9
14
  field: 'wm_spm_sector.keyword',
@@ -61,6 +66,17 @@ const facets = [
61
66
  iconsFamily: 'WISE topics',
62
67
  alwaysVisible: false,
63
68
  }),
69
+ multiTermFacet({
70
+ field: 'data_provenances_organisations.keyword',
71
+ isFilterable: false,
72
+ isMulti: true,
73
+ label: 'Source',
74
+ iconsFamily: 'Sources topics',
75
+ alwaysVisible: false,
76
+ sortOn: 'custom',
77
+ sortOrder: 'ascending',
78
+ facetValues: sources,
79
+ }),
64
80
  multiTermFacet({
65
81
  field: 'legislative_reference.keyword',
66
82
  isFilterable: false,
@@ -48,6 +48,10 @@ export default {
48
48
  title: 'Sub-theme',
49
49
  field: 'wm_theme',
50
50
  },
51
+ {
52
+ title: 'Last updated',
53
+ field: 'indicator_last_update',
54
+ },
51
55
  ],
52
56
  },
53
57
  };