@eeacms/volto-datahub 1.0.11 → 1.0.12
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,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.0.12](https://github.com/eea/volto-datahub/compare/1.0.11...1.0.12) - 9 February 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Small change: renaming [kreafox - [`cb2ea49`](https://github.com/eea/volto-datahub/commit/cb2ea492bace5b2608bfa17d26b0cbf08be6a962)]
|
|
12
|
+
- Fix undefined in datasets tab [kreafox - [`57ef7e0`](https://github.com/eea/volto-datahub/commit/57ef7e00e554c3a08996ec284ca33350c582c3a5)]
|
|
13
|
+
- Undo some changes [kreafox - [`7d1e80b`](https://github.com/eea/volto-datahub/commit/7d1e80b59385664873d240c2bc56137f3139c88d)]
|
|
14
|
+
- Use "missing" instead of undefined in datasets tab [kreafox - [`e215775`](https://github.com/eea/volto-datahub/commit/e215775fa22c2ac01e39151ba96f7c833e9aefd6)]
|
|
7
15
|
### [1.0.11](https://github.com/eea/volto-datahub/compare/1.0.10...1.0.11) - 7 February 2023
|
|
8
16
|
|
|
9
17
|
#### :hammer_and_wrench: Others
|
|
@@ -73,9 +81,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
73
81
|
#### :hammer_and_wrench: Others
|
|
74
82
|
|
|
75
83
|
- Fix eslintrc: add @eeacms/search [kreafox - [`465816f`](https://github.com/eea/volto-datahub/commit/465816feb8f58095ab4b5b3168cd29ebede3a10c)]
|
|
84
|
+
- Use latest Volto before yarn 3 [Tiberiu Ichim - [`69f5859`](https://github.com/eea/volto-datahub/commit/69f585980fd9a38ff99d0c7875704671857720f7)]
|
|
76
85
|
- Reorder sections on landing page [kreafox - [`46fac8d`](https://github.com/eea/volto-datahub/commit/46fac8d821cf93fe1b2c380380719de130c3f1cb)]
|
|
77
86
|
- Fix project eslintrc [kreafox - [`5baa150`](https://github.com/eea/volto-datahub/commit/5baa1505ec38ed313269f5608c186c6a6a8bbfc4)]
|
|
78
87
|
- Open dataset links in new tab [kreafox - [`bbed914`](https://github.com/eea/volto-datahub/commit/bbed914dc2edf6c749d1d73d93a423bc642e680c)]
|
|
88
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`380a2a9`](https://github.com/eea/volto-datahub/commit/380a2a9625c6f799df7a7c343fad3f3b3d959f96)]
|
|
79
89
|
## [1.0.0](https://github.com/eea/volto-datahub/compare/0.1.12...1.0.0) - 28 October 2022
|
|
80
90
|
|
|
81
91
|
#### :nail_care: Enhancements
|
|
@@ -100,6 +110,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
100
110
|
#### :hammer_and_wrench: Others
|
|
101
111
|
|
|
102
112
|
- fixed query for related items [Zoltan Szabo - [`b66faee`](https://github.com/eea/volto-datahub/commit/b66faee1f8a1922cd22b3a36eccc9c7b92e377d4)]
|
|
113
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`158fe1a`](https://github.com/eea/volto-datahub/commit/158fe1a0b1767452e2e51a3e2ef97169589a50e8)]
|
|
103
114
|
### [0.1.10](https://github.com/eea/volto-datahub/compare/0.1.9...0.1.10) - 21 September 2022
|
|
104
115
|
|
|
105
116
|
#### :hammer_and_wrench: Others
|
|
@@ -188,6 +199,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
188
199
|
#### :hammer_and_wrench: Others
|
|
189
200
|
|
|
190
201
|
- Hide questions & fix landing page [kreafox - [`a1ef303`](https://github.com/eea/volto-datahub/commit/a1ef3033df0e84f3a72dd0f984c8717dff2a771c)]
|
|
202
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`910688e`](https://github.com/eea/volto-datahub/commit/910688e3ddf2f8cda4f941595ae9a6ee0ec0ea3b)]
|
|
191
203
|
### [0.1.1](https://github.com/eea/volto-datahub/compare/0.1.0...0.1.1) - 10 June 2022
|
|
192
204
|
|
|
193
205
|
### [0.1.0](https://github.com/eea/volto-datahub/compare/0.0.1...0.1.0) - 9 June 2022
|
package/package.json
CHANGED
|
@@ -279,7 +279,7 @@ const Datasets = (props) => {
|
|
|
279
279
|
setActiveIndex(newIndex);
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
const
|
|
282
|
+
const sortedDatasets = React.useMemo(
|
|
283
283
|
() =>
|
|
284
284
|
(children || []).sort(
|
|
285
285
|
(a, b) =>
|
|
@@ -289,14 +289,14 @@ const Datasets = (props) => {
|
|
|
289
289
|
[children],
|
|
290
290
|
);
|
|
291
291
|
|
|
292
|
-
const
|
|
292
|
+
const datasets = groupBy(sortedDatasets, 'publicationYearForResource');
|
|
293
293
|
|
|
294
|
-
const panes = Object.keys(
|
|
295
|
-
menuItem: dataset,
|
|
294
|
+
const panes = Object.keys(datasets).map((dataset) => ({
|
|
295
|
+
menuItem: dataset === 'undefined' ? 'Missing' : dataset,
|
|
296
296
|
render: () => (
|
|
297
297
|
<Tab.Pane>
|
|
298
298
|
<Accordion>
|
|
299
|
-
{
|
|
299
|
+
{datasets[dataset].map((dataset, index) => {
|
|
300
300
|
const { resourceTemporalExtentDetails } = dataset;
|
|
301
301
|
return (
|
|
302
302
|
<React.Fragment key={index}>
|
|
@@ -413,8 +413,12 @@ const Datasets = (props) => {
|
|
|
413
413
|
),
|
|
414
414
|
}));
|
|
415
415
|
|
|
416
|
-
return
|
|
416
|
+
return children && children.length > 0 ? (
|
|
417
417
|
<>
|
|
418
|
+
<div className="dataset-container">
|
|
419
|
+
<h2>Datasets</h2>
|
|
420
|
+
</div>
|
|
421
|
+
|
|
418
422
|
<div className="item tabs-title">Publication year</div>
|
|
419
423
|
<Tab
|
|
420
424
|
className="datasets-tab"
|
|
@@ -147,10 +147,6 @@ function ItemView(props) {
|
|
|
147
147
|
<Callout>{description?.raw}</Callout>
|
|
148
148
|
</div>
|
|
149
149
|
|
|
150
|
-
<div className="dataset-container">
|
|
151
|
-
<h2>Datasets</h2>
|
|
152
|
-
</div>
|
|
153
|
-
|
|
154
150
|
<Datasets item={item} appConfig={appConfig} />
|
|
155
151
|
|
|
156
152
|
<MetadataSection item={item} appConfig={appConfig} docid={docid} />
|