@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 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.27](https://github.com/eea/volto-clms-theme/compare/1.1.26...1.1.27) - 14 July 2023
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
- - bump dependency [Mikel Larreategi - [`2dea8b0`](https://github.com/eea/volto-clms-theme/commit/2dea8b0cebc6cbd954d4c3ed9bd111f306e5cc08)]
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.27",
3
+ "version": "1.1.29",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -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
- const associated =
38
- associated_elements === 'products'
39
- ? { associated_products: uid }
40
- : { associated_datasets: uid };
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 map viewer"
35
- defaultMessage="View in the map viewer"
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 map viewer"
316
- defaultMessage="View in the map viewer"
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="dataset"
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 map viewer',
20
+ 'This is used when requesting the download from the data viewer',
21
21
  type: 'string',
22
22
  },
23
23
  full_format: {
@@ -23,7 +23,7 @@ const ItemSchema = {
23
23
  hide: {
24
24
  title: 'Hide layer?',
25
25
  description:
26
- 'Enter whether this layer should be hidden in the map viewer',
26
+ 'Enter whether this layer should be hidden in the data viewer',
27
27
  type: 'boolean',
28
28
  default: false,
29
29
  },