@eeacms/volto-cca-policy 0.3.21 → 0.3.23
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 +27 -0
- package/locales/bg/LC_MESSAGES/volto.po +301 -360
- package/locales/cs/LC_MESSAGES/volto.po +290 -319
- package/locales/da/LC_MESSAGES/volto.po +3812 -0
- package/locales/de/LC_MESSAGES/volto.po +304 -366
- package/locales/eea.cca.pot +6 -3
- package/locales/eea.climateadapt.menu.pot +0 -3
- package/locales/eea.climateadapt.pot +0 -3
- package/locales/el/LC_MESSAGES/volto.po +3812 -0
- package/locales/es/LC_MESSAGES/volto.po +304 -367
- package/locales/et/LC_MESSAGES/volto.po +287 -310
- package/locales/fi/LC_MESSAGES/volto.po +298 -345
- package/locales/fr/LC_MESSAGES/volto.po +309 -378
- package/locales/ga/LC_MESSAGES/volto.po +304 -372
- package/locales/hr/LC_MESSAGES/volto.po +290 -318
- package/locales/hu/LC_MESSAGES/volto.po +308 -382
- package/locales/is/LC_MESSAGES/volto.po +3812 -0
- package/locales/it/LC_MESSAGES/volto.po +297 -347
- package/locales/lt/LC_MESSAGES/volto.po +296 -331
- package/locales/lv/LC_MESSAGES/volto.po +3812 -0
- package/locales/mt/LC_MESSAGES/volto.po +3812 -0
- package/locales/nl/LC_MESSAGES/volto.po +303 -363
- package/locales/no/LC_MESSAGES/volto.po +3812 -0
- package/locales/pl/LC_MESSAGES/volto.po +288 -318
- package/locales/pt/LC_MESSAGES/volto.po +296 -346
- package/locales/ro/LC_MESSAGES/volto.po +301 -357
- package/locales/sk/LC_MESSAGES/volto.po +3812 -0
- package/locales/sl/LC_MESSAGES/volto.po +296 -336
- package/locales/sv/LC_MESSAGES/volto.po +3812 -0
- package/package.json +1 -1
- package/src/components/manage/Blocks/MissionSignatoriesProfile/AccordionList.jsx +4 -4
- package/src/components/manage/Blocks/MissionSignatoriesProfile/ItemsSection.jsx +54 -0
- package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/AssessmentTab.jsx +4 -55
- package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/GovernanceTab.jsx +3 -2
- package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/PlanningTab.jsx +92 -1
- package/src/components/manage/Blocks/MissionSignatoriesProfile/style.less +37 -10
- package/src/customizations/volto/components/theme/View/DefaultView.jsx +2 -2
- package/src/index.js +5 -0
- package/src/search/cca/config.js +17 -11
- package/src/utils.js +1 -3
- package/theme/globals/mission.less +5 -5
- package/theme/globals/search.less +6 -0
package/package.json
CHANGED
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
AccordionContent,
|
|
7
7
|
} from 'semantic-ui-react';
|
|
8
8
|
|
|
9
|
-
const AccordionList = ({ accordions }) => {
|
|
9
|
+
const AccordionList = ({ accordions, variation }) => {
|
|
10
10
|
const [activeIndex, setActiveIndex] = useState(-1);
|
|
11
11
|
const handleAccordionClick = (index) => {
|
|
12
12
|
setActiveIndex(activeIndex === index ? -1 : index);
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
|
-
<Accordion>
|
|
16
|
+
<Accordion className={variation}>
|
|
17
17
|
{accordions.map((accordion, index) => (
|
|
18
18
|
<React.Fragment key={index}>
|
|
19
19
|
<AccordionTitle
|
|
@@ -21,7 +21,7 @@ const AccordionList = ({ accordions }) => {
|
|
|
21
21
|
onClick={() => handleAccordionClick(index)}
|
|
22
22
|
>
|
|
23
23
|
<Icon
|
|
24
|
-
|
|
24
|
+
className={
|
|
25
25
|
activeIndex === index
|
|
26
26
|
? 'ri-arrow-up-s-line'
|
|
27
27
|
: 'ri-arrow-down-s-line'
|
|
@@ -30,7 +30,7 @@ const AccordionList = ({ accordions }) => {
|
|
|
30
30
|
{accordion.title}
|
|
31
31
|
</AccordionTitle>
|
|
32
32
|
<AccordionContent active={activeIndex === index}>
|
|
33
|
-
|
|
33
|
+
{accordion.content}
|
|
34
34
|
</AccordionContent>
|
|
35
35
|
</React.Fragment>
|
|
36
36
|
))}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Item, ItemGroup, ItemContent, Image } from 'semantic-ui-react';
|
|
3
|
+
|
|
4
|
+
import image from '@eeacms/volto-cca-policy/../theme//assets/images/image-narrow.svg';
|
|
5
|
+
|
|
6
|
+
const ItemsSection = ({ items }) => {
|
|
7
|
+
return (
|
|
8
|
+
<ItemGroup className="items-group">
|
|
9
|
+
<Item>
|
|
10
|
+
<Image size="small" src={image} />
|
|
11
|
+
<ItemContent verticalAlign="middle">
|
|
12
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
13
|
+
</ItemContent>
|
|
14
|
+
</Item>
|
|
15
|
+
|
|
16
|
+
<Item>
|
|
17
|
+
<Image size="small" src={image} />
|
|
18
|
+
<ItemContent verticalAlign="middle">
|
|
19
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
20
|
+
</ItemContent>
|
|
21
|
+
</Item>
|
|
22
|
+
|
|
23
|
+
<Item>
|
|
24
|
+
<Image size="small" src={image} />
|
|
25
|
+
<ItemContent verticalAlign="middle">
|
|
26
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
27
|
+
</ItemContent>
|
|
28
|
+
</Item>
|
|
29
|
+
|
|
30
|
+
<Item>
|
|
31
|
+
<Image size="small" src={image} />
|
|
32
|
+
<ItemContent verticalAlign="middle">
|
|
33
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
34
|
+
</ItemContent>
|
|
35
|
+
</Item>
|
|
36
|
+
|
|
37
|
+
<Item>
|
|
38
|
+
<Image size="small" src={image} />
|
|
39
|
+
<ItemContent verticalAlign="middle">
|
|
40
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
41
|
+
</ItemContent>
|
|
42
|
+
</Item>
|
|
43
|
+
|
|
44
|
+
<Item>
|
|
45
|
+
<Image size="small" src={image} />
|
|
46
|
+
<ItemContent verticalAlign="middle">
|
|
47
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
48
|
+
</ItemContent>
|
|
49
|
+
</Item>
|
|
50
|
+
</ItemGroup>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export default ItemsSection;
|
package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/AssessmentTab.jsx
CHANGED
|
@@ -4,14 +4,13 @@ import {
|
|
|
4
4
|
Image,
|
|
5
5
|
Button,
|
|
6
6
|
Segment,
|
|
7
|
-
Grid,
|
|
8
|
-
GridColumn,
|
|
9
7
|
Item,
|
|
10
8
|
ItemGroup,
|
|
11
9
|
ItemContent,
|
|
12
10
|
} from 'semantic-ui-react';
|
|
13
11
|
import { Callout } from '@eeacms/volto-eea-design-system/ui';
|
|
14
12
|
import AccordionList from './../AccordionList';
|
|
13
|
+
import ItemsSection from './../ItemsSection';
|
|
15
14
|
|
|
16
15
|
import image from '@eeacms/volto-cca-policy/../theme//assets/images/image-narrow.svg';
|
|
17
16
|
|
|
@@ -27,9 +26,9 @@ const AssessmentTab = () => {
|
|
|
27
26
|
</p>
|
|
28
27
|
</Callout>
|
|
29
28
|
|
|
30
|
-
<div className="
|
|
29
|
+
<div className="section-wrapper">
|
|
31
30
|
<h3>Climate Risk Assessment</h3>
|
|
32
|
-
<div className="
|
|
31
|
+
<div className="section-wrapper-info">
|
|
33
32
|
<ItemGroup unstackable className="row">
|
|
34
33
|
<Item>
|
|
35
34
|
<Image size="miny" src={image} />
|
|
@@ -50,57 +49,7 @@ const AssessmentTab = () => {
|
|
|
50
49
|
<h4>The CRA conducted considers the following factors</h4>
|
|
51
50
|
|
|
52
51
|
<div className="items-wrapper">
|
|
53
|
-
<
|
|
54
|
-
<GridColumn width={6} className="column-blocks-wrapper">
|
|
55
|
-
<ItemGroup unstackable className="row">
|
|
56
|
-
<Item>
|
|
57
|
-
<Image size="small" src={image} />
|
|
58
|
-
<ItemContent verticalAlign="middle">
|
|
59
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
60
|
-
</ItemContent>
|
|
61
|
-
</Item>
|
|
62
|
-
|
|
63
|
-
<Item>
|
|
64
|
-
<Image size="small" src={image} />
|
|
65
|
-
<ItemContent verticalAlign="middle">
|
|
66
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
67
|
-
</ItemContent>
|
|
68
|
-
</Item>
|
|
69
|
-
|
|
70
|
-
<Item>
|
|
71
|
-
<Image size="small" src={image} />
|
|
72
|
-
<ItemContent verticalAlign="middle">
|
|
73
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
74
|
-
</ItemContent>
|
|
75
|
-
</Item>
|
|
76
|
-
</ItemGroup>
|
|
77
|
-
</GridColumn>
|
|
78
|
-
|
|
79
|
-
<GridColumn width={6}>
|
|
80
|
-
<ItemGroup unstackable className="row">
|
|
81
|
-
<Item>
|
|
82
|
-
<Image size="small" src={image} />
|
|
83
|
-
<ItemContent verticalAlign="middle">
|
|
84
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
85
|
-
</ItemContent>
|
|
86
|
-
</Item>
|
|
87
|
-
|
|
88
|
-
<Item>
|
|
89
|
-
<Image size="small" src={image} />
|
|
90
|
-
<ItemContent verticalAlign="middle">
|
|
91
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
92
|
-
</ItemContent>
|
|
93
|
-
</Item>
|
|
94
|
-
|
|
95
|
-
<Item>
|
|
96
|
-
<Image size="small" src={image} />
|
|
97
|
-
<ItemContent verticalAlign="middle">
|
|
98
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
99
|
-
</ItemContent>
|
|
100
|
-
</Item>
|
|
101
|
-
</ItemGroup>
|
|
102
|
-
</GridColumn>
|
|
103
|
-
</Grid>
|
|
52
|
+
<ItemsSection />
|
|
104
53
|
</div>
|
|
105
54
|
|
|
106
55
|
<h4>Further details</h4>
|
package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/GovernanceTab.jsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Tab } from 'semantic-ui-react';
|
|
3
3
|
import { Callout } from '@eeacms/volto-eea-design-system/ui';
|
|
4
|
-
import AccordionList from './../AccordionList';
|
|
5
|
-
import StatisticsSection from './../StatisticsSection';
|
|
6
4
|
import { HTMLField } from '@eeacms/volto-cca-policy/helpers';
|
|
7
5
|
import { formatTextToHTML } from '@eeacms/volto-cca-policy/utils';
|
|
6
|
+
import AccordionList from './../AccordionList';
|
|
7
|
+
import StatisticsSection from './../StatisticsSection';
|
|
8
8
|
|
|
9
9
|
const GovernanceTab = ({ result }) => {
|
|
10
10
|
const statisticsData = [
|
|
@@ -73,6 +73,7 @@ const GovernanceTab = ({ result }) => {
|
|
|
73
73
|
{result?.Signatory} engages with other levels of government regarding
|
|
74
74
|
their:
|
|
75
75
|
</h3>
|
|
76
|
+
|
|
76
77
|
<AccordionList
|
|
77
78
|
accordions={[
|
|
78
79
|
{
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Tab } from 'semantic-ui-react';
|
|
2
|
+
import { Tab, Message } from 'semantic-ui-react';
|
|
3
3
|
import { Callout } from '@eeacms/volto-eea-design-system/ui';
|
|
4
|
+
import AccordionList from './../AccordionList';
|
|
5
|
+
import ItemsSection from './../ItemsSection';
|
|
4
6
|
|
|
5
7
|
const PlanningTab = () => {
|
|
6
8
|
return (
|
|
@@ -14,6 +16,76 @@ const PlanningTab = () => {
|
|
|
14
16
|
in magna.
|
|
15
17
|
</p>
|
|
16
18
|
</Callout>
|
|
19
|
+
<div className="section-wrapper">
|
|
20
|
+
<h5>
|
|
21
|
+
<span className="section-number">1. </span>
|
|
22
|
+
Donec in laoreet leo. Quisque suscipit ligula eu turpis dignissim, a
|
|
23
|
+
eleifend ipsum cursus.
|
|
24
|
+
</h5>
|
|
25
|
+
<AccordionList
|
|
26
|
+
variation="secondary"
|
|
27
|
+
accordions={[
|
|
28
|
+
{
|
|
29
|
+
title: 'Vestibulum ante ipsum primis',
|
|
30
|
+
content: 'No additional details provided.',
|
|
31
|
+
},
|
|
32
|
+
]}
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
<div className="section-wrapper">
|
|
36
|
+
<h5>
|
|
37
|
+
<span className="section-number">2. </span>
|
|
38
|
+
Donec in laoreet leo. Quisque suscipit ligula eu turpis dignissim, a
|
|
39
|
+
eleifend ipsum cursus.
|
|
40
|
+
</h5>
|
|
41
|
+
<AccordionList
|
|
42
|
+
variation="secondary"
|
|
43
|
+
accordions={[
|
|
44
|
+
{
|
|
45
|
+
title: 'Vestibulum ante ipsum primis',
|
|
46
|
+
content: 'No additional details provided.',
|
|
47
|
+
},
|
|
48
|
+
]}
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
<div className="section-wrapper">
|
|
52
|
+
<h5>
|
|
53
|
+
<span className="section-number">3. </span>
|
|
54
|
+
Donec in laoreet leo. Quisque suscipit ligula eu turpis dignissim, a
|
|
55
|
+
eleifend ipsum cursus.
|
|
56
|
+
</h5>
|
|
57
|
+
<AccordionList
|
|
58
|
+
variation="secondary"
|
|
59
|
+
accordions={[
|
|
60
|
+
{
|
|
61
|
+
title: 'Vestibulum ante ipsum primis',
|
|
62
|
+
content: 'No additional details provided.',
|
|
63
|
+
},
|
|
64
|
+
]}
|
|
65
|
+
/>
|
|
66
|
+
</div>
|
|
67
|
+
<h2>
|
|
68
|
+
Quisque suscipit ligula eu turpis dignissim, a eleifend ipsum cursus.
|
|
69
|
+
</h2>
|
|
70
|
+
|
|
71
|
+
<Callout>
|
|
72
|
+
<p>
|
|
73
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices
|
|
74
|
+
posuere cubilia curae; Pellentesque sodales, velit nec euismod
|
|
75
|
+
scelerisque, lectus est interdum eros, sit amet bibendum eros sapien
|
|
76
|
+
in magna.
|
|
77
|
+
</p>
|
|
78
|
+
</Callout>
|
|
79
|
+
<br />
|
|
80
|
+
<Message>
|
|
81
|
+
<p>
|
|
82
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices
|
|
83
|
+
posuere cubilia curae. Nunc euismod bibendum augue. Cras nec ligula
|
|
84
|
+
velit. Donec in laoreet leo. Quisque suscipit ligula eu turpis
|
|
85
|
+
dignissim, a eleifend ipsum cursus.
|
|
86
|
+
</p>
|
|
87
|
+
</Message>
|
|
88
|
+
<ItemsSection />
|
|
17
89
|
<p>
|
|
18
90
|
Curabitur at felis non libero suscipit fermentum. Duis volutpat, ante et
|
|
19
91
|
scelerisque luctus, sem nulla placerat leo, at aliquet libero justo id
|
|
@@ -21,6 +93,25 @@ const PlanningTab = () => {
|
|
|
21
93
|
augue. Cras nec ligula velit. Donec in laoreet leo. Quisque suscipit
|
|
22
94
|
ligula eu turpis dignissim, a eleifend ipsum cursus.
|
|
23
95
|
</p>
|
|
96
|
+
<p>
|
|
97
|
+
Year of formal approval of plan: <strong className="date">2023</strong>{' '}
|
|
98
|
+
End year of plan: {''}
|
|
99
|
+
<strong className="date">2030</strong>
|
|
100
|
+
</p>
|
|
101
|
+
|
|
102
|
+
<p>
|
|
103
|
+
<a href="/">
|
|
104
|
+
<strong>Nunc euismod bibendum augue</strong>
|
|
105
|
+
</a>
|
|
106
|
+
</p>
|
|
107
|
+
|
|
108
|
+
<p>
|
|
109
|
+
<a href="/">
|
|
110
|
+
<strong>
|
|
111
|
+
Donec in laoreet leo. Quisque suscipit ligula eu turpis dignissim
|
|
112
|
+
</strong>
|
|
113
|
+
</a>
|
|
114
|
+
</p>
|
|
24
115
|
</Tab.Pane>
|
|
25
116
|
);
|
|
26
117
|
};
|
|
@@ -1,21 +1,48 @@
|
|
|
1
|
+
@type: 'extra';
|
|
2
|
+
@element: 'custom';
|
|
3
|
+
|
|
4
|
+
@import (multiple, reference, optional) '../../theme.config';
|
|
5
|
+
|
|
1
6
|
.signatories-profile {
|
|
2
|
-
.
|
|
7
|
+
.items-wrapper {
|
|
8
|
+
margin: 2em 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.section-wrapper-info {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
|
|
16
|
+
.date {
|
|
17
|
+
position: relative;
|
|
18
|
+
top: 5px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.section-wrapper {
|
|
3
23
|
padding: 1.5em;
|
|
4
24
|
margin: 2em 0;
|
|
5
25
|
background-color: #f9f9f9;
|
|
6
26
|
|
|
7
|
-
.
|
|
8
|
-
|
|
27
|
+
.section-number {
|
|
28
|
+
color: @pineGreen;
|
|
9
29
|
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
strong.date {
|
|
33
|
+
margin-right: 0.5em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.items-group {
|
|
37
|
+
display: block !important;
|
|
38
|
+
column-count: 2;
|
|
10
39
|
|
|
11
|
-
.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
font-size: 14px;
|
|
40
|
+
.item {
|
|
41
|
+
padding: 0.5em 0 !important;
|
|
42
|
+
break-inside: avoid-column;
|
|
15
43
|
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
top: 5px;
|
|
44
|
+
.content {
|
|
45
|
+
padding-left: 0.5rem !important;
|
|
19
46
|
}
|
|
20
47
|
}
|
|
21
48
|
}
|
|
@@ -102,8 +102,8 @@ const DefaultView = (props) => {
|
|
|
102
102
|
name: currentNavigation.title,
|
|
103
103
|
includeTop: false,
|
|
104
104
|
// currentFolderOnly: true,
|
|
105
|
-
topLevel: currentNavigation.topLevel,
|
|
106
|
-
bottomLevel: currentNavigation.bottomLevel,
|
|
105
|
+
topLevel: currentNavigation.topLevel + 1,
|
|
106
|
+
bottomLevel: currentNavigation.bottomLevel + 1,
|
|
107
107
|
rootPath: `${currentLang}/${currentNavigation.rootPath}`,
|
|
108
108
|
}}
|
|
109
109
|
/>
|
package/src/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import loadable from '@loadable/component';
|
|
|
3
3
|
import { compose } from 'redux';
|
|
4
4
|
import { Sitemap } from '@plone/volto/components';
|
|
5
5
|
import DefaultView from '@plone/volto/components/theme/View/DefaultView';
|
|
6
|
+
import SelectAutoCompleteWidget from '@plone/volto/components/manage/Widgets/SelectAutoComplete';
|
|
6
7
|
import {
|
|
7
8
|
RASTWidgetView,
|
|
8
9
|
TranslationDisclaimer,
|
|
@@ -522,6 +523,10 @@ const applyConfig = (config) => {
|
|
|
522
523
|
...config.settings.storeExtenders,
|
|
523
524
|
];
|
|
524
525
|
|
|
526
|
+
config.widgets.vocabulary[
|
|
527
|
+
'plone.app.vocabularies.Users'
|
|
528
|
+
] = SelectAutoCompleteWidget;
|
|
529
|
+
|
|
525
530
|
return compose(installBlocks, installSearchEngine, installStore)(config);
|
|
526
531
|
};
|
|
527
532
|
|
package/src/search/cca/config.js
CHANGED
|
@@ -70,11 +70,24 @@ export default function installMainSearch(config) {
|
|
|
70
70
|
|
|
71
71
|
// console.log('config.searchui.ccaSearch clusers', clusters);
|
|
72
72
|
// debugger;
|
|
73
|
-
config.searchui.
|
|
73
|
+
config.searchui.ccaSearch = {
|
|
74
|
+
...mergeConfig(envConfig, config.searchui.globalsearchbase),
|
|
75
|
+
elastic_index: '_es/globalsearch',
|
|
76
|
+
index_name: 'data_searchui',
|
|
77
|
+
host: process.env.RAZZLE_ES_PROXY_ADDR || 'http://localhost:3000',
|
|
78
|
+
runtime_mappings: cca_build_runtime_mappings,
|
|
79
|
+
...vocabs,
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
config.searchui.ccaSearch.download_fields = [
|
|
83
|
+
// { field: 'cca_uid', name: 'UID' },
|
|
74
84
|
{ field: 'about', name: 'About' },
|
|
75
|
-
{ field: 'title', name: '
|
|
76
|
-
{ field: '
|
|
85
|
+
{ field: 'title', name: 'Title' },
|
|
86
|
+
{ field: 'created', name: 'Creation Date' },
|
|
87
|
+
{ field: 'issued', name: 'Publication Date' },
|
|
88
|
+
{ field: 'creators', name: 'Creator' },
|
|
77
89
|
{ field: 'objectProvides', name: 'Content type' },
|
|
90
|
+
{ field: 'cca_keywords', name: 'Keywords' },
|
|
78
91
|
{ field: 'cca_adaptation_sectors', name: 'Sectors' },
|
|
79
92
|
{ field: 'cca_climate_impacts', name: 'Climate impact' },
|
|
80
93
|
{ field: 'transnational_regions', name: 'Transnational regions' },
|
|
@@ -85,15 +98,8 @@ export default function installMainSearch(config) {
|
|
|
85
98
|
{ field: 'cca_origin_websites', name: 'Origin website' },
|
|
86
99
|
{ field: 'cca_health_impacts', name: 'Health impacts' },
|
|
87
100
|
{ field: 'cca_partner_contributors', name: 'Observatory impacts' },
|
|
101
|
+
// { field: 'fulltext', name: 'Description' },
|
|
88
102
|
];
|
|
89
|
-
config.searchui.ccaSearch = {
|
|
90
|
-
...mergeConfig(envConfig, config.searchui.globalsearchbase),
|
|
91
|
-
elastic_index: '_es/globalsearch',
|
|
92
|
-
index_name: 'data_searchui',
|
|
93
|
-
host: process.env.RAZZLE_ES_PROXY_ADDR || 'http://localhost:3000',
|
|
94
|
-
runtime_mappings: cca_build_runtime_mappings,
|
|
95
|
-
...vocabs,
|
|
96
|
-
};
|
|
97
103
|
|
|
98
104
|
const { ccaSearch } = config.searchui;
|
|
99
105
|
|
package/src/utils.js
CHANGED
|
@@ -87,7 +87,5 @@ export const formatTextToHTML = (text) => {
|
|
|
87
87
|
// Replace \\n with <br /> (line breaks within paragraphs)
|
|
88
88
|
formattedText = formattedText.replace(/\\n/g, '<br />');
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
return formattedText;
|
|
90
|
+
return `<p>${formattedText}</p>`;
|
|
93
91
|
};
|
|
@@ -35,8 +35,8 @@ body.view-viewview.contenttype-subsite.section-mission
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
body.subsite-mkh {
|
|
38
|
-
--text-color-secondary: @
|
|
39
|
-
--border-color-secondary: @
|
|
38
|
+
--text-color-secondary: @pineGreen;
|
|
39
|
+
--border-color-secondary: @pineGreen;
|
|
40
40
|
|
|
41
41
|
.column > .ui.segment {
|
|
42
42
|
background-color: transparent;
|
|
@@ -94,12 +94,12 @@ body.subsite-mkh {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.ui.statistics:not(.inverted) .ui.statistic .slate.secondary {
|
|
97
|
-
color: @
|
|
97
|
+
color: @pineGreen;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.ui.secondary.pointing.menu .active.item {
|
|
101
|
-
color: @
|
|
102
|
-
border-color: @
|
|
101
|
+
color: @pineGreen;
|
|
102
|
+
border-color: @pineGreen;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
#mega-menu {
|
|
@@ -11,6 +11,12 @@ body.searchlib-page .searchlib-block {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
body.is-anonymous .searchlib-block .search-body-footer {
|
|
15
|
+
button.download-btn {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
.searchlib-page .content-section-tabs.menu .item i.icon.small {
|
|
15
21
|
width: 32px;
|
|
16
22
|
height: 32px;
|