@eeacms/volto-clms-theme 1.1.27 → 1.1.29
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 +7 -2
- package/package.json +1 -1
- package/src/components/Blocks/CclRelatedListingBlock/CclRelatedListingView.jsx +9 -4
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclProductTabsView.jsx +2 -2
- package/src/components/CLMSDatasetDetailView/CLMSDatasetDetailView.jsx +2 -2
- package/src/components/CLMSDatasetDetailView/DataSetInfoContent.jsx +5 -1
- package/src/components/Widgets/DatasetDownloadInformationWidget.jsx +1 -1
- package/src/components/Widgets/MapLayersWidget.jsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,16 @@ 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.
|
|
7
|
+
### [1.1.29](https://github.com/eea/volto-clms-theme/compare/1.1.28...1.1.29) - 18 July 2023
|
|
8
8
|
|
|
9
9
|
#### :hammer_and_wrench: Others
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- change map viewer with data viewer [Mikel Larreategi - [`3686dbc`](https://github.com/eea/volto-clms-theme/commit/3686dbcefc4917d1572615741ea5eedf522e2f89)]
|
|
12
|
+
- change map viewer with data viewer [Mikel Larreategi - [`8bd19ff`](https://github.com/eea/volto-clms-theme/commit/8bd19ff5cff27a0536a2a7250de5ac9b7e53ff54)]
|
|
13
|
+
### [1.1.28](https://github.com/eea/volto-clms-theme/compare/1.1.27...1.1.28) - 14 July 2023
|
|
14
|
+
|
|
15
|
+
### [1.1.27](https://github.com/eea/volto-clms-theme/compare/1.1.26...1.1.27) - 14 July 2023
|
|
16
|
+
|
|
12
17
|
### [1.1.26](https://github.com/eea/volto-clms-theme/compare/1.1.25...1.1.26) - 14 July 2023
|
|
13
18
|
|
|
14
19
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -17,6 +17,8 @@ const CclRelatedListingView = (props) => {
|
|
|
17
17
|
properties,
|
|
18
18
|
metadata,
|
|
19
19
|
associated_elements = 'products',
|
|
20
|
+
directQuery = {},
|
|
21
|
+
directRelation = false,
|
|
20
22
|
searchParamsExecution = () => {},
|
|
21
23
|
} = props;
|
|
22
24
|
const use_pagination = useFilteredPagination(
|
|
@@ -34,10 +36,13 @@ const CclRelatedListingView = (props) => {
|
|
|
34
36
|
(state) => state.search.subrequests?.[id],
|
|
35
37
|
);
|
|
36
38
|
const uid = metadata ? metadata['UID'] : properties['UID'];
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
|
|
40
|
+
const associated = directRelation
|
|
41
|
+
? directQuery
|
|
42
|
+
: associated_elements === 'products'
|
|
43
|
+
? { associated_products: uid }
|
|
44
|
+
: { associated_datasets: uid };
|
|
45
|
+
|
|
41
46
|
let libraries = searchSubrequests?.items || [];
|
|
42
47
|
const variationsConfig =
|
|
43
48
|
config.blocks.blocksConfig['relatedListing'].variations;
|
|
@@ -31,8 +31,8 @@ const CclProductTabsView = (props) => {
|
|
|
31
31
|
className="ccl-button ccl-button--default"
|
|
32
32
|
>
|
|
33
33
|
<FormattedMessage
|
|
34
|
-
id="View in the
|
|
35
|
-
defaultMessage="View in the
|
|
34
|
+
id="View in the data viewer"
|
|
35
|
+
defaultMessage="View in the data viewer"
|
|
36
36
|
/>
|
|
37
37
|
</a>
|
|
38
38
|
</div>
|
|
@@ -312,8 +312,8 @@ const CLMSDatasetDetailView = ({ content, token }) => {
|
|
|
312
312
|
url={'/' + locale + '/map-viewer?dataset=' + content.UID}
|
|
313
313
|
>
|
|
314
314
|
<FormattedMessage
|
|
315
|
-
id="View in the
|
|
316
|
-
defaultMessage="View in the
|
|
315
|
+
id="View in the data viewer"
|
|
316
|
+
defaultMessage="View in the data viewer"
|
|
317
317
|
/>
|
|
318
318
|
</CclButton>
|
|
319
319
|
</div>
|
|
@@ -370,7 +370,11 @@ const DataSetInfoContent = (props) => {
|
|
|
370
370
|
variation: 'CclCardsdoc',
|
|
371
371
|
content_type: 'DataSet',
|
|
372
372
|
}}
|
|
373
|
-
associated_elements="
|
|
373
|
+
associated_elements="datasets"
|
|
374
|
+
directRelation={true}
|
|
375
|
+
directQuery={{
|
|
376
|
+
UID: props.datasets.map((item) => item.token),
|
|
377
|
+
}}
|
|
374
378
|
searchParamsExecution={() => {
|
|
375
379
|
const newIndex =
|
|
376
380
|
activeIndex.indexOf(1) === -1
|
|
@@ -17,7 +17,7 @@ const ItemSchema = () => ({
|
|
|
17
17
|
full_path: {
|
|
18
18
|
title: 'Enter the path to the full dataset download file',
|
|
19
19
|
description:
|
|
20
|
-
'This is used when requesting the download from the
|
|
20
|
+
'This is used when requesting the download from the data viewer',
|
|
21
21
|
type: 'string',
|
|
22
22
|
},
|
|
23
23
|
full_format: {
|