@eeacms/volto-clms-theme 1.0.116 → 1.0.119
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 +47 -0
- package/package.json +1 -1
- package/src/components/Blocks/CustomTemplates/VoltoSearchBlock/CheckboxTreeParentFacet.jsx +4 -11
- package/src/components/Blocks/CustomTemplates/VoltoSearchBlock/rewriteOptions.js +16 -0
- package/src/components/Blocks/CustomTemplates/VoltoSearchBlock/utils.js +13 -1
- package/src/components/CLMSDatasetDetailView/DataSetInfoContent.jsx +9 -7
- package/src/components/CLMSLoginView/CLMSLogin.jsx +1 -2
- package/src/components/CLMSSubscriptionView/SubscriptionView.jsx +1 -1
- package/src/components/CclLoginModal/CclLoginModal.jsx +2 -4
- package/src/components/Widgets/TaxonomyWidget.jsx +1 -1
- package/src/components/Widgets/taxonomyUtils.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,49 @@ 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.0.119](https://github.com/eea/volto-clms-theme/compare/1.0.118...1.0.119) - 1 September 2022
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: restore taxonomy item ordering [Mikel Larreategi - [`5080a9f`](https://github.com/eea/volto-clms-theme/commit/5080a9f456888bba77042b673f62e3db5cfe86fb)]
|
|
12
|
+
- fix: reverse checkbox label ordering [ionlizarazu - [`cd2ea37`](https://github.com/eea/volto-clms-theme/commit/cd2ea377f9f6c4cdd584dd9c5df41e3574fcd686)]
|
|
13
|
+
- fix: search facet checkbox functionality. Order by title and replace starting text 00# from the checkbox labels [ionlizarazu - [`df69da5`](https://github.com/eea/volto-clms-theme/commit/df69da5124b25ac098b4204e20663524c2ebb91a)]
|
|
14
|
+
|
|
15
|
+
### [1.0.118](https://github.com/eea/volto-clms-theme/compare/1.0.117...1.0.118) - 1 September 2022
|
|
16
|
+
|
|
17
|
+
#### :bug: Bug Fixes
|
|
18
|
+
|
|
19
|
+
- fix: show also Document content-types in global search labelled as Page [Mikel Larreategi - [`9d36803`](https://github.com/eea/volto-clms-theme/commit/9d36803e7ac998e747d12c0860140e9887068660)]
|
|
20
|
+
- fix: inputValue is true on unsubscribe view [Unai - [`5fd025c`](https://github.com/eea/volto-clms-theme/commit/5fd025cdc012e8d7861af61b20daeba6fa397eed)]
|
|
21
|
+
- fix: slint [Unai - [`920d214`](https://github.com/eea/volto-clms-theme/commit/920d21442b61ea90503e8177c213b91ca0293dbb)]
|
|
22
|
+
- fix(loginmodal): removed toPublicURL [Unai - [`a62804e`](https://github.com/eea/volto-clms-theme/commit/a62804eead7c7013a8270e4ef00da41e1e47e868)]
|
|
23
|
+
|
|
24
|
+
### [1.0.117](https://github.com/eea/volto-clms-theme/compare/1.0.116...1.0.117) - 1 September 2022
|
|
25
|
+
|
|
26
|
+
#### :bug: Bug Fixes
|
|
27
|
+
|
|
28
|
+
- fix: do not force to open EU login link in a new window [Mikel Larreategi - [`13bcaad`](https://github.com/eea/volto-clms-theme/commit/13bcaadd631d96127411cca61b9b1428aec763e4)]
|
|
29
|
+
- fix: fix typo [Mikel Larreategi - [`8714026`](https://github.com/eea/volto-clms-theme/commit/87140265aa55ea8e49674809355170d4593318f5)]
|
|
30
|
+
- fix: sort gemet vocabulary values CLMS-1158 [Mikel Larreategi - [`46a5b97`](https://github.com/eea/volto-clms-theme/commit/46a5b97506d1297aaa31d53dafebd1c23b273a3d)]
|
|
31
|
+
- fix: display the dropdown above the footer [ionlizarazu - [`e480a94`](https://github.com/eea/volto-clms-theme/commit/e480a947a12a5b7977a8bf59b4afe0c071734d67)]
|
|
32
|
+
- fix: CLMS-1067 [Mikel Larreategi - [`e1b0346`](https://github.com/eea/volto-clms-theme/commit/e1b03468ebd2041e423a804dc4ae6ea4fbf5f3fb)]
|
|
33
|
+
|
|
34
|
+
#### :nail_care: Enhancements
|
|
35
|
+
|
|
36
|
+
- refactor(news events and datasets): remove related datasets and product accordions from news and events and replaced image scale used in datasets [Unai - [`6ec497e`](https://github.com/eea/volto-clms-theme/commit/6ec497eba91bc7345e281a9996e77df2420175e3)]
|
|
37
|
+
- refactor(meeting): changed from Meeting Registration to Event Registration [Unai - [`f493ce7`](https://github.com/eea/volto-clms-theme/commit/f493ce768376f4ca30172810c54302c81d5c9610)]
|
|
38
|
+
- refactor(widget): changed used widget in datetime cases [Unai - [`a4d8b8e`](https://github.com/eea/volto-clms-theme/commit/a4d8b8e099278f76ec2e5e7fd0d0ab7376f6dd00)]
|
|
39
|
+
|
|
40
|
+
#### :hammer_and_wrench: Others
|
|
41
|
+
|
|
42
|
+
- Revert "refactor(widget): changed used widget in datetime cases" [Mikel Larreategi - [`3d8da47`](https://github.com/eea/volto-clms-theme/commit/3d8da47a479c8fb3687360adaa577cc45e9c0873)]
|
|
43
|
+
- Revert "refactor(meeting): changed from Meeting Registration to Event Registration" [Mikel Larreategi - [`c62583c`](https://github.com/eea/volto-clms-theme/commit/c62583ccf79429508a8f23d215acd16921ef7f1b)]
|
|
44
|
+
- Revert "refactor(news events and datasets): remove related datasets and product accordions from news and events and replaced image scale used in datasets" [Mikel Larreategi - [`8d3699b`](https://github.com/eea/volto-clms-theme/commit/8d3699b98e7aafb4d97ecae4679b2c6e25b6e4bb)]
|
|
45
|
+
- Revert "new version of volto-form-block and modifications to add links to checkbox description" [Mikel Larreategi - [`369478c`](https://github.com/eea/volto-clms-theme/commit/369478c74ee083d9e2225fefe098b833ded6e66d)]
|
|
46
|
+
- Revert "fix: CLMS-1067" [Mikel Larreategi - [`2ed3159`](https://github.com/eea/volto-clms-theme/commit/2ed31599ece70dbe5792abbdd7e325cb74c6f29e)]
|
|
47
|
+
- Revert "fix: display the dropdown above the footer" [Mikel Larreategi - [`5538ec6`](https://github.com/eea/volto-clms-theme/commit/5538ec6c73fbd7c94769aa98a8100a4e6ee8871c)]
|
|
48
|
+
- Revert "fix: sort gemet vocabulary values CLMS-1158" [Mikel Larreategi - [`0f7535e`](https://github.com/eea/volto-clms-theme/commit/0f7535e902a684317eb78391b7372856b395007d)]
|
|
49
|
+
- new version of volto-form-block and modifications to add links to checkbox description [ionlizarazu - [`b129e04`](https://github.com/eea/volto-clms-theme/commit/b129e04d8769e34a3acc3dc3feb1898ab18f2b51)]
|
|
7
50
|
### [1.0.116](https://github.com/eea/volto-clms-theme/compare/1.0.115...1.0.116) - 30 August 2022
|
|
8
51
|
|
|
9
52
|
#### :hammer_and_wrench: Others
|
|
@@ -100,6 +143,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
100
143
|
#### :hammer_and_wrench: Others
|
|
101
144
|
|
|
102
145
|
- related products and datasets added to news and meeting views and login-plone route created [Unai - [`5704a1a`](https://github.com/eea/volto-clms-theme/commit/5704a1a766148746162b60efaf232ea90dc20cf4)]
|
|
146
|
+
- Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`46eb694`](https://github.com/eea/volto-clms-theme/commit/46eb69415280a3c982405299135027ae4221426a)]
|
|
103
147
|
- sort items according to the lowercased label and put those with special meaning at the end [Mikel Larreategi - [`6410abe`](https://github.com/eea/volto-clms-theme/commit/6410abe096f60dcad54dced2026c9df9b7946d68)]
|
|
104
148
|
- lint fix [Unai - [`1264a7a`](https://github.com/eea/volto-clms-theme/commit/1264a7adfe8d679fea1bd821ad087add20f4271d)]
|
|
105
149
|
- footer newsletter subscription change, global search maxLength change from 8000 to 200 and /login design change [Unai - [`a09d24a`](https://github.com/eea/volto-clms-theme/commit/a09d24adbb6fa053fb2a2cc0071506b906593b42)]
|
|
@@ -250,6 +294,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
250
294
|
- search block new features [ionlizarazu - [`8e814cb`](https://github.com/eea/volto-clms-theme/commit/8e814cbd359782540c21fe37b37ef146d331f0d6)]
|
|
251
295
|
- language selector cookie management [ionlizarazu - [`1385ac9`](https://github.com/eea/volto-clms-theme/commit/1385ac95795702206d3623ba6e780faa43a89e0a)]
|
|
252
296
|
- toolbar cookie management [ionlizarazu - [`5c23200`](https://github.com/eea/volto-clms-theme/commit/5c23200790b20e1d4f1bc966463c37bf4c808f47)]
|
|
297
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`0316a0d`](https://github.com/eea/volto-clms-theme/commit/0316a0d8b6fb0fa14af13002415f3c95d9f8ede3)]
|
|
253
298
|
### [1.0.84](https://github.com/eea/volto-clms-theme/compare/1.0.83...1.0.84) - 18 March 2022
|
|
254
299
|
|
|
255
300
|
#### :hammer_and_wrench: Others
|
|
@@ -1154,11 +1199,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1154
1199
|
#### :hammer_and_wrench: Others
|
|
1155
1200
|
|
|
1156
1201
|
- replace @collective/volto-dropdownmenu with volto-dropdownmenu [ionlizarazu - [`07f004f`](https://github.com/eea/volto-clms-theme/commit/07f004fe0219e403fb51bc045c83d34f3b981f76)]
|
|
1202
|
+
- yarn.lock [ionlizarazu - [`fe1ca04`](https://github.com/eea/volto-clms-theme/commit/fe1ca04889d29fe7b653db4c69af2751b84b8a1a)]
|
|
1157
1203
|
- add NODE_ENV parameter [ionlizarazu - [`101f27c`](https://github.com/eea/volto-clms-theme/commit/101f27c25b8fbd192e1b11865e95cf5ffee08c1b)]
|
|
1158
1204
|
- upgrade volto-dropdownmenu version [ionlizarazu - [`2081855`](https://github.com/eea/volto-clms-theme/commit/2081855301f4c708776e0dbab39db143cee00dbc)]
|
|
1159
1205
|
- HomeSearch block missing url behaviour [ionlizarazu - [`d20a378`](https://github.com/eea/volto-clms-theme/commit/d20a378ce3f254b8343692348f314bf281974542)]
|
|
1160
1206
|
- babel configuration [ionlizarazu - [`203ea2d`](https://github.com/eea/volto-clms-theme/commit/203ea2de07f99ca3403e4ca220ca74d7ce69b61d)]
|
|
1161
1207
|
- prettier [ionlizarazu - [`e79e26b`](https://github.com/eea/volto-clms-theme/commit/e79e26bf2fa40ba7b4eb53a24dabd87928221c28)]
|
|
1208
|
+
- add yarn lock [ionlizarazu - [`e1ab28b`](https://github.com/eea/volto-clms-theme/commit/e1ab28b060d5a74431c368b0de82a68dabce1eab)]
|
|
1162
1209
|
- Jenkinsfile cypress test [ionlizarazu - [`b385d65`](https://github.com/eea/volto-clms-theme/commit/b385d65986f717c60f8c434a08fc11b829d08eb4)]
|
|
1163
1210
|
- cypress [ionlizarazu - [`a243cf0`](https://github.com/eea/volto-clms-theme/commit/a243cf0182fa3dd113c16ff495c71e310252d83b)]
|
|
1164
1211
|
- some fixes [ionlizarazu - [`046279b`](https://github.com/eea/volto-clms-theme/commit/046279b9d05bea8a64eca03eed493e02621534c9)]
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
selectFacetStateToValue,
|
|
11
11
|
selectFacetValueToQuery,
|
|
12
12
|
} from '@plone/volto/components/manage/Blocks/Search/components/base';
|
|
13
|
-
import { checkAllChildren } from './utils';
|
|
13
|
+
import { checkAllChildren, uncheckOptionAndChildren } from './utils';
|
|
14
14
|
|
|
15
15
|
const hasAllChildrensSelected = (value, childrens) => {
|
|
16
16
|
var result = true;
|
|
@@ -92,16 +92,9 @@ const CheckboxListParent = ({ option, key, onChange, value, id }) => {
|
|
|
92
92
|
...checkAllChildren(value, option).map((f) => f.value),
|
|
93
93
|
])
|
|
94
94
|
: onChange(id, [
|
|
95
|
-
...value
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
(item) =>
|
|
99
|
-
option.childrens?.length > 0 &&
|
|
100
|
-
!option.childrens
|
|
101
|
-
.map((ch) => ch.value)
|
|
102
|
-
.includes(item.value),
|
|
103
|
-
)
|
|
104
|
-
.map((f) => f.value),
|
|
95
|
+
...uncheckOptionAndChildren(value, option).map(
|
|
96
|
+
(f) => f.value,
|
|
97
|
+
),
|
|
105
98
|
]);
|
|
106
99
|
}}
|
|
107
100
|
label={
|
|
@@ -7,6 +7,7 @@ export const portal_types_labels = {
|
|
|
7
7
|
WorkOpportunity: 'Job vacancy',
|
|
8
8
|
Tender: 'Tender',
|
|
9
9
|
TechnicalLibrary: 'Product documentation',
|
|
10
|
+
Document: 'Page',
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export const category_labels = {
|
|
@@ -48,6 +49,7 @@ const rewriteOptions = (name, choices) => {
|
|
|
48
49
|
'WorkOpportunity',
|
|
49
50
|
'Tender',
|
|
50
51
|
'TechnicalLibrary',
|
|
52
|
+
'Document',
|
|
51
53
|
];
|
|
52
54
|
if (name === 'portal_type') {
|
|
53
55
|
result = choices
|
|
@@ -78,6 +80,20 @@ const rewriteOptions = (name, choices) => {
|
|
|
78
80
|
return 0;
|
|
79
81
|
});
|
|
80
82
|
}
|
|
83
|
+
if (name === 'taxonomy_technical_library_categorization') {
|
|
84
|
+
result = choices
|
|
85
|
+
.sort((a, b) => {
|
|
86
|
+
if (a.label < b.label) {
|
|
87
|
+
return -1;
|
|
88
|
+
} else if (a.label > b.label) {
|
|
89
|
+
return 1;
|
|
90
|
+
}
|
|
91
|
+
return 0;
|
|
92
|
+
})
|
|
93
|
+
.map((opt) => {
|
|
94
|
+
return { ...opt, label: opt.label.replace(/^[0-9][0-9]#/, '') };
|
|
95
|
+
});
|
|
96
|
+
}
|
|
81
97
|
return result;
|
|
82
98
|
};
|
|
83
99
|
|
|
@@ -7,5 +7,17 @@ export const checkAllChildren = (value, option) => {
|
|
|
7
7
|
value.push(ch);
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
|
-
return value;
|
|
10
|
+
return [...value, { label: option.label, value: option.value }];
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const uncheckOptionAndChildren = (value, option) => {
|
|
14
|
+
return value
|
|
15
|
+
.filter((item) => item.value !== option.value)
|
|
16
|
+
.filter((item) => {
|
|
17
|
+
if (option.childrens?.length > 0) {
|
|
18
|
+
return !option.childrens.map((ch) => ch.value).includes(item.value);
|
|
19
|
+
} else {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
11
23
|
};
|
|
@@ -85,13 +85,15 @@ const DataSetInfoContent = (props) => {
|
|
|
85
85
|
></CclInfoDescription>
|
|
86
86
|
)}
|
|
87
87
|
</CclInfoContainer>
|
|
88
|
-
{citation?.data &&
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
{citation?.data &&
|
|
89
|
+
citation?.data !== '<p><br/></p>' &&
|
|
90
|
+
citation?.data !== '<p></p>' && (
|
|
91
|
+
<CclCitation
|
|
92
|
+
title="Citation status"
|
|
93
|
+
marginBottom={true}
|
|
94
|
+
children={<StringToHTML string={citation?.data} />}
|
|
95
|
+
></CclCitation>
|
|
96
|
+
)}
|
|
95
97
|
<div className="dataset-info-documents dropdown">
|
|
96
98
|
<div className="accordion-block">
|
|
97
99
|
{renderAccordion(geonetwork_identifiers?.items, libraries) && (
|
|
@@ -45,7 +45,7 @@ function CLMSLoginView(props) {
|
|
|
45
45
|
If you have EU Login account, please click 'Login using EU Login'.
|
|
46
46
|
</p>
|
|
47
47
|
<p>
|
|
48
|
-
If you don't have EU Login account, please
|
|
48
|
+
If you don't have EU Login account, please follow this{' '}
|
|
49
49
|
<UniversalLink
|
|
50
50
|
openLinkInNewTab
|
|
51
51
|
href="https://ecas.ec.europa.eu/cas/eim/external/register.cgi"
|
|
@@ -68,7 +68,6 @@ function CLMSLoginView(props) {
|
|
|
68
68
|
<div className="modal-buttons">
|
|
69
69
|
<UniversalLink
|
|
70
70
|
href={toPublicURL(loginUrl) || '#'}
|
|
71
|
-
openLinkInNewTab
|
|
72
71
|
className="ccl-button ccl-button-green"
|
|
73
72
|
>
|
|
74
73
|
Login using EU Login
|
|
@@ -4,7 +4,6 @@ import { useDispatch, useSelector } from 'react-redux';
|
|
|
4
4
|
import { getRegistry } from '@eeacms/volto-clms-theme/actions';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import config from '@plone/volto/registry';
|
|
7
|
-
import { toPublicURL } from '@plone/volto/helpers/Url/Url';
|
|
8
7
|
import { UniversalLink } from '@plone/volto/components';
|
|
9
8
|
import './ccl-login-modal.css';
|
|
10
9
|
/**
|
|
@@ -70,7 +69,7 @@ function CclLoginModal(props) {
|
|
|
70
69
|
If you have EU Login account, please click 'Login using EU Login'.
|
|
71
70
|
</p>
|
|
72
71
|
<p>
|
|
73
|
-
If you don't have EU Login account, please
|
|
72
|
+
If you don't have EU Login account, please follow this{' '}
|
|
74
73
|
<UniversalLink
|
|
75
74
|
openLinkInNewTab
|
|
76
75
|
href="https://ecas.ec.europa.eu/cas/eim/external/register.cgi"
|
|
@@ -92,8 +91,7 @@ function CclLoginModal(props) {
|
|
|
92
91
|
<div className="actions">
|
|
93
92
|
<div className="modal-buttons">
|
|
94
93
|
<UniversalLink
|
|
95
|
-
href={
|
|
96
|
-
openLinkInNewTab
|
|
94
|
+
href={loginUrl || '#'}
|
|
97
95
|
className="ccl-button ccl-button-green"
|
|
98
96
|
>
|
|
99
97
|
Login using EU Login
|