@eeacms/volto-clms-theme 1.1.132 → 1.1.134
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,18 @@ 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.134](https://github.com/eea/volto-clms-theme/compare/1.1.133...1.1.134) - 9 April 2024
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- [CLMS-3190] Cart projection selected by default [Ion Lizarazu - [`83450c3`](https://github.com/eea/volto-clms-theme/commit/83450c35118d1c6917580c3124fe915f51bb2ca4)]
|
|
12
|
+
- add a new line [Mikel Larreategi - [`106e188`](https://github.com/eea/volto-clms-theme/commit/106e1883a738bcd02f46b94ddddc6f5cd3fa01ee)]
|
|
13
|
+
- show only the day [Mikel Larreategi - [`4647a61`](https://github.com/eea/volto-clms-theme/commit/4647a61e826dadd4f6e1145becc47e7dc7d9cfc8)]
|
|
14
|
+
### [1.1.133](https://github.com/eea/volto-clms-theme/compare/1.1.132...1.1.133) - 8 April 2024
|
|
15
|
+
|
|
16
|
+
#### :hammer_and_wrench: Others
|
|
17
|
+
|
|
18
|
+
- lint [Mikel Larreategi - [`76ba7cb`](https://github.com/eea/volto-clms-theme/commit/76ba7cbc17ea624233726a5e57788c4a1ba93348)]
|
|
7
19
|
### [1.1.132](https://github.com/eea/volto-clms-theme/compare/1.1.131...1.1.132) - 4 April 2024
|
|
8
20
|
|
|
9
21
|
### [1.1.131](https://github.com/eea/volto-clms-theme/compare/1.1.130...1.1.131) - 27 March 2024
|
package/package.json
CHANGED
|
@@ -18,8 +18,7 @@ import {
|
|
|
18
18
|
import { postImportWMSLayers, postImportWMSFields } from '../../actions';
|
|
19
19
|
import { GeonetworkImporterButtons } from './GeonetworkImporterButtons';
|
|
20
20
|
import { UniversalLink } from '@plone/volto/components';
|
|
21
|
-
import {
|
|
22
|
-
|
|
21
|
+
import { cclDateFormat } from '../CclUtils/dateFormats';
|
|
23
22
|
import jwtDecode from 'jwt-decode';
|
|
24
23
|
import PropTypes from 'prop-types';
|
|
25
24
|
|
|
@@ -344,7 +343,7 @@ const CLMSDatasetDetailView = ({ content, token }) => {
|
|
|
344
343
|
)}
|
|
345
344
|
|
|
346
345
|
<CclTabs routing={true}>
|
|
347
|
-
<div tabTitle="General
|
|
346
|
+
<div tabTitle="General info">{DataSetInfoContent(content)}</div>
|
|
348
347
|
|
|
349
348
|
{content?.downloadable_dataset && (
|
|
350
349
|
<div
|
|
@@ -392,24 +391,43 @@ const CLMSDatasetDetailView = ({ content, token }) => {
|
|
|
392
391
|
</div>
|
|
393
392
|
)}
|
|
394
393
|
|
|
395
|
-
{
|
|
394
|
+
<strong>{content.production_updates_show}</strong>
|
|
395
|
+
|
|
396
|
+
{(content.production_updates_show ||
|
|
397
|
+
(libraries && libraries.length > 0)) && (
|
|
396
398
|
<>
|
|
397
|
-
<
|
|
398
|
-
|
|
399
|
+
<br />
|
|
400
|
+
<div class="citation-title">Production updates</div>
|
|
401
|
+
|
|
402
|
+
{content.production_updates_show && (
|
|
403
|
+
<>
|
|
404
|
+
<div
|
|
405
|
+
className="validation-citation-container"
|
|
406
|
+
dangerouslySetInnerHTML={{
|
|
407
|
+
__html: content.production_updates_text.data,
|
|
408
|
+
}}
|
|
409
|
+
/>
|
|
410
|
+
</>
|
|
411
|
+
)}
|
|
399
412
|
|
|
400
|
-
|
|
401
|
-
|
|
413
|
+
{!content.production_updates_show &&
|
|
414
|
+
libraries.map((item) => {
|
|
415
|
+
const show_dt = cclDateFormat(item.effective);
|
|
402
416
|
return (
|
|
403
|
-
<
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
417
|
+
<div className="validation-citation-container">
|
|
418
|
+
<p>
|
|
419
|
+
{show_dt} <br />
|
|
420
|
+
<UniversalLink item={item}>
|
|
421
|
+
{item.title}
|
|
422
|
+
</UniversalLink>
|
|
423
|
+
</p>
|
|
424
|
+
</div>
|
|
407
425
|
);
|
|
408
426
|
})}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
</
|
|
427
|
+
|
|
428
|
+
<UniversalLink href="/en/production-updates">
|
|
429
|
+
See all or subscribe to production updates
|
|
430
|
+
</UniversalLink>
|
|
413
431
|
</>
|
|
414
432
|
)}
|
|
415
433
|
</nav>
|
|
@@ -13,7 +13,7 @@ export const AreaNaming = (areaProps) => {
|
|
|
13
13
|
<>
|
|
14
14
|
<CclModal
|
|
15
15
|
draggable={true}
|
|
16
|
-
trigger={<span className="cart-modal-trigger">Bounding
|
|
16
|
+
trigger={<span className="cart-modal-trigger">Bounding box</span>}
|
|
17
17
|
size={'medium'}
|
|
18
18
|
>
|
|
19
19
|
<div className="image-modal">
|
|
@@ -424,7 +424,7 @@ const CLMSCartContent = (props) => {
|
|
|
424
424
|
{!item?.file_id ? (
|
|
425
425
|
<Select
|
|
426
426
|
placeholder="Select projection"
|
|
427
|
-
value={item?.
|
|
427
|
+
value={item?.original_projection.split('/')[0]}
|
|
428
428
|
options={
|
|
429
429
|
projections_uid?.[item.dataset_uid] &&
|
|
430
430
|
projections_uid[item.dataset_uid].length > 0 &&
|
|
@@ -440,32 +440,16 @@ const CLMSCartContent = (props) => {
|
|
|
440
440
|
}
|
|
441
441
|
})
|
|
442
442
|
?.map((projection) => {
|
|
443
|
+
const re = new RegExp(
|
|
444
|
+
projection.split(':')[1],
|
|
445
|
+
);
|
|
443
446
|
return {
|
|
444
447
|
key: projection,
|
|
445
448
|
value: projection,
|
|
446
|
-
text: item
|
|
447
|
-
|
|
448
|
-
'/ ',
|
|
449
|
-
' ' +
|
|
450
|
-
projection.substring(
|
|
451
|
-
0,
|
|
452
|
-
projection.indexOf(':') + 1,
|
|
453
|
-
),
|
|
454
|
-
)
|
|
455
|
-
.includes(projection)
|
|
456
|
-
? projection +
|
|
457
|
-
' (Source system of the dataset)'
|
|
449
|
+
text: re.test(item.original_projection)
|
|
450
|
+
? `${projection} (Source system of the dataset)`
|
|
458
451
|
: projection,
|
|
459
|
-
className: item
|
|
460
|
-
.replaceAll(
|
|
461
|
-
'/ ',
|
|
462
|
-
' ' +
|
|
463
|
-
projection.substring(
|
|
464
|
-
0,
|
|
465
|
-
projection.indexOf(':') + 1,
|
|
466
|
-
),
|
|
467
|
-
)
|
|
468
|
-
.includes(projection)
|
|
452
|
+
className: re.test(item.original_projection)
|
|
469
453
|
? 'original_projection'
|
|
470
454
|
: 'projection',
|
|
471
455
|
};
|
|
@@ -639,7 +623,7 @@ const CLMSCartContent = (props) => {
|
|
|
639
623
|
cartSelection.length === 0 || tooManyInQueue || tooManySelected()
|
|
640
624
|
}
|
|
641
625
|
>
|
|
642
|
-
Process
|
|
626
|
+
Process download request
|
|
643
627
|
</CclButton>
|
|
644
628
|
</>
|
|
645
629
|
)}
|