@eeacms/volto-clms-theme 1.1.26 → 1.1.28

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,7 +4,14 @@ 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.26](https://github.com/eea/volto-clms-theme/compare/1.1.25...1.1.26) - 13 July 2023
7
+ ### [1.1.28](https://github.com/eea/volto-clms-theme/compare/1.1.27...1.1.28) - 14 July 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - add a new related items variation, using a direct query [Mikel Larreategi - [`708f32f`](https://github.com/eea/volto-clms-theme/commit/708f32fe10e75a159c10bda3401a406b7dab6d91)]
12
+ ### [1.1.27](https://github.com/eea/volto-clms-theme/compare/1.1.26...1.1.27) - 14 July 2023
13
+
14
+ ### [1.1.26](https://github.com/eea/volto-clms-theme/compare/1.1.25...1.1.26) - 14 July 2023
8
15
 
9
16
  #### :hammer_and_wrench: Others
10
17
 
@@ -55,6 +62,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
55
62
 
56
63
  - remove NUTS text for area naming in the cart [ionlizarazu - [`062e0a3`](https://github.com/eea/volto-clms-theme/commit/062e0a375f5352bc13c18ff7ec33fad4bcc59f2f)]
57
64
  - dependencies [ionlizarazu - [`405ef96`](https://github.com/eea/volto-clms-theme/commit/405ef96090fe7bd4af73a49d3285a92fad712e3b)]
65
+ - yarn.lock [ionlizarazu - [`7132119`](https://github.com/eea/volto-clms-theme/commit/71321195c4dd4fceed67f2f0872f3e24bba61c17)]
58
66
  - volto-blocks-grid module mapping [ionlizarazu - [`4fec3ca`](https://github.com/eea/volto-clms-theme/commit/4fec3cabc437322ad92ed90d682250bd123ccaaf)]
59
67
  - volto-blocks-grid v7.0.2 [ionlizarazu - [`2557e60`](https://github.com/eea/volto-clms-theme/commit/2557e6039d3cea33ca0bd11a0a3ef4764c611f78)]
60
68
  - remove styling from teaser block [ionlizarazu - [`879e684`](https://github.com/eea/volto-clms-theme/commit/879e684057c88f52f60f0fa54cbaa155c7d14688)]
@@ -142,6 +150,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
142
150
 
143
151
  #### :house: Internal changes
144
152
 
153
+ - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`b4cbf65`](https://github.com/eea/volto-clms-theme/commit/b4cbf6557fbc67f7fc4cea5aa2cb19804f3d7e3c)]
145
154
 
146
155
  #### :hammer_and_wrench: Others
147
156
 
@@ -1340,6 +1349,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1340
1349
  #### :hammer_and_wrench: Others
1341
1350
 
1342
1351
  - 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)]
1352
+ - Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`46eb694`](https://github.com/eea/volto-clms-theme/commit/46eb69415280a3c982405299135027ae4221426a)]
1343
1353
  - 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)]
1344
1354
  - lint fix [Unai - [`1264a7a`](https://github.com/eea/volto-clms-theme/commit/1264a7adfe8d679fea1bd821ad087add20f4271d)]
1345
1355
  - 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)]
@@ -1490,6 +1500,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1490
1500
  - search block new features [ionlizarazu - [`8e814cb`](https://github.com/eea/volto-clms-theme/commit/8e814cbd359782540c21fe37b37ef146d331f0d6)]
1491
1501
  - language selector cookie management [ionlizarazu - [`1385ac9`](https://github.com/eea/volto-clms-theme/commit/1385ac95795702206d3623ba6e780faa43a89e0a)]
1492
1502
  - toolbar cookie management [ionlizarazu - [`5c23200`](https://github.com/eea/volto-clms-theme/commit/5c23200790b20e1d4f1bc966463c37bf4c808f47)]
1503
+ - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`0316a0d`](https://github.com/eea/volto-clms-theme/commit/0316a0d8b6fb0fa14af13002415f3c95d9f8ede3)]
1493
1504
  ### [1.0.84](https://github.com/eea/volto-clms-theme/compare/1.0.83...1.0.84) - 18 March 2022
1494
1505
 
1495
1506
  #### :hammer_and_wrench: Others
@@ -2394,11 +2405,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2394
2405
  #### :hammer_and_wrench: Others
2395
2406
 
2396
2407
  - replace @collective/volto-dropdownmenu with volto-dropdownmenu [ionlizarazu - [`07f004f`](https://github.com/eea/volto-clms-theme/commit/07f004fe0219e403fb51bc045c83d34f3b981f76)]
2408
+ - yarn.lock [ionlizarazu - [`fe1ca04`](https://github.com/eea/volto-clms-theme/commit/fe1ca04889d29fe7b653db4c69af2751b84b8a1a)]
2397
2409
  - add NODE_ENV parameter [ionlizarazu - [`101f27c`](https://github.com/eea/volto-clms-theme/commit/101f27c25b8fbd192e1b11865e95cf5ffee08c1b)]
2398
2410
  - upgrade volto-dropdownmenu version [ionlizarazu - [`2081855`](https://github.com/eea/volto-clms-theme/commit/2081855301f4c708776e0dbab39db143cee00dbc)]
2399
2411
  - HomeSearch block missing url behaviour [ionlizarazu - [`d20a378`](https://github.com/eea/volto-clms-theme/commit/d20a378ce3f254b8343692348f314bf281974542)]
2400
2412
  - babel configuration [ionlizarazu - [`203ea2d`](https://github.com/eea/volto-clms-theme/commit/203ea2de07f99ca3403e4ca220ca74d7ce69b61d)]
2401
2413
  - prettier [ionlizarazu - [`e79e26b`](https://github.com/eea/volto-clms-theme/commit/e79e26bf2fa40ba7b4eb53a24dabd87928221c28)]
2414
+ - add yarn lock [ionlizarazu - [`e1ab28b`](https://github.com/eea/volto-clms-theme/commit/e1ab28b060d5a74431c368b0de82a68dabce1eab)]
2402
2415
  - Jenkinsfile cypress test [ionlizarazu - [`b385d65`](https://github.com/eea/volto-clms-theme/commit/b385d65986f717c60f8c434a08fc11b829d08eb4)]
2403
2416
  - cypress [ionlizarazu - [`a243cf0`](https://github.com/eea/volto-clms-theme/commit/a243cf0182fa3dd113c16ff495c71e310252d83b)]
2404
2417
  - some fixes [ionlizarazu - [`046279b`](https://github.com/eea/volto-clms-theme/commit/046279b9d05bea8a64eca03eed493e02621534c9)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.26",
3
+ "version": "1.1.28",
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",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@eeacms/volto-accordion-block": "7.0.0",
39
39
  "@eeacms/volto-arcgis-block": "*",
40
- "@eeacms/volto-clms-utils": "0.1.8",
40
+ "@eeacms/volto-clms-utils": "0.1.9",
41
41
  "@eeacms/volto-columns-block": "6.0.2",
42
42
  "@eeacms/volto-embed": "5.0.1",
43
43
  "@eeacms/volto-metadata-block": "5.0.1",
@@ -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;
@@ -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