@eeacms/volto-marine-policy 1.1.11 → 1.1.13
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 +12 -0
- package/package.json +1 -1
- package/src/components/Result/IndicatorsTableRowItem.jsx +2 -0
- package/src/index.js +1 -1
- package/src/search/config.js +14 -0
- package/src/search/facets.js +17 -1
- package/src/search/views.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ 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.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)]
|
|
12
|
+
|
|
13
|
+
#### :bug: Bug Fixes
|
|
14
|
+
|
|
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
|
|
18
|
+
|
|
7
19
|
### [1.1.11](https://github.com/eea/volto-marine-policy/compare/1.1.10...1.1.11) - 30 May 2024
|
|
8
20
|
|
|
9
21
|
#### :rocket: New Features
|
package/package.json
CHANGED
|
@@ -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,
|
package/src/search/config.js
CHANGED
|
@@ -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 = {
|
package/src/search/facets.js
CHANGED
|
@@ -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) =>
|
|
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,
|
package/src/search/views.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
title: 'Type',
|
|
41
|
-
field: '
|
|
41
|
+
field: 'wm_dpsir_type',
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
title: 'Theme',
|
|
@@ -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
|
};
|