@eeacms/volto-datahub 3.0.0 → 3.0.1
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/.eslintrc.js +7 -6
- package/CHANGELOG.md +22 -1
- package/package.json +1 -1
- package/src/components/ItemView/Datasets/DatasetEsri.jsx +2 -2
- package/src/components/ItemView/Datasets/DatasetHttpLinks.jsx +1 -1
- package/src/components/ItemView/Datasets/DatasetItemsList.jsx +104 -106
- package/src/components/ItemView/Datasets/DatasetLinks.jsx +1 -1
- package/src/components/ItemView/Datasets/DatasetUrls.jsx +1 -1
- package/src/components/ItemView/ItemView.jsx +10 -4
- package/src/config/index.js +1 -1
package/.eslintrc.js
CHANGED
|
@@ -16,16 +16,16 @@ if (configFile) {
|
|
|
16
16
|
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig['@plone/volto'][0]}`;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
const
|
|
20
|
-
const
|
|
19
|
+
const { AddonRegistry } = require('@plone/registry/addon-registry');
|
|
20
|
+
const { registry } = AddonRegistry.init(projectRootPath);
|
|
21
21
|
|
|
22
22
|
// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
|
|
23
|
-
const addonAliases = Object.keys(
|
|
23
|
+
const addonAliases = Object.keys(registry.packages).map((o) => [
|
|
24
24
|
o,
|
|
25
|
-
|
|
25
|
+
registry.packages[o].modulePath,
|
|
26
26
|
]);
|
|
27
27
|
|
|
28
|
-
const addonExtenders =
|
|
28
|
+
const addonExtenders = registry.getEslintExtenders().map((m) => require(m));
|
|
29
29
|
|
|
30
30
|
const defaultConfig = {
|
|
31
31
|
extends: `${voltoPath}/.eslintrc`,
|
|
@@ -34,7 +34,7 @@ const defaultConfig = {
|
|
|
34
34
|
alias: {
|
|
35
35
|
map: [
|
|
36
36
|
['@plone/volto', '@plone/volto/src'],
|
|
37
|
-
['@plone/volto-slate', '@plone/volto
|
|
37
|
+
['@plone/volto-slate', '@plone/volto-slate/src'],
|
|
38
38
|
...addonAliases,
|
|
39
39
|
['@package', `${__dirname}/src`],
|
|
40
40
|
['@root', `${__dirname}/src`],
|
|
@@ -48,6 +48,7 @@ const defaultConfig = {
|
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
rules: {
|
|
51
|
+
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
|
|
51
52
|
'react/jsx-no-target-blank': [
|
|
52
53
|
'error',
|
|
53
54
|
{
|
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,13 @@ 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
|
-
### [3.0.
|
|
7
|
+
### [3.0.1](https://github.com/eea/volto-datahub/compare/3.0.0...3.0.1) - 8 April 2026
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: make test [Alin V. (Claudiu) - [`efd16b0`](https://github.com/eea/volto-datahub/commit/efd16b0d63c5ca93f3e57c1a679eaa2e31de2c28)]
|
|
12
|
+
|
|
13
|
+
## [3.0.0](https://github.com/eea/volto-datahub/compare/2.0.5...3.0.0) - 25 March 2026
|
|
8
14
|
|
|
9
15
|
#### :rocket: New Features
|
|
10
16
|
|
|
@@ -12,6 +18,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
12
18
|
|
|
13
19
|
#### :house: Internal changes
|
|
14
20
|
|
|
21
|
+
- chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`5e7b692`](https://github.com/eea/volto-datahub/commit/5e7b6923049dab3df919a00b01de13a4c55d1035)]
|
|
22
|
+
- chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`7e8048c`](https://github.com/eea/volto-datahub/commit/7e8048cec178e5efc73e30b30ef77f5f79e7f2ac)]
|
|
15
23
|
|
|
16
24
|
#### :hammer_and_wrench: Others
|
|
17
25
|
|
|
@@ -70,6 +78,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
70
78
|
|
|
71
79
|
#### :house: Internal changes
|
|
72
80
|
|
|
81
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`8438e52`](https://github.com/eea/volto-datahub/commit/8438e52e811c46aa542a601b75f4198b214b5ffd)]
|
|
73
82
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`da129fb`](https://github.com/eea/volto-datahub/commit/da129fb1259a26c87259f380a37db688281b192d)]
|
|
74
83
|
|
|
75
84
|
#### :hammer_and_wrench: Others
|
|
@@ -79,6 +88,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
79
88
|
- remove eslint file from ignoring [Teodor - [`39f6633`](https://github.com/eea/volto-datahub/commit/39f66338f2f7d1797343b88aa20dea9425f37014)]
|
|
80
89
|
- change eslint rule [Teodor - [`73e4bc2`](https://github.com/eea/volto-datahub/commit/73e4bc217e9aa9804f0f57cf9e3488cb2e1e85b8)]
|
|
81
90
|
- Ref #263008 [Teodor - [`9d58c52`](https://github.com/eea/volto-datahub/commit/9d58c52b6bc207c5c622c0428be39ae18875cf64)]
|
|
91
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`524fcc6`](https://github.com/eea/volto-datahub/commit/524fcc6a40e1437dac449543607089b4ba4feb21)]
|
|
92
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`98c01ac`](https://github.com/eea/volto-datahub/commit/98c01ac599087cf5a9011d3384483d023a4d12bb)]
|
|
93
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`bdcc59c`](https://github.com/eea/volto-datahub/commit/bdcc59c2d4cfd8beba4386d6f23f220c777f0513)]
|
|
94
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`5d12d14`](https://github.com/eea/volto-datahub/commit/5d12d1428a547b8628231dc38110a55b806edebb)]
|
|
95
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`dba984e`](https://github.com/eea/volto-datahub/commit/dba984e6b840c451b8de15d40de0e49c1dd09a9b)]
|
|
82
96
|
### [1.0.32](https://github.com/eea/volto-datahub/compare/1.0.31...1.0.32) - 11 October 2023
|
|
83
97
|
|
|
84
98
|
#### :house: Internal changes
|
|
@@ -124,6 +138,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
124
138
|
- Fix content type for rss feed [Tiberiu Ichim - [`65b73a7`](https://github.com/eea/volto-datahub/commit/65b73a79d73e626f652716305e80d9a2b017c85c)]
|
|
125
139
|
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`ead1c04`](https://github.com/eea/volto-datahub/commit/ead1c042d1358b385c19ec66ec84d7c736574b1d)]
|
|
126
140
|
- Added 'DOI' links to datahub [Zoltan Szabo - [`b33a657`](https://github.com/eea/volto-datahub/commit/b33a657096eaec4caa641379e69e941a3b2c1583)]
|
|
141
|
+
- test: Fix eslint and yarn i18n [Alin Voinea - [`39a4a69`](https://github.com/eea/volto-datahub/commit/39a4a695733514890075886753b9d7b91d853646)]
|
|
127
142
|
- i18n: Add en [Alin Voinea - [`cdb303f`](https://github.com/eea/volto-datahub/commit/cdb303f2ac5e1f9eb22eda46bb58087c62af6ba5)]
|
|
128
143
|
### [1.0.27](https://github.com/eea/volto-datahub/compare/1.0.26...1.0.27) - 25 August 2023
|
|
129
144
|
|
|
@@ -171,6 +186,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
171
186
|
|
|
172
187
|
#### :house: Internal changes
|
|
173
188
|
|
|
189
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`e5933ce`](https://github.com/eea/volto-datahub/commit/e5933ce8879d98aabe0bab56980dbd50ce856a36)]
|
|
174
190
|
|
|
175
191
|
#### :hammer_and_wrench: Others
|
|
176
192
|
|
|
@@ -225,6 +241,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
225
241
|
- added utils.js [Zoltan Szabo - [`fdb33c3`](https://github.com/eea/volto-datahub/commit/fdb33c37e1af2fe071dbe8f4f5dcd2b82932edc8)]
|
|
226
242
|
- Show 'Obsolete' info in the metadata section in the banner [Zoltan Szabo - [`fddfd2a`](https://github.com/eea/volto-datahub/commit/fddfd2aea63d1a1d1567c163ab29dd7119781117)]
|
|
227
243
|
- Show 'More information' section only if it's not empty [Zoltan Szabo - [`612f035`](https://github.com/eea/volto-datahub/commit/612f03509c6adf143631ae6dee5ca2bd48a501c3)]
|
|
244
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b9100f6`](https://github.com/eea/volto-datahub/commit/b9100f6b2b2e9e9a26b9c11708c8fda94137cecc)]
|
|
228
245
|
### [1.0.15](https://github.com/eea/volto-datahub/compare/1.0.14...1.0.15) - 1 March 2023
|
|
229
246
|
|
|
230
247
|
### [1.0.14](https://github.com/eea/volto-datahub/compare/1.0.13...1.0.14) - 1 March 2023
|
|
@@ -317,9 +334,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
317
334
|
#### :hammer_and_wrench: Others
|
|
318
335
|
|
|
319
336
|
- Fix eslintrc: add @eeacms/search [kreafox - [`465816f`](https://github.com/eea/volto-datahub/commit/465816feb8f58095ab4b5b3168cd29ebede3a10c)]
|
|
337
|
+
- Use latest Volto before yarn 3 [Tiberiu Ichim - [`69f5859`](https://github.com/eea/volto-datahub/commit/69f585980fd9a38ff99d0c7875704671857720f7)]
|
|
320
338
|
- Reorder sections on landing page [kreafox - [`46fac8d`](https://github.com/eea/volto-datahub/commit/46fac8d821cf93fe1b2c380380719de130c3f1cb)]
|
|
321
339
|
- Fix project eslintrc [kreafox - [`5baa150`](https://github.com/eea/volto-datahub/commit/5baa1505ec38ed313269f5608c186c6a6a8bbfc4)]
|
|
322
340
|
- Open dataset links in new tab [kreafox - [`bbed914`](https://github.com/eea/volto-datahub/commit/bbed914dc2edf6c749d1d73d93a423bc642e680c)]
|
|
341
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`380a2a9`](https://github.com/eea/volto-datahub/commit/380a2a9625c6f799df7a7c343fad3f3b3d959f96)]
|
|
323
342
|
## [1.0.0](https://github.com/eea/volto-datahub/compare/0.1.12...1.0.0) - 28 October 2022
|
|
324
343
|
|
|
325
344
|
#### :nail_care: Enhancements
|
|
@@ -344,6 +363,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
344
363
|
#### :hammer_and_wrench: Others
|
|
345
364
|
|
|
346
365
|
- fixed query for related items [Zoltan Szabo - [`b66faee`](https://github.com/eea/volto-datahub/commit/b66faee1f8a1922cd22b3a36eccc9c7b92e377d4)]
|
|
366
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`158fe1a`](https://github.com/eea/volto-datahub/commit/158fe1a0b1767452e2e51a3e2ef97169589a50e8)]
|
|
347
367
|
### [0.1.10](https://github.com/eea/volto-datahub/compare/0.1.9...0.1.10) - 21 September 2022
|
|
348
368
|
|
|
349
369
|
#### :hammer_and_wrench: Others
|
|
@@ -432,6 +452,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
432
452
|
#### :hammer_and_wrench: Others
|
|
433
453
|
|
|
434
454
|
- Hide questions & fix landing page [kreafox - [`a1ef303`](https://github.com/eea/volto-datahub/commit/a1ef3033df0e84f3a72dd0f984c8717dff2a771c)]
|
|
455
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`910688e`](https://github.com/eea/volto-datahub/commit/910688e3ddf2f8cda4f941595ae9a6ee0ec0ea3b)]
|
|
435
456
|
### [0.1.1](https://github.com/eea/volto-datahub/compare/0.1.0...0.1.1) - 10 June 2022
|
|
436
457
|
|
|
437
458
|
### [0.1.0](https://github.com/eea/volto-datahub/compare/0.0.1...0.1.0) - 9 June 2022
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { List } from 'semantic-ui-react';
|
|
2
|
-
import { SVGIcon } from '
|
|
2
|
+
import { SVGIcon } from '@eeacms/volto-datahub/components/ItemView/utils.js';
|
|
3
3
|
|
|
4
4
|
import lockSVG from 'remixicon/icons/System/lock-line.svg';
|
|
5
5
|
import { isInternalURL } from '@eeacms/volto-datahub/utils';
|
|
6
|
-
import servicesSVG from '
|
|
6
|
+
import servicesSVG from '@eeacms/volto-datahub/components/ItemView/icons/services.svg';
|
|
7
7
|
|
|
8
8
|
const ItemLink = ({ item }) => (
|
|
9
9
|
<List.Item key={item.id}>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Icon, List } from 'semantic-ui-react';
|
|
2
2
|
import { isInternalURL } from '@eeacms/volto-datahub/utils';
|
|
3
|
-
import { SVGIcon } from '
|
|
3
|
+
import { SVGIcon } from '@eeacms/volto-datahub/components/ItemView/utils.js';
|
|
4
4
|
|
|
5
5
|
import lockSVG from 'remixicon/icons/System/lock-line.svg';
|
|
6
6
|
|
|
@@ -6,7 +6,7 @@ import { useLocation, useHistory } from 'react-router-dom';
|
|
|
6
6
|
import { DateTime } from '@eeacms/search';
|
|
7
7
|
import { AccordionFilter } from '@eeacms/volto-accordion-block/components';
|
|
8
8
|
|
|
9
|
-
import { SVGIcon } from '
|
|
9
|
+
import { SVGIcon } from '@eeacms/volto-datahub/components/ItemView/utils.js';
|
|
10
10
|
import DatasetItemDownloadList from './DatasetItemDownloadList';
|
|
11
11
|
import { isInternal, isObsolete } from '@eeacms/volto-datahub/utils';
|
|
12
12
|
|
|
@@ -144,122 +144,120 @@ const DatasetItemsList = (props) => {
|
|
|
144
144
|
const archived = isObsolete(dataset.cl_status);
|
|
145
145
|
const active = isActive(id);
|
|
146
146
|
return (
|
|
147
|
-
|
|
148
|
-
<Accordion
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
>
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
})}
|
|
147
|
+
<Accordion id={id} key={id ?? index}>
|
|
148
|
+
<Accordion.Title
|
|
149
|
+
role="button"
|
|
150
|
+
tabIndex={0}
|
|
151
|
+
active={active}
|
|
152
|
+
aria-expanded={active}
|
|
153
|
+
index={index}
|
|
154
|
+
onClick={(e) => handleClick(e, { index, id, item })}
|
|
155
|
+
onKeyDown={(e) => {
|
|
156
|
+
if (e.keyCode === 13 || e.keyCode === 32) {
|
|
157
|
+
e.preventDefault();
|
|
158
|
+
handleClick(e, { index, id, item });
|
|
159
|
+
}
|
|
160
|
+
}}
|
|
161
|
+
>
|
|
162
|
+
<span className="dataset-title">
|
|
163
|
+
{dataset.resourceTitleObject.default}
|
|
164
|
+
<span className="formats">
|
|
165
|
+
{(dataset.format || [])
|
|
166
|
+
.filter((item, pos, self) => self.indexOf(item) === pos)
|
|
167
|
+
.map((item, i) => {
|
|
168
|
+
return (
|
|
169
|
+
<span className="dh-label" key={i}>
|
|
170
|
+
{item}
|
|
171
|
+
</span>
|
|
172
|
+
);
|
|
173
|
+
})}
|
|
175
174
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
175
|
+
{Array.isArray(dataset.linkProtocol) ? (
|
|
176
|
+
<>
|
|
177
|
+
{dataset.linkProtocol
|
|
178
|
+
.filter(
|
|
179
|
+
(i) => i.includes('ESRI') || i.includes('OGC'),
|
|
180
|
+
)
|
|
181
|
+
.filter(
|
|
182
|
+
(item, pos, self) => self.indexOf(item) === pos,
|
|
183
|
+
)
|
|
184
|
+
.map((item, i) => {
|
|
185
|
+
return (
|
|
186
|
+
<span className="dh-label" key={i}>
|
|
187
|
+
{item}
|
|
188
|
+
</span>
|
|
189
|
+
);
|
|
190
|
+
})}
|
|
191
|
+
</>
|
|
192
|
+
) : (
|
|
193
|
+
<>
|
|
194
|
+
{['ESRI', 'OGC'].includes(dataset.linkProtocol) && (
|
|
195
|
+
<span className="dh-label">
|
|
196
|
+
{dataset.linkProtocol}
|
|
197
|
+
</span>
|
|
198
|
+
)}
|
|
199
|
+
</>
|
|
200
|
+
)}
|
|
202
201
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
202
|
+
{archived && (
|
|
203
|
+
<span className="dh-label inverted">Superseded</span>
|
|
204
|
+
)}
|
|
206
205
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
</span>
|
|
206
|
+
{isInternal(dataset) && (
|
|
207
|
+
<SVGIcon name={lockSVG} size="18" />
|
|
208
|
+
)}
|
|
211
209
|
</span>
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
210
|
+
</span>
|
|
211
|
+
{active ? (
|
|
212
|
+
<Icon className="ri-arrow-up-s-line" />
|
|
213
|
+
) : (
|
|
214
|
+
<Icon className="ri-arrow-down-s-line" />
|
|
215
|
+
)}
|
|
216
|
+
</Accordion.Title>
|
|
217
|
+
<Accordion.Content active={active}>
|
|
218
|
+
<div className="dataset-content">
|
|
219
|
+
<div>
|
|
220
|
+
{publicationDateForResource && (
|
|
221
|
+
<div>
|
|
222
|
+
<strong>Published: </strong>
|
|
223
|
+
<DateTime
|
|
224
|
+
format="DATE_MED"
|
|
225
|
+
value={publicationDateForResource}
|
|
226
|
+
/>
|
|
227
|
+
</div>
|
|
228
|
+
)}
|
|
229
|
+
|
|
230
|
+
{resourceTemporalExtentDetails &&
|
|
231
|
+
resourceTemporalExtentDetails?.length > 0 && (
|
|
222
232
|
<div>
|
|
223
|
-
<strong>
|
|
224
|
-
|
|
225
|
-
format="DATE_MED"
|
|
226
|
-
value={publicationDateForResource}
|
|
227
|
-
/>
|
|
233
|
+
<strong>Temporal coverage: </strong>
|
|
234
|
+
{temporalDateRange}
|
|
228
235
|
</div>
|
|
229
236
|
)}
|
|
237
|
+
</div>
|
|
230
238
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
target="_blank"
|
|
245
|
-
rel="noreferrer"
|
|
246
|
-
href={
|
|
247
|
-
`${appConfig.indexBaseUrl}/catalogue/datahub/api/records/` +
|
|
248
|
-
`${dataset.metadataIdentifier}/formatters/xsl-view?output=pdf&language=eng&approved=true`
|
|
249
|
-
}
|
|
250
|
-
>
|
|
251
|
-
Metadata Factsheet
|
|
252
|
-
</a>
|
|
253
|
-
</div>
|
|
239
|
+
<div className="dataset-pdf">
|
|
240
|
+
<div className="d-link">
|
|
241
|
+
<Icon className="file pdf" />
|
|
242
|
+
<a
|
|
243
|
+
target="_blank"
|
|
244
|
+
rel="noreferrer"
|
|
245
|
+
href={
|
|
246
|
+
`${appConfig.indexBaseUrl}/catalogue/datahub/api/records/` +
|
|
247
|
+
`${dataset.metadataIdentifier}/formatters/xsl-view?output=pdf&language=eng&approved=true`
|
|
248
|
+
}
|
|
249
|
+
>
|
|
250
|
+
Metadata Factsheet
|
|
251
|
+
</a>
|
|
254
252
|
</div>
|
|
255
253
|
</div>
|
|
254
|
+
</div>
|
|
256
255
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
</>
|
|
256
|
+
{!!dataset.link && dataset.link.length > 0 && (
|
|
257
|
+
<DatasetItemDownloadList link={dataset.link} />
|
|
258
|
+
)}
|
|
259
|
+
</Accordion.Content>
|
|
260
|
+
</Accordion>
|
|
263
261
|
);
|
|
264
262
|
})}
|
|
265
263
|
</>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Icon, List } from 'semantic-ui-react';
|
|
2
|
-
import { SVGIcon } from '
|
|
2
|
+
import { SVGIcon } from '@eeacms/volto-datahub/components/ItemView/utils.js';
|
|
3
3
|
|
|
4
4
|
import lockSVG from 'remixicon/icons/System/lock-line.svg';
|
|
5
5
|
import { isInternalURL } from '@eeacms/volto-datahub/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Icon, List } from 'semantic-ui-react';
|
|
2
|
-
import { SVGIcon } from '
|
|
2
|
+
import { SVGIcon } from '@eeacms/volto-datahub/components/ItemView/utils.js';
|
|
3
3
|
|
|
4
4
|
import lockSVG from 'remixicon/icons/System/lock-line.svg';
|
|
5
5
|
import { isInternalURL } from '@eeacms/volto-datahub/utils';
|
|
@@ -3,11 +3,15 @@ import { Portal } from 'react-portal';
|
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
4
|
import { Link, useLocation } from 'react-router-dom';
|
|
5
5
|
import { Container, Icon, Button, Popup } from 'semantic-ui-react';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
7
|
+
import ErrorBoundary from '@plone/volto/components/theme/Error/ErrorBoundary';
|
|
8
|
+
import BodyClass from '@plone/volto/helpers/BodyClass/BodyClass';
|
|
9
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
10
|
+
import { asyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
8
11
|
import config from '@plone/volto/registry';
|
|
9
12
|
import { rebind, applyConfigurationSchema } from '@eeacms/search';
|
|
10
|
-
import
|
|
13
|
+
import Callout from '@eeacms/volto-eea-design-system/ui/Callout/Callout';
|
|
14
|
+
import Banner from '@eeacms/volto-eea-design-system/ui/Banner/Banner';
|
|
11
15
|
import { defineMessages, useIntl } from 'react-intl';
|
|
12
16
|
import {
|
|
13
17
|
MoreLikeThis,
|
|
@@ -188,7 +192,9 @@ function ItemView(props) {
|
|
|
188
192
|
<Banner.Title>{title?.raw}</Banner.Title>
|
|
189
193
|
{/* <Banner.MetadataField label="Prod-ID" value={prodID} /> */}
|
|
190
194
|
<Banner.Metadata>
|
|
191
|
-
{obsolete &&
|
|
195
|
+
{obsolete && (
|
|
196
|
+
<div className="ui label archived-item">Archived</div>
|
|
197
|
+
)}
|
|
192
198
|
{prodID && (
|
|
193
199
|
<>
|
|
194
200
|
{prodID.length > PROD_ID_COUNT ? (
|
package/src/config/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import views from './views';
|
|
|
4
4
|
import filters from './filters';
|
|
5
5
|
import vocabs from './vocabulary';
|
|
6
6
|
|
|
7
|
-
import DatahubLandingPage from '
|
|
7
|
+
import DatahubLandingPage from '@eeacms/volto-datahub/components/LandingPage/DatahubLandingPage';
|
|
8
8
|
|
|
9
9
|
const datahubConfig = {
|
|
10
10
|
title: 'Datahub',
|