Skip to content

Commit 6c5f7b6

Browse files
authored
Merge pull request #14 from eea/develop
Release
2 parents 6f75259 + d399dba commit 6c5f7b6

File tree

7 files changed

+47
-5
lines changed

7 files changed

+47
-5
lines changed

CHANGELOG.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7-
### [1.1.12](https://github.com/eea/volto-marine-policy/compare/1.1.11...1.1.12) - 30 May 2024
7+
### [1.1.13](https://github.com/eea/volto-marine-policy/compare/1.1.12...1.1.13) - 31 May 2024
8+
9+
#### :rocket: New Features
10+
11+
- feat: updated fatets in Indicators table [laszlocseh - [`339d2af`](https://github.com/eea/volto-marine-policy/commit/339d2afba1fc8116316a4d7975703ba352dfb1d2)]
812

913
#### :bug: Bug Fixes
1014

11-
- fix: updated wm_dpsir_type field name [laszlocseh - [`80afa40`](https://github.com/eea/volto-marine-policy/commit/80afa401683223ab60c44a0ddd4f458c9b089ef8)]
15+
- fix: do not break tabs due to tokenWidget [nileshgulia1 - [`c7a16ae`](https://github.com/eea/volto-marine-policy/commit/c7a16aedb492fbbf45cbc1166189629d1b69eab4)]
16+
17+
### [1.1.12](https://github.com/eea/volto-marine-policy/compare/1.1.11...1.1.12) - 30 May 2024
1218

1319
### [1.1.11](https://github.com/eea/volto-marine-policy/compare/1.1.10...1.1.11) - 30 May 2024
1420

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eeacms/volto-marine-policy",
3-
"version": "1.1.12",
3+
"version": "1.1.13",
44
"description": "@eeacms/volto-marine-policy: Volto add-on",
55
"main": "src/index.js",
66
"author": "European Environment Agency: IDM2 A-Team",

src/components/Result/IndicatorsTableRowItem.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const WrappedRowItem = (props) => {
2525
<Table.Cell key={index}>
2626
{col.title === 'Name of indicator' ? (
2727
<a href={result['data_provenances'].raw.link}>{result['title']}</a>
28+
) : col.title === 'Last updated' ? (
29+
result[col.field]?.raw.substring(0, 4)
2830
) : (
2931
normalizeStr(
3032
Array.isArray(result[col.field]?.raw)

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ const applyConfig = (config) => {
113113
config.widgets.widget.text_align = TextAlignWidget;
114114
// check if it breaks the 'theme' field in volto-tabs-block in the 'horizontal carousel' layout
115115
// We have a 'theme' field in the wise catalogue metadata (CatalogueMetadata)
116-
config.widgets.id.theme = TokenWidget;
117116
config.widgets.id.indicator_theme = TokenWidget;
117+
// config.widgets.id.theme = TokenWidget;
118118

119119
config.blocks.groupBlocksOrder = [
120120
...config.blocks.groupBlocksOrder,

src/search/config.js

+14
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ export default function install(config) {
7070
runtime_mappings: build_runtime_mappings(clusters),
7171
};
7272

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+
7387
config.searchui.marinemeasure.facets = envConfig.facets;
7488

7589
config.searchui.marinemeasure.contentSectionsParams = {

src/search/facets.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import { histogramFacet, makeRange, multiTermFacet } from '@eeacms/search';
22
import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
33

4+
const sources = ['EEA', 'HELCOM', 'OSPAR', 'UNEP/MAP'];
5+
46
const facets = [
57
...globalSearchBaseConfig.facets.filter(
6-
(facet) => facet.field !== 'time_coverage',
8+
(facet) =>
9+
!['time_coverage', 'data_provenances_organisations.keyword'].includes(
10+
facet.field,
11+
),
712
),
813
multiTermFacet({
914
field: 'wm_spm_sector.keyword',
@@ -61,6 +66,17 @@ const facets = [
6166
iconsFamily: 'WISE topics',
6267
alwaysVisible: false,
6368
}),
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+
}),
6480
multiTermFacet({
6581
field: 'legislative_reference.keyword',
6682
isFilterable: false,

src/search/views.js

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ export default {
4848
title: 'Sub-theme',
4949
field: 'wm_theme',
5050
},
51+
{
52+
title: 'Last updated',
53+
field: 'indicator_last_update',
54+
},
5155
],
5256
},
5357
};

0 commit comments

Comments
 (0)