@eeacms/volto-clms-theme 1.0.48 → 1.0.52
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 +63 -0
- package/README.md +86 -0
- package/package.json +4 -2
- package/src/actions/datasets_by_uid/datasets_by_uid.js +20 -0
- package/src/actions/downloadtool/delete_downloadtool.js +3 -3
- package/src/actions/downloadtool/get_downloadtool.js +2 -2
- package/src/actions/downloadtool/post_downloadtool.js +3 -1
- package/src/actions/format_conversion_table/get_format_conversion_table.js +20 -0
- package/src/actions/index.js +12 -0
- package/src/actions/projections/get_projections.js +20 -0
- package/src/components/Blocks/CclTextLinkCarouselBlock/CclTextLinkCarouselView.jsx +3 -3
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclCarouselView.jsx +10 -9
- package/src/components/CLMSDatasetDetailView/CLMSDatasetDetailView.jsx +1 -1
- package/src/components/CLMSDatasetDetailView/MetadataContent.jsx +57 -19
- package/src/components/CLMSDownloadCartView/CLMSCartContent.jsx +329 -0
- package/src/components/CLMSDownloadCartView/CLMSDownloadCartView.jsx +11 -235
- package/src/components/CLMSDownloadCartView/CLMSTasksInProgress.jsx +81 -61
- package/src/components/CLMSDownloadCartView/cartUtils.js +75 -0
- package/src/components/CLMSDownloadCartView/conversion.js +28 -0
- package/src/components/CclButton/CclButton.jsx +13 -6
- package/src/components/CclCard/CclCard.jsx +1 -1
- package/src/components/CclDownloadTable/CclDownloadTable.jsx +14 -7
- package/src/components/CclTab/CclTab.jsx +6 -3
- package/src/components/CclTab/CclTabs.jsx +17 -11
- package/src/components/Widgets/DownloadableFilesWidget.jsx +32 -5
- package/src/customizations/volto/components/theme/Header/Header.jsx +15 -15
- package/src/customizations/volto/components/theme/Navigation/Navigation.jsx +5 -5
- package/src/reducers/datasets_by_uid/datasets_by_uid.js +43 -0
- package/src/reducers/downloadtool/downloadtool_reducer.js +60 -2
- package/src/reducers/index.js +2 -0
- package/theme/clms/css/header.css +3 -1
- package/theme/clms/css/styles.less +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,71 @@ 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.52](https://github.com/eea/volto-clms-theme/compare/1.0.51...1.0.52)
|
|
8
|
+
|
|
9
|
+
- Download cart [`#163`](https://github.com/eea/volto-clms-theme/pull/163)
|
|
10
|
+
- fixes [`c783f5d`](https://github.com/eea/volto-clms-theme/commit/c783f5de953c79dfe4934ce2dc0fdf472d951753)
|
|
11
|
+
- use dataset information from direct attribute [`b56e96b`](https://github.com/eea/volto-clms-theme/commit/b56e96b2d3c58bfb23994f4c8ef53f85eba7fdf1)
|
|
12
|
+
- debug lint [`74e8e2c`](https://github.com/eea/volto-clms-theme/commit/74e8e2c9857031e636b54826ee9f1c6d384100ab)
|
|
13
|
+
- code refractoring [`79979ed`](https://github.com/eea/volto-clms-theme/commit/79979ed79049e9b600f3b377ae746af6a77903a4)
|
|
14
|
+
- downloadtool post body_extras [`fc15d56`](https://github.com/eea/volto-clms-theme/commit/fc15d56040e5711cde05417f8e7a54c331b93ff1)
|
|
15
|
+
- the format selector always draws according to the api @format_conversion_table [`03e1bd9`](https://github.com/eea/volto-clms-theme/commit/03e1bd9ef7ff276e7006e0d09dea300d38530e99)
|
|
16
|
+
- format and projection selector only available for mapviewer sources [`b86dca7`](https://github.com/eea/volto-clms-theme/commit/b86dca7229d4ce957488166fe800d9ffdaa105f7)
|
|
17
|
+
- view the source in the cart (Pre-packaged or Map viewer) [`cb65dc7`](https://github.com/eea/volto-clms-theme/commit/cb65dc7664d68926e8ae0a481969c82105a6f402)
|
|
18
|
+
- if the cart is empty, dont show the table [`c482e18`](https://github.com/eea/volto-clms-theme/commit/c482e1855eebd57866761759019b79bdc7c182a7)
|
|
19
|
+
- cart items from mapviewer [`d7da742`](https://github.com/eea/volto-clms-theme/commit/d7da74202701703b0c0e2053a42e4dff1d0745f2)
|
|
20
|
+
- fix going back error [`9a24291`](https://github.com/eea/volto-clms-theme/commit/9a24291dcf5bbff3a33ad68b1b06726fda855aa0)
|
|
21
|
+
- added to cart message style [`6a2efdb`](https://github.com/eea/volto-clms-theme/commit/6a2efdb9a0b44f15c3b9e1963dd1434d5f7f7c5c)
|
|
22
|
+
|
|
23
|
+
#### [1.0.51](https://github.com/eea/volto-clms-theme/compare/1.0.50...1.0.51)
|
|
24
|
+
|
|
25
|
+
> 20 December 2021
|
|
26
|
+
|
|
27
|
+
- Cart Download tool [`#162`](https://github.com/eea/volto-clms-theme/pull/162)
|
|
28
|
+
- Download cart [`#160`](https://github.com/eea/volto-clms-theme/pull/160)
|
|
29
|
+
- download cart projections [`#161`](https://github.com/eea/volto-clms-theme/pull/161)
|
|
30
|
+
- Download cart format [`#159`](https://github.com/eea/volto-clms-theme/pull/159)
|
|
31
|
+
- update selected projection option [`6107574`](https://github.com/eea/volto-clms-theme/commit/6107574aa8990b9e431bae8b57069d33b66e9f49)
|
|
32
|
+
- control if downloadtool tasks have been canceled [`0719593`](https://github.com/eea/volto-clms-theme/commit/0719593d211e0b6ef8b156a84fbd512fc09737b8)
|
|
33
|
+
- loading icon and cclbutton isButton option [`807d376`](https://github.com/eea/volto-clms-theme/commit/807d3768beb17cb61a018c21ae490911fe389d95)
|
|
34
|
+
- adapted downloadtool post request [`fc2a2b3`](https://github.com/eea/volto-clms-theme/commit/fc2a2b3ccbee922cd30f5dd62c4583be621391cc)
|
|
35
|
+
- merge develop into download-cart branch [`758ced7`](https://github.com/eea/volto-clms-theme/commit/758ced7ae94351ab9b25b6b6b98ca07821a233ca)
|
|
36
|
+
- add selector to downloadable files editor [`9f05582`](https://github.com/eea/volto-clms-theme/commit/9f05582ed60e9136cc451543a906afa32fef89aa)
|
|
37
|
+
- add action.error on FAIL [`dcf64ac`](https://github.com/eea/volto-clms-theme/commit/dcf64ac1a5cb25092fac1d9aae992c8e783dc85b)
|
|
38
|
+
- basic format selector [`07202c4`](https://github.com/eea/volto-clms-theme/commit/07202c4f548c98df4a74b1058ed24eea88d13425)
|
|
39
|
+
- header nav active border [`037be91`](https://github.com/eea/volto-clms-theme/commit/037be91b4dda6221005dd730fb9d16a862044f87)
|
|
40
|
+
- new volto-clms-utils release [`fca4d27`](https://github.com/eea/volto-clms-theme/commit/fca4d2777ecbd0222fb34c543771f14e5af38fa3)
|
|
41
|
+
- task in progress url changed [`9c23caa`](https://github.com/eea/volto-clms-theme/commit/9c23caa53fc3a61773307f1f3a5b7f6338ecbc69)
|
|
42
|
+
- save endpoint json [`26eb803`](https://github.com/eea/volto-clms-theme/commit/26eb80316a117e7cb2375f10c7100406fbc90308)
|
|
43
|
+
- start Downloading to function [`782e41e`](https://github.com/eea/volto-clms-theme/commit/782e41e71a34492cacc7dc6007d5772db8bbeba9)
|
|
44
|
+
- cartContent remove element [`155bf2d`](https://github.com/eea/volto-clms-theme/commit/155bf2d6e4eb9867a7b6c7b16b01c2f7b433080a)
|
|
45
|
+
- removed unique_id to session_cart [`b4d1ea7`](https://github.com/eea/volto-clms-theme/commit/b4d1ea7e0032b76ee03ad4b44a351d1028f13f42)
|
|
46
|
+
- select all cart elements bug fixed [`0c703f2`](https://github.com/eea/volto-clms-theme/commit/0c703f29aec3c85cb149d89dc64344ade060eba5)
|
|
47
|
+
- cart list from api request [`eeb24e8`](https://github.com/eea/volto-clms-theme/commit/eeb24e88e26d51c82ceda3840ef6f5dc78416d2f)
|
|
48
|
+
- header cart counter always visible [`ac262b1`](https://github.com/eea/volto-clms-theme/commit/ac262b145adff04ca3084ec1bda2387aa03914da)
|
|
49
|
+
|
|
50
|
+
#### [1.0.50](https://github.com/eea/volto-clms-theme/compare/1.0.49...1.0.50)
|
|
51
|
+
|
|
52
|
+
> 17 December 2021
|
|
53
|
+
|
|
54
|
+
- Develop [`#158`](https://github.com/eea/volto-clms-theme/pull/158)
|
|
55
|
+
- cart icon with 0 items [`477f1ef`](https://github.com/eea/volto-clms-theme/commit/477f1efa39d6d5e4adede1b3c4f15e2b524dbcf5)
|
|
56
|
+
- add routing to dataset view [`e65a730`](https://github.com/eea/volto-clms-theme/commit/e65a7304fc338b3262b7f9dad9b5c5029391f3c1)
|
|
57
|
+
- add option without routing [`9675773`](https://github.com/eea/volto-clms-theme/commit/9675773a9531a98cee7f9735b09ebc6c3cfcd6fe)
|
|
58
|
+
|
|
59
|
+
#### [1.0.49](https://github.com/eea/volto-clms-theme/compare/1.0.48...1.0.49)
|
|
60
|
+
|
|
61
|
+
> 17 December 2021
|
|
62
|
+
|
|
63
|
+
- DataSet Metadata view [`#157`](https://github.com/eea/volto-clms-theme/pull/157)
|
|
64
|
+
- labels and conformity pass [`59be2fd`](https://github.com/eea/volto-clms-theme/commit/59be2fd5034fdfed211c4e0b0872504432e254e9)
|
|
65
|
+
- image [`47cc7dc`](https://github.com/eea/volto-clms-theme/commit/47cc7dc37974848f2d90cdf6a035970620489cf8)
|
|
66
|
+
|
|
7
67
|
#### [1.0.48](https://github.com/eea/volto-clms-theme/compare/1.0.47...1.0.48)
|
|
8
68
|
|
|
69
|
+
> 16 December 2021
|
|
70
|
+
|
|
71
|
+
- Develop [`#156`](https://github.com/eea/volto-clms-theme/pull/156)
|
|
9
72
|
- dataset view [`38faa9d`](https://github.com/eea/volto-clms-theme/commit/38faa9d291e22c92a1c9049c7241555b2300f830)
|
|
10
73
|
- tab editor [`cfbcf74`](https://github.com/eea/volto-clms-theme/commit/cfbcf742b370cc665c689a2480a09d3b640dc318)
|
|
11
74
|
- remove required to description in proptypes [`9f6da1d`](https://github.com/eea/volto-clms-theme/commit/9f6da1d9c2125865c329a263d0a7b3e771baa287)
|
package/README.md
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
# volto-clms-theme
|
|
2
|
+
|
|
2
3
|
[](https://github.com/eea/volto-clms-theme/releases)
|
|
4
|
+
|
|
3
5
|
[](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-clms-theme/job/master/display/redirect)
|
|
6
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-master)
|
|
7
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-master)
|
|
8
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-master)
|
|
9
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-master)
|
|
10
|
+
|
|
4
11
|
[](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-clms-theme/job/develop/display/redirect)
|
|
12
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-develop)
|
|
13
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-develop)
|
|
14
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-develop)
|
|
15
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-develop)
|
|
5
16
|
|
|
6
17
|
[Volto](https://github.com/plone/volto) add-on
|
|
7
18
|
|
|
@@ -46,6 +57,81 @@ Demo GIF
|
|
|
46
57
|
|
|
47
58
|
1. Happy editing!
|
|
48
59
|
|
|
60
|
+
## Release
|
|
61
|
+
|
|
62
|
+
### Automatic release using Jenkins
|
|
63
|
+
|
|
64
|
+
* The automatic release is started by creating a [Pull Request](../../compare/master...develop) from `develop` to `master`. The pull request status checks correlated to the branch and PR Jenkins jobs need to be processed successfully. 1 review from a github user with rights is mandatory.
|
|
65
|
+
* It runs on every commit on `master` branch, which is protected from direct commits, only allowing pull request merge commits.
|
|
66
|
+
* The automatic release is done by [Jenkins](https://ci.eionet.europa.eu). The status of the release job can be seen both in the `README.md` badges and the green check/red cross/yellow circle near the last commit information. If you click on the icon, you will have the list of checks that were run. The `continuous-integration/jenkins/branch` link goes to the Jenkins job execution webpage.
|
|
67
|
+
* Automated release scripts are located in the `eeacms/gitflow` docker image, specifically [js-release.sh](https://github.com/eea/eea.docker.gitflow/blob/master/src/js-release.sh) script. It uses the `release-it` tool.
|
|
68
|
+
* As long as a PR request is open from develop to master, the PR Jenkins job will automatically re-create the CHANGELOG.md and package.json files to be production-ready.
|
|
69
|
+
* The version format must be MAJOR.MINOR.PATCH. By default, next release is set to next minor version (with patch 0).
|
|
70
|
+
* You can manually change the version in `package.json`. The new version must not be already present in the tags/releases of the repository, otherwise it will be automatically increased by the script. Any changes to the version will trigger a `CHANGELOG.md` re-generation.
|
|
71
|
+
* Automated commits and commits with [JENKINS] or [YARN] in the commit log are excluded from `CHANGELOG.md` file.
|
|
72
|
+
|
|
73
|
+
### Manual release from the develop branch ( beta release )
|
|
74
|
+
|
|
75
|
+
#### Installation and configuration of release-it
|
|
76
|
+
|
|
77
|
+
You need to first install the [release-it](https://github.com/release-it/release-it) client.
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
npm install -g release-it
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.
|
|
84
|
+
|
|
85
|
+
Release-it is a tool that automates 4 important steps in the release process:
|
|
86
|
+
|
|
87
|
+
1. Version increase in `package.json` ( increased from the current version in `package.json`)
|
|
88
|
+
2. `CHANGELOG.md` automatic generation from commit messages ( grouped by releases )
|
|
89
|
+
3. GitHub release on the commit with the changelog and package.json modification on the develop branch
|
|
90
|
+
4. NPM release ( by default it's disabled, but can be enabled in the configuration file )
|
|
91
|
+
|
|
92
|
+
To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
#### Using release-it tool
|
|
105
|
+
|
|
106
|
+
There are 3 yarn scripts that can be run to do the release
|
|
107
|
+
|
|
108
|
+
##### yarn release-beta
|
|
109
|
+
|
|
110
|
+
Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
? Select increment (next version):
|
|
114
|
+
❯ prepatch (0.1.1-beta.0)
|
|
115
|
+
preminor (0.2.0-beta.0)
|
|
116
|
+
premajor (1.0.0-beta.0)
|
|
117
|
+
Other, please specify...
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
##### yarn release-major-beta
|
|
121
|
+
|
|
122
|
+
Same as `yarn release-beta`, but with premajor version pre-selected.
|
|
123
|
+
|
|
124
|
+
##### yarn release
|
|
125
|
+
|
|
126
|
+
Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.
|
|
127
|
+
|
|
128
|
+
#### Important notes
|
|
129
|
+
|
|
130
|
+
> Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
|
|
131
|
+
|
|
132
|
+
> Do not keep Pull Requests from develop to master branches open when you are doing beta releases from the develop branch. As long as a PR to master is open, an automatic script will run on every commit and will update both the version and the changelog to a production-ready state - ( MAJOR.MINOR.PATCH mandatory format for version).
|
|
133
|
+
|
|
134
|
+
|
|
49
135
|
## How to contribute
|
|
50
136
|
|
|
51
137
|
See [DEVELOP.md](https://github.com/eea/volto-clms-theme/blob/master/DEVELOP.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-clms-theme",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
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",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-svg": "14.0.4",
|
|
50
50
|
"@eeacms/volto-arcgis-block": "*",
|
|
51
51
|
"react-native-mime-types": "2.3.0",
|
|
52
|
-
"@eeacms/volto-clms-utils": "0.1.
|
|
52
|
+
"@eeacms/volto-clms-utils": "0.1.2",
|
|
53
53
|
"volto-form-block": "2.1.0",
|
|
54
54
|
"@eeacms/volto-taxonomy": "^1.0.0"
|
|
55
55
|
},
|
|
@@ -105,6 +105,8 @@
|
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|
|
107
107
|
"release": "release-it",
|
|
108
|
+
"release-major-beta": "release-it major --preRelease=beta",
|
|
109
|
+
"release-beta": "release-it --preRelease=beta",
|
|
108
110
|
"bootstrap": "npm install -g ejs; npm link ejs; node bootstrap",
|
|
109
111
|
"stylelint": "../../../node_modules/stylelint/bin/stylelint.js --allow-empty-input 'src/**/*.{css,less}'",
|
|
110
112
|
"stylelint:theme": "../../../node_modules/stylelint/bin/stylelint.js --allow-empty-input 'theme/**/*.{css,less}'",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get cart selection to downloadtool.
|
|
3
|
+
* @module actions/getDatasetsByUid
|
|
4
|
+
*/
|
|
5
|
+
export const DATASETS_BY_UID = 'DATASETS_BY_UID';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Get cart selection to downloadtool.
|
|
9
|
+
* @function GetDatasetsByUid
|
|
10
|
+
* @returns {Object} Get extra items action.
|
|
11
|
+
*/
|
|
12
|
+
export function getDatasetsByUid(uids) {
|
|
13
|
+
return {
|
|
14
|
+
type: DATASETS_BY_UID,
|
|
15
|
+
request: {
|
|
16
|
+
op: 'get',
|
|
17
|
+
path: '/@datasets_by_uid?UID=' + uids,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -9,13 +9,13 @@ export const DELETE_DOWNLOADTOOL = 'DELETE_DOWNLOADTOOL';
|
|
|
9
9
|
* @function deleteDownloadtool
|
|
10
10
|
* @returns {Object} Get extra items action.
|
|
11
11
|
*/
|
|
12
|
-
export function deleteDownloadtool(
|
|
12
|
+
export function deleteDownloadtool(task_id, user_id) {
|
|
13
13
|
return {
|
|
14
14
|
type: DELETE_DOWNLOADTOOL,
|
|
15
15
|
request: {
|
|
16
16
|
op: 'del',
|
|
17
|
-
data: {
|
|
18
|
-
path:
|
|
17
|
+
data: { TaskID: task_id },
|
|
18
|
+
path: `/@datarequest_delete`,
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
}
|
|
@@ -9,12 +9,12 @@ export const GET_DOWNLOADTOOL = 'GET_DOWNLOADTOOL';
|
|
|
9
9
|
* @function GetDownloadtool
|
|
10
10
|
* @returns {Object} Get extra items action.
|
|
11
11
|
*/
|
|
12
|
-
export function getDownloadtool(
|
|
12
|
+
export function getDownloadtool() {
|
|
13
13
|
return {
|
|
14
14
|
type: GET_DOWNLOADTOOL,
|
|
15
15
|
request: {
|
|
16
16
|
op: 'get',
|
|
17
|
-
path: `/@datarequest_search?
|
|
17
|
+
path: `/@datarequest_search?status=In_progress`,
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
20
|
}
|
|
@@ -9,7 +9,8 @@ export const POST_DOWNLOADTOOL = 'POST_DOWNLOADTOOL';
|
|
|
9
9
|
* @function PostDownloadtool
|
|
10
10
|
* @returns {Object} Get extra items action.
|
|
11
11
|
*/
|
|
12
|
-
export function postDownloadtool(item) {
|
|
12
|
+
export function postDownloadtool(item, unique_ids) {
|
|
13
|
+
// console.log("unique_ids: ", unique_ids);
|
|
13
14
|
return {
|
|
14
15
|
type: POST_DOWNLOADTOOL,
|
|
15
16
|
request: {
|
|
@@ -17,5 +18,6 @@ export function postDownloadtool(item) {
|
|
|
17
18
|
data: item,
|
|
18
19
|
path: '/@datarequest_post',
|
|
19
20
|
},
|
|
21
|
+
unique_ids: unique_ids,
|
|
20
22
|
};
|
|
21
23
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get cart selection to downloadtool.
|
|
3
|
+
* @module actions/getFormatConversionTable
|
|
4
|
+
*/
|
|
5
|
+
export const GET_FORMATCONVERSIONTABLE = 'GET_FORMATCONVERSIONTABLE';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Get cart selection to downloadtool.
|
|
9
|
+
* @function GetFormatConversionTable
|
|
10
|
+
* @returns {Object} Get extra items action.
|
|
11
|
+
*/
|
|
12
|
+
export function getFormatConversionTable() {
|
|
13
|
+
return {
|
|
14
|
+
type: GET_FORMATCONVERSIONTABLE,
|
|
15
|
+
request: {
|
|
16
|
+
op: 'get',
|
|
17
|
+
path: '/@format_conversion_table',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
package/src/actions/index.js
CHANGED
|
@@ -47,6 +47,18 @@ export {
|
|
|
47
47
|
deleteDownloadtool,
|
|
48
48
|
} from './downloadtool/delete_downloadtool';
|
|
49
49
|
|
|
50
|
+
export {
|
|
51
|
+
GET_FORMATCONVERSIONTABLE,
|
|
52
|
+
getFormatConversionTable,
|
|
53
|
+
} from './format_conversion_table/get_format_conversion_table';
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
DATASETS_BY_UID,
|
|
57
|
+
getDatasetsByUid,
|
|
58
|
+
} from './datasets_by_uid/datasets_by_uid';
|
|
59
|
+
|
|
60
|
+
export { GET_PROJECTIONS, getProjections } from './projections/get_projections';
|
|
61
|
+
|
|
50
62
|
export { GET_REGISTRY, getRegistry } from './registry/registry';
|
|
51
63
|
|
|
52
64
|
export {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get cart selection to downloadtool.
|
|
3
|
+
* @module actions/getProjections
|
|
4
|
+
*/
|
|
5
|
+
export const GET_PROJECTIONS = 'GET_PROJECTIONS';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Get cart selection to downloadtool.
|
|
9
|
+
* @function GetProjections
|
|
10
|
+
* @returns {Object} Get extra items action.
|
|
11
|
+
*/
|
|
12
|
+
export function getProjections() {
|
|
13
|
+
return {
|
|
14
|
+
type: GET_PROJECTIONS,
|
|
15
|
+
request: {
|
|
16
|
+
op: 'get',
|
|
17
|
+
path: '/@projections',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -23,10 +23,10 @@ const TextLinkCarouselView = (props) => {
|
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
25
|
<>
|
|
26
|
-
<div
|
|
26
|
+
<div className="ccl-container">
|
|
27
27
|
<Slider {...settings} ref={slider} className="text-carousel">
|
|
28
|
-
{data?.textLink?.items.map((
|
|
29
|
-
<div className="text-link-carousel-block" key={
|
|
28
|
+
{data?.textLink?.items.map((key, item) => (
|
|
29
|
+
<div className="text-link-carousel-block" key={key}>
|
|
30
30
|
<div className="text-link-carousel-block-content">
|
|
31
31
|
<a href={'' + item?.link?.[0]?.['@id']}>{item.text}</a>
|
|
32
32
|
</div>
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { connect } from 'react-redux';
|
|
3
|
-
import { compose } from 'redux';
|
|
4
|
-
import { withRouter } from 'react-router';
|
|
5
|
-
import loadable from '@loadable/component';
|
|
6
|
-
import { RenderBlocks } from '@plone/volto/components';
|
|
7
|
-
import { withScrollToTarget } from '@eeacms/volto-tabs-block/hocs';
|
|
8
1
|
import './custom.less';
|
|
9
|
-
import cx from 'classnames';
|
|
10
2
|
import 'slick-carousel/slick/slick.css';
|
|
11
3
|
import 'slick-carousel/slick/slick-theme.css';
|
|
12
4
|
import '@eeacms/volto-tabs-block/less/carousel.less';
|
|
5
|
+
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { RenderBlocks } from '@plone/volto/components';
|
|
8
|
+
import { compose } from 'redux';
|
|
9
|
+
import { connect } from 'react-redux';
|
|
10
|
+
import cx from 'classnames';
|
|
11
|
+
import loadable from '@loadable/component';
|
|
12
|
+
import { withRouter } from 'react-router';
|
|
13
|
+
import { withScrollToTarget } from '@eeacms/volto-tabs-block/hocs';
|
|
13
14
|
const Slider = loadable(() => import('react-slick'));
|
|
14
15
|
|
|
15
16
|
const View = (props) => {
|
|
@@ -32,7 +33,7 @@ const View = (props) => {
|
|
|
32
33
|
speed: 2000,
|
|
33
34
|
fade: true,
|
|
34
35
|
cssEase: 'linear',
|
|
35
|
-
autoplay:
|
|
36
|
+
autoplay: true,
|
|
36
37
|
autoplaySpeed: 5000,
|
|
37
38
|
beforeChange: (oldIndex, index) => {
|
|
38
39
|
setActiveTab(tabsList[index]);
|
|
@@ -190,7 +190,7 @@ const CLMSDatasetDetailView = ({ content, token }) => {
|
|
|
190
190
|
})}
|
|
191
191
|
</Segment.Group>
|
|
192
192
|
)}
|
|
193
|
-
<CclTabs>
|
|
193
|
+
<CclTabs routing={true}>
|
|
194
194
|
<div tabTitle="General Info">{DataSetInfoContent(content)}</div>
|
|
195
195
|
<div tabTitle="Metadata">{MetadataContent(content)}</div>
|
|
196
196
|
|
|
@@ -64,16 +64,34 @@ const MetadataContent = (data) => {
|
|
|
64
64
|
<CclInfoDescription
|
|
65
65
|
title="Keywords"
|
|
66
66
|
tooltip=""
|
|
67
|
-
description={
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
description={
|
|
68
|
+
<Label.Group>
|
|
69
|
+
{data?.keywords.map((keyword, key) => {
|
|
70
|
+
return (
|
|
71
|
+
<Label key={key} color="olive">
|
|
72
|
+
{keyword}
|
|
73
|
+
</Label>
|
|
74
|
+
);
|
|
75
|
+
})}
|
|
76
|
+
</Label.Group>
|
|
77
|
+
}
|
|
70
78
|
/>
|
|
71
79
|
)}
|
|
72
|
-
{data?.geographicCoverage && (
|
|
80
|
+
{data?.geographicCoverage?.geolocation && (
|
|
73
81
|
<CclInfoDescription
|
|
74
82
|
title="Geographic coverage"
|
|
75
83
|
tooltip=""
|
|
76
|
-
description={
|
|
84
|
+
description={
|
|
85
|
+
<Label.Group>
|
|
86
|
+
{data?.geographicCoverage?.geolocation.map((location, key) => {
|
|
87
|
+
return (
|
|
88
|
+
<Label key={key} color="olive">
|
|
89
|
+
{location.label}
|
|
90
|
+
</Label>
|
|
91
|
+
);
|
|
92
|
+
})}
|
|
93
|
+
</Label.Group>
|
|
94
|
+
}
|
|
77
95
|
/>
|
|
78
96
|
)}
|
|
79
97
|
{data?.accessAndUseLimitationPublic_line && (
|
|
@@ -100,10 +118,16 @@ const MetadataContent = (data) => {
|
|
|
100
118
|
title="Topic of Category"
|
|
101
119
|
tooltip=""
|
|
102
120
|
description={
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
121
|
+
<Label.Group>
|
|
122
|
+
{data?.classificationTopicCategory &&
|
|
123
|
+
data?.classificationTopicCategory.map((topic, key) => {
|
|
124
|
+
return (
|
|
125
|
+
<Label key={key} color="olive">
|
|
126
|
+
{topic.title}
|
|
127
|
+
</Label>
|
|
128
|
+
);
|
|
129
|
+
})}
|
|
130
|
+
</Label.Group>
|
|
107
131
|
}
|
|
108
132
|
/>
|
|
109
133
|
)}
|
|
@@ -121,10 +145,16 @@ const MetadataContent = (data) => {
|
|
|
121
145
|
title="Temporal Extent"
|
|
122
146
|
tooltip=""
|
|
123
147
|
description={
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
148
|
+
<Label.Group>
|
|
149
|
+
{data?.temporalCoverage &&
|
|
150
|
+
data?.temporalCoverage.map((year, key) => {
|
|
151
|
+
return (
|
|
152
|
+
<Label key={key} color="olive">
|
|
153
|
+
{year}
|
|
154
|
+
</Label>
|
|
155
|
+
);
|
|
156
|
+
})}
|
|
157
|
+
</Label.Group>
|
|
128
158
|
}
|
|
129
159
|
/>
|
|
130
160
|
)}
|
|
@@ -162,10 +192,18 @@ const MetadataContent = (data) => {
|
|
|
162
192
|
title="Coordinate Reference System"
|
|
163
193
|
tooltip="CRS of the resource"
|
|
164
194
|
description={
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
195
|
+
<Label.Group>
|
|
196
|
+
{data?.coordinateReferenceSystemList &&
|
|
197
|
+
data?.coordinateReferenceSystemList.map(
|
|
198
|
+
(reference, key) => {
|
|
199
|
+
return (
|
|
200
|
+
<Label key={key} color="olive">
|
|
201
|
+
{reference}
|
|
202
|
+
</Label>
|
|
203
|
+
);
|
|
204
|
+
},
|
|
205
|
+
)}
|
|
206
|
+
</Label.Group>
|
|
169
207
|
}
|
|
170
208
|
/>
|
|
171
209
|
</CclInfoContainer>
|
|
@@ -179,11 +217,11 @@ const MetadataContent = (data) => {
|
|
|
179
217
|
<StringToHTML string={data?.conformitySpecification?.data} />
|
|
180
218
|
}
|
|
181
219
|
/>
|
|
182
|
-
{data?.conformityPass && (
|
|
220
|
+
{data?.conformityPass?.title && (
|
|
183
221
|
<CclInfoDescription
|
|
184
222
|
title="Pass"
|
|
185
223
|
tooltip=""
|
|
186
|
-
description={data?.conformityPass}
|
|
224
|
+
description={data?.conformityPass?.title}
|
|
187
225
|
/>
|
|
188
226
|
)}
|
|
189
227
|
<CclInfoDescription
|