@eeacms/volto-cca-policy 0.2.24 → 0.2.26
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 +21 -0
- package/package.json +1 -1
- package/src/components/manage/Blocks/CollectionStatistics/index.js +4 -4
- package/src/components/manage/Blocks/CollectionStatistics/styles.less +1 -1
- package/src/components/manage/Blocks/FilterAceContent/FilterAceContentView.jsx +2 -2
- package/src/components/manage/Blocks/RelevantAceContent/RelevantAceContentView.jsx +17 -11
- package/src/components/manage/Blocks/SearchAceContent/SearchAceContentView.jsx +14 -8
- package/src/components/theme/ShareInfoButton/ShareInfoButton.jsx +1 -1
- package/src/components/theme/Views/C3SIndicatorView.jsx +2 -2
- package/src/components/theme/Views/CaseStudyView.jsx +1 -1
- package/src/search/mission_funding/facets-funding.js +13 -2
- package/theme/globals/blocks.less +78 -0
- package/theme/globals/site.overrides +1 -0
- package/theme/globals/site.variables +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,27 @@ 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.26](https://github.com/eea/volto-cca-policy/compare/0.2.25...0.2.26) - 17 May 2024
|
|
8
|
+
|
|
9
|
+
#### :house: Internal changes
|
|
10
|
+
|
|
11
|
+
- style: improve styling for tiles listing [kreafox - [`731c9e3`](https://github.com/eea/volto-cca-policy/commit/731c9e39eefcba2739b2e2f52e1cd695882e2704)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- test: update snapshots [kreafox - [`5e47286`](https://github.com/eea/volto-cca-policy/commit/5e47286700aa6b0a70e2636e988eaabb631e62c5)]
|
|
16
|
+
- Fallback to effective in sort [Tiberiu Ichim - [`3c77aaa`](https://github.com/eea/volto-cca-policy/commit/3c77aaa9aca8280bf4df516b5adde6ab7e35d706)]
|
|
17
|
+
### [0.2.25](https://github.com/eea/volto-cca-policy/compare/0.2.24...0.2.25) - 16 May 2024
|
|
18
|
+
|
|
19
|
+
#### :bug: Bug Fixes
|
|
20
|
+
|
|
21
|
+
- fix: facets order [kreafox - [`32b55a1`](https://github.com/eea/volto-cca-policy/commit/32b55a1f6db776d5ae6eef08eafa6daf463db34c)]
|
|
22
|
+
- fix: countries order in funding search [kreafox - [`51139f6`](https://github.com/eea/volto-cca-policy/commit/51139f63e56bfc332b29034bca6167e3f9460edb)]
|
|
23
|
+
- fix: warning messages [kreafox - [`e3e41a4`](https://github.com/eea/volto-cca-policy/commit/e3e41a42e491a4d1c0ebfcf60960254a01194e00)]
|
|
24
|
+
|
|
25
|
+
#### :hammer_and_wrench: Others
|
|
26
|
+
|
|
27
|
+
- test: update snapshots [kreafox - [`fcc582e`](https://github.com/eea/volto-cca-policy/commit/fcc582e6579e647e61c303cf6173045c0e13cc40)]
|
|
7
28
|
### [0.2.24](https://github.com/eea/volto-cca-policy/compare/0.2.23...0.2.24) - 15 May 2024
|
|
8
29
|
|
|
9
30
|
#### :rocket: New Features
|
package/package.json
CHANGED
|
@@ -24,10 +24,10 @@ const portalTypeIcons = {
|
|
|
24
24
|
Guidance: 'compass',
|
|
25
25
|
Indicator: 'area chart',
|
|
26
26
|
'Information portal': 'info circle',
|
|
27
|
-
'
|
|
27
|
+
'Publications and reports': 'newspaper',
|
|
28
28
|
'Research and knowledge project': 'university',
|
|
29
29
|
Tool: 'wrench',
|
|
30
|
-
|
|
30
|
+
'Videos and podcasts': 'video play',
|
|
31
31
|
// 'eea.climateadapt.aceproject': '',
|
|
32
32
|
// 'eea.climateadapt.adaptationoption': '',
|
|
33
33
|
// 'eea.climateadapt.c3sindicator': '',
|
|
@@ -42,11 +42,11 @@ const portalTypesToSearchTypes = {
|
|
|
42
42
|
'eea.climateadapt.indicator': 'Indicator',
|
|
43
43
|
'eea.climateadapt.c3sindicator': 'Indicator',
|
|
44
44
|
'eea.climateadapt.informationportal': 'Information portal',
|
|
45
|
-
'eea.climateadapt.publicationreport': '
|
|
45
|
+
'eea.climateadapt.publicationreport': 'Publications and reports',
|
|
46
46
|
'eea.climateadapt.aceproject': 'Research and knowledge project',
|
|
47
47
|
'eea.climateadapt.researchproject': 'Research and knowledge project',
|
|
48
48
|
'eea.climateadapt.tool': 'Tool',
|
|
49
|
-
'eea.climateadapt.video': '
|
|
49
|
+
'eea.climateadapt.video': 'Videos and podcasts',
|
|
50
50
|
// TODO: what about these?
|
|
51
51
|
// 'eea.climateadapt.aceproject': '',
|
|
52
52
|
// 'eea.climateadapt.mapgraphdataset': '',
|
|
@@ -102,7 +102,7 @@ const applyQuery = (id, data, currentLang, impacts, sectors) => {
|
|
|
102
102
|
block: id,
|
|
103
103
|
limit: data.nr_items,
|
|
104
104
|
query: defaultQuery,
|
|
105
|
-
sort_on: data.sortBy,
|
|
105
|
+
sort_on: data.sortBy || 'effective',
|
|
106
106
|
sort_order: 'descending',
|
|
107
107
|
template: 'summary',
|
|
108
108
|
itemModel: { '@type': 'simpleItem' },
|
|
@@ -151,7 +151,7 @@ const FilterAceContentView = (props) => {
|
|
|
151
151
|
|
|
152
152
|
return (
|
|
153
153
|
<div className="block filter-acecontent-block">
|
|
154
|
-
{data.title && <
|
|
154
|
+
{data.title && <h4>{data.title}</h4>}
|
|
155
155
|
<h5>
|
|
156
156
|
<FormattedMessage id="Climate impact" defaultMessage="Climate impact" />
|
|
157
157
|
</h5>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { List } from 'semantic-ui-react';
|
|
2
|
+
import { List, ListItem, ListContent, ListIcon } from 'semantic-ui-react';
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
4
|
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
5
5
|
|
|
@@ -24,14 +24,20 @@ const RelevantAceContentView = (props) => {
|
|
|
24
24
|
const showBlock = (items && items.length > 0) || results.length > 0;
|
|
25
25
|
|
|
26
26
|
const itemList = (items || []).map((item, index) => (
|
|
27
|
-
<
|
|
28
|
-
<
|
|
29
|
-
|
|
27
|
+
<ListItem key={index}>
|
|
28
|
+
<ListIcon name="angle right" />
|
|
29
|
+
<ListContent>
|
|
30
|
+
<Link to={flattenToAppURL(item.link)}>{item.item_title}</Link>
|
|
31
|
+
</ListContent>
|
|
32
|
+
</ListItem>
|
|
30
33
|
));
|
|
31
34
|
const resultsList = results.map((result, index) => (
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
+
<ListItem key={index} title={result[1]}>
|
|
36
|
+
<ListIcon name="angle right" />
|
|
37
|
+
<ListContent>
|
|
38
|
+
<Link to={flattenToAppURL(result[4])}>{result[0]}</Link>
|
|
39
|
+
</ListContent>
|
|
40
|
+
</ListItem>
|
|
35
41
|
));
|
|
36
42
|
const showResults = hasAnyFilter || search_text != null;
|
|
37
43
|
|
|
@@ -40,14 +46,14 @@ const RelevantAceContentView = (props) => {
|
|
|
40
46
|
{title && <h4>{title}</h4>}
|
|
41
47
|
|
|
42
48
|
{combine_results ? (
|
|
43
|
-
|
|
49
|
+
<List>
|
|
44
50
|
{itemList}
|
|
45
51
|
{!isEdit && showResults && resultsList}
|
|
46
|
-
|
|
52
|
+
</List>
|
|
47
53
|
) : items && items.length > 0 ? (
|
|
48
|
-
itemList
|
|
54
|
+
<List>{itemList}</List>
|
|
49
55
|
) : (
|
|
50
|
-
!isEdit && showResults && resultsList
|
|
56
|
+
<List>{!isEdit && showResults && resultsList}</List>
|
|
51
57
|
)}
|
|
52
58
|
</div>
|
|
53
59
|
) : (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { List, Icon } from 'semantic-ui-react';
|
|
1
|
+
import { List, Icon, ListItem, ListContent, ListIcon } from 'semantic-ui-react';
|
|
2
2
|
import { Link } from 'react-router-dom';
|
|
3
3
|
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
4
4
|
import { useIntl, FormattedMessage } from 'react-intl';
|
|
@@ -13,19 +13,25 @@ export default function SearchAceContentView(props) {
|
|
|
13
13
|
{data.title && <h4>{data.title}</h4>}
|
|
14
14
|
<List>
|
|
15
15
|
{results.map((result, index) => (
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
<ListItem key={index}>
|
|
17
|
+
<ListIcon name="angle right" />
|
|
18
|
+
<ListContent>
|
|
19
|
+
<Link to={flattenToAppURL(result[2])}>
|
|
20
|
+
{intl.formatMessage({
|
|
21
|
+
id: result[0],
|
|
22
|
+
defaultMessage: result[0],
|
|
23
|
+
})}{' '}
|
|
24
|
+
({result[1]})
|
|
25
|
+
</Link>
|
|
26
|
+
</ListContent>
|
|
27
|
+
</ListItem>
|
|
22
28
|
))}
|
|
23
29
|
</List>
|
|
24
30
|
<Link
|
|
25
31
|
to="/en/help/share-your-info"
|
|
26
32
|
className="ui button icon left labeled primary"
|
|
27
33
|
>
|
|
28
|
-
<Icon
|
|
34
|
+
<Icon className="ri-share-line" />
|
|
29
35
|
<FormattedMessage
|
|
30
36
|
id="Share your information"
|
|
31
37
|
defaultMessage="Share your information"
|
|
@@ -226,9 +226,9 @@ function C3SIndicatorView(props) {
|
|
|
226
226
|
>
|
|
227
227
|
<span>Visualisation and Navigation</span>
|
|
228
228
|
{activeAccIndex === 0 ? (
|
|
229
|
-
<Icon
|
|
229
|
+
<Icon className="ri-arrow-up-s-line" />
|
|
230
230
|
) : (
|
|
231
|
-
<Icon
|
|
231
|
+
<Icon className="ri-arrow-down-s-line" />
|
|
232
232
|
)}
|
|
233
233
|
</Accordion.Title>
|
|
234
234
|
<Accordion.Content active={activeAccIndex === 0}>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { multiTermFacet } from '@eeacms/search';
|
|
2
|
-
|
|
3
2
|
import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
|
|
3
|
+
import spatialWhitelist from '@eeacms/volto-globalsearch/config/json/spatialWhitelist';
|
|
4
4
|
import { cca_adaptation_sectors } from './../common';
|
|
5
5
|
|
|
6
|
-
const blacklist = ['IncludeArchived', 'issued.date'];
|
|
6
|
+
const blacklist = ['IncludeArchived', 'issued.date', 'spatial'];
|
|
7
7
|
|
|
8
8
|
const facets = [
|
|
9
9
|
multiTermFacet({
|
|
@@ -21,6 +21,17 @@ const facets = [
|
|
|
21
21
|
alwaysVisible: false,
|
|
22
22
|
}),
|
|
23
23
|
cca_adaptation_sectors,
|
|
24
|
+
multiTermFacet({
|
|
25
|
+
field: 'spatial',
|
|
26
|
+
isFilterable: true,
|
|
27
|
+
isMulti: true,
|
|
28
|
+
label: 'Countries',
|
|
29
|
+
spatialWhitelist: spatialWhitelist,
|
|
30
|
+
show: 10000,
|
|
31
|
+
iconsFamily: 'Countries',
|
|
32
|
+
enableExact: true,
|
|
33
|
+
alwaysVisible: false,
|
|
34
|
+
}),
|
|
24
35
|
|
|
25
36
|
...globalSearchBaseConfig.facets.filter((f) => !blacklist.includes(f.field)),
|
|
26
37
|
];
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.relevant-acecontent-block,
|
|
2
|
+
.search-acecontent-block {
|
|
3
|
+
.ui.list > .item a,
|
|
4
|
+
.ui.list .list > .item a {
|
|
5
|
+
color: @linkColor;
|
|
6
|
+
|
|
7
|
+
&:hover {
|
|
8
|
+
color: @linkHoverColor;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
.content {
|
|
12
|
+
padding-left: 6px !important;
|
|
13
|
+
}
|
|
14
|
+
.ui.list > .item > i.icon {
|
|
15
|
+
top: 5px;
|
|
16
|
+
position: relative;
|
|
17
|
+
padding: 0;
|
|
18
|
+
color: @linkColor;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.filter-acecontent-block {
|
|
24
|
+
.react-select-container {
|
|
25
|
+
width: 230px;
|
|
26
|
+
border: 1px solid #bcbec0;
|
|
27
|
+
|
|
28
|
+
.react-select__control {
|
|
29
|
+
min-height: auto;
|
|
30
|
+
border: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.react-select__value-container {
|
|
34
|
+
padding: 5px !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.react-select__menu {
|
|
38
|
+
border: 1px solid #bcbec0;
|
|
39
|
+
width: 230px;
|
|
40
|
+
margin-left: -1px;
|
|
41
|
+
border-top: none;
|
|
42
|
+
margin-top: -1px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.react-select__indicator {
|
|
46
|
+
top: 4px;
|
|
47
|
+
right: 6px;
|
|
48
|
+
position: relative;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.listing-body {
|
|
52
|
+
position: relative;
|
|
53
|
+
&:before {
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 2px;
|
|
56
|
+
left: 0;
|
|
57
|
+
font-family: 'Icons';
|
|
58
|
+
content: '\f105';
|
|
59
|
+
color: @linkColor;
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.listing-header {
|
|
65
|
+
display: inline-block !important;
|
|
66
|
+
padding-left: 13px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.u-item.listing-item {
|
|
70
|
+
p {
|
|
71
|
+
color: @linkColor;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
a:hover p {
|
|
75
|
+
color: @linkHoverColor;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|