@eeacms/volto-clms-theme 1.1.172 → 1.1.174

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,6 +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.174](https://github.com/eea/volto-clms-theme/compare/1.1.173...1.1.174) - 26 July 2024
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Refs #272833 - Remove the EU Login user authentication request when clicking the Download button in the Datset catalogue and in the dataset listing on the product page. [GhitaB - [`6cb4271`](https://github.com/eea/volto-clms-theme/commit/6cb4271fe3bc8ceed1bd43cf5bb11c272cd65183)]
12
+ ### [1.1.173](https://github.com/eea/volto-clms-theme/compare/1.1.172...1.1.173) - 25 July 2024
13
+
14
+ #### :hammer_and_wrench: Others
15
+
16
+ - Refs #271246 - Fix start downloading when modal is confirmed (add missing parameters). Fix Error when trying to download multiple datasets from different sources. [GhitaB - [`4bdc58a`](https://github.com/eea/volto-clms-theme/commit/4bdc58affe13f481e1ae9461df43a0b50ed5caae)]
7
17
  ### [1.1.172](https://github.com/eea/volto-clms-theme/compare/1.1.171...1.1.172) - 18 July 2024
8
18
 
9
19
  ### [1.1.171](https://github.com/eea/volto-clms-theme/compare/1.1.170...1.1.171) - 18 July 2024
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.172",
3
+ "version": "1.1.174",
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",
@@ -719,7 +719,7 @@ const CLMSCartContent = (props) => {
719
719
  cartSelection={cartSelection}
720
720
  onConfirm={() => {
721
721
  setOpenedModal(false);
722
- startDownloading();
722
+ startDownloading(cartItems, cartSelection);
723
723
  }}
724
724
  onCancel={() => setOpenedModal(false)}
725
725
  />
@@ -16,7 +16,6 @@ import { FontAwesomeIcon } from '@eeacms/volto-clms-utils/components';
16
16
  import { portal_types_labels } from '../Blocks/CustomTemplates/VoltoSearchBlock';
17
17
  // import { HomeBgImg } from '@eeacms/volto-clms-theme/components/Blocks/CclHomeBgImageBlock/HomeBgImg';
18
18
 
19
- import CclLoginModal from '@eeacms/volto-clms-theme/components/CclLoginModal/CclLoginModal';
20
19
  import CclButton from '@eeacms/volto-clms-theme/components/CclButton/CclButton';
21
20
  import { CLMSTechnicalLibraryAdminInfo } from '../CLMSTechnicalLibraryAdminInfo';
22
21
 
@@ -122,7 +121,6 @@ const DocCard = ({ card, url, showEditor, children }) => {
122
121
  const SearchResultExtras = (props) => {
123
122
  const { content } = props;
124
123
  const locale = useSelector((state) => state.intl.locale);
125
- const isLoggedIn = useSelector((state) => state.userSession?.token);
126
124
  const isAuxiliary = content?.mapviewer_viewservice
127
125
  ? content?.mapviewer_viewservice
128
126
  .toLowerCase()
@@ -143,33 +141,14 @@ const SearchResultExtras = (props) => {
143
141
  </>
144
142
  )}
145
143
 
146
- {content?.downloadable_dataset &&
147
- content?.['@type'] === 'DataSet' &&
148
- isLoggedIn && (
149
- <>
150
- <CclButton mode="small" url={`${content['@id']}#download`}>
151
- <FormattedMessage id="Download" defaultMessage="Download" />
152
- </CclButton>
153
- &nbsp; &nbsp; &nbsp;
154
- </>
155
- )}
156
-
157
- {content?.downloadable_dataset &&
158
- content?.['@type'] === 'DataSet' &&
159
- !isLoggedIn && (
160
- <>
161
- <CclLoginModal
162
- otherPath={`${content['@id']}#download`}
163
- triggerComponent={() => (
164
- // eslint-disable-next-line jsx-a11y/anchor-is-valid
165
- <CclButton mode="small">
166
- <FormattedMessage id="Download" defaultMessage="Download" />
167
- </CclButton>
168
- )}
169
- />
170
- &nbsp; &nbsp; &nbsp;
171
- </>
172
- )}
144
+ {content?.downloadable_dataset && content?.['@type'] === 'DataSet' && (
145
+ <>
146
+ <CclButton mode="small" url={`${content['@id']}#download`}>
147
+ <FormattedMessage id="Download" defaultMessage="Download" />
148
+ </CclButton>
149
+ &nbsp; &nbsp; &nbsp;
150
+ </>
151
+ )}
173
152
 
174
153
  {content?.mapviewer_viewservice?.length > 0 &&
175
154
  !isAuxiliary &&