@eeacms/volto-cca-policy 0.3.22 → 0.3.24

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/locales/bg/LC_MESSAGES/volto.po +301 -360
  3. package/locales/cs/LC_MESSAGES/volto.po +290 -319
  4. package/locales/da/LC_MESSAGES/volto.po +3812 -0
  5. package/locales/de/LC_MESSAGES/volto.po +304 -366
  6. package/locales/eea.cca.pot +6 -3
  7. package/locales/eea.climateadapt.menu.pot +0 -3
  8. package/locales/eea.climateadapt.pot +0 -3
  9. package/locales/el/LC_MESSAGES/volto.po +3812 -0
  10. package/locales/es/LC_MESSAGES/volto.po +304 -367
  11. package/locales/et/LC_MESSAGES/volto.po +287 -310
  12. package/locales/fi/LC_MESSAGES/volto.po +298 -345
  13. package/locales/fr/LC_MESSAGES/volto.po +309 -378
  14. package/locales/ga/LC_MESSAGES/volto.po +304 -372
  15. package/locales/hr/LC_MESSAGES/volto.po +290 -318
  16. package/locales/hu/LC_MESSAGES/volto.po +308 -382
  17. package/locales/is/LC_MESSAGES/volto.po +3812 -0
  18. package/locales/it/LC_MESSAGES/volto.po +297 -347
  19. package/locales/lt/LC_MESSAGES/volto.po +296 -331
  20. package/locales/lv/LC_MESSAGES/volto.po +3812 -0
  21. package/locales/mt/LC_MESSAGES/volto.po +3812 -0
  22. package/locales/nl/LC_MESSAGES/volto.po +303 -363
  23. package/locales/nn/LC_MESSAGES/volto.po +3812 -0
  24. package/locales/pl/LC_MESSAGES/volto.po +288 -318
  25. package/locales/pt/LC_MESSAGES/volto.po +296 -346
  26. package/locales/ro/LC_MESSAGES/volto.po +301 -357
  27. package/locales/sk/LC_MESSAGES/volto.po +3812 -0
  28. package/locales/sl/LC_MESSAGES/volto.po +296 -336
  29. package/locales/sv/LC_MESSAGES/volto.po +3812 -0
  30. package/package.json +3 -3
  31. package/src/components/manage/Blocks/MissionSignatoriesProfile/AccordionList.jsx +4 -4
  32. package/src/components/manage/Blocks/MissionSignatoriesProfile/ItemsSection.jsx +54 -0
  33. package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/AssessmentTab.jsx +4 -55
  34. package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/GovernanceTab.jsx +3 -2
  35. package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/PlanningTab.jsx +92 -1
  36. package/src/components/manage/Blocks/MissionSignatoriesProfile/style.less +37 -10
  37. package/src/customizations/volto/error.jsx +109 -0
  38. package/src/index.js +58 -2
  39. package/src/search/cca/config.js +17 -11
  40. package/src/utils.js +1 -3
  41. package/theme/globals/mission.less +5 -5
  42. package/theme/globals/search.less +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -32,10 +32,10 @@
32
32
  "@eeacms/volto-eea-design-system": "<=1.36.3",
33
33
  "@eeacms/volto-eea-website-theme": "^1.35.0",
34
34
  "@eeacms/volto-embed": "^9.1.1",
35
- "@eeacms/volto-globalsearch": "2.0.10",
35
+ "@eeacms/volto-globalsearch": "2.0.11",
36
36
  "@eeacms/volto-hero-block": "^7.1.0",
37
37
  "@eeacms/volto-openlayers-map": "*",
38
- "@eeacms/volto-searchlib": "2.0.14",
38
+ "@eeacms/volto-searchlib": "2.0.15",
39
39
  "@eeacms/volto-slate-label": "^0.6.0",
40
40
  "@eeacms/volto-tabs-block": "^7.5.1",
41
41
  "@elastic/search-ui": "1.21.2",
@@ -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
- name={
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
- <p>{accordion.content}</p>
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;
@@ -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="profile-content-box">
29
+ <div className="section-wrapper">
31
30
  <h3>Climate Risk Assessment</h3>
32
- <div className="profile-content-box-info">
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
- <Grid className="column-grid">
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>
@@ -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
- .profile-content-box {
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
- .items-wrapper {
8
- margin: 2em 0;
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
- .profile-content-box-info {
12
- display: flex;
13
- justify-content: space-between;
14
- font-size: 14px;
40
+ .item {
41
+ padding: 0.5em 0 !important;
42
+ break-inside: avoid-column;
15
43
 
16
- .date {
17
- position: relative;
18
- top: 5px;
44
+ .content {
45
+ padding-left: 0.5rem !important;
19
46
  }
20
47
  }
21
48
  }
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Error Page.
3
+ * @module Error
4
+ */
5
+
6
+ import React from 'react';
7
+ import { FormattedMessage, injectIntl } from 'react-intl';
8
+ import PropTypes from 'prop-types';
9
+ import { useHistory } from 'react-router-dom';
10
+
11
+ const styles = {
12
+ container: {
13
+ display: 'flex',
14
+ flexDirection: 'column',
15
+ alignItems: 'center',
16
+ justifyContent: 'center',
17
+ height: '100vh',
18
+ textAlign: 'center',
19
+ // backgroundColor: '#f8f9fa',
20
+ color: '#343a40',
21
+ fontFamily: 'Arial, sans-serif',
22
+ },
23
+ title: {
24
+ fontSize: '2rem',
25
+ marginBottom: '1rem',
26
+ },
27
+ message: {
28
+ fontSize: '1.2rem',
29
+ marginBottom: '2rem',
30
+ },
31
+ button: {
32
+ padding: '10px 20px',
33
+ fontSize: '1rem',
34
+ color: '#fff',
35
+ backgroundColor: '#004B7F',
36
+ border: 'none',
37
+ borderRadius: '5px',
38
+ cursor: 'pointer',
39
+ marginBottom: '1rem',
40
+ },
41
+ link: {
42
+ color: '#004B7F',
43
+ textDecoration: 'none',
44
+ fontSize: '1rem',
45
+ },
46
+ };
47
+
48
+ /**
49
+ * Error page.
50
+ * @function Error
51
+ * @returns {string} Markup of the error page.
52
+ */
53
+ const Error = ({ message, stackTrace }) => {
54
+ let history = useHistory();
55
+
56
+ return (
57
+ <div
58
+ style={{
59
+ fontFamily: 'Helvetica, sans-serif',
60
+ fontSize: '20px',
61
+ display: 'flex',
62
+ flexDirection: 'column',
63
+ justifyContent: 'center',
64
+ alignItems: 'center',
65
+ }}
66
+ >
67
+ <div style={styles.container}>
68
+ <h1 style={styles.title}>
69
+ <FormattedMessage
70
+ id="Sorry, something went wrong with your request"
71
+ defaultMessage="Sorry, something went wrong with your request"
72
+ />
73
+ </h1>
74
+ <p style={styles.message}>We're sorry, but an error has occurred.</p>
75
+
76
+ <button style={styles.button} onClick={() => history.goBack()}>
77
+ <FormattedMessage id="Navigate back" defaultMessage="Navigate back" />
78
+ </button>
79
+ <a style={styles.link} href="/">
80
+ <FormattedMessage
81
+ id="return to the site root"
82
+ defaultMessage="return to the site root"
83
+ />
84
+ </a>
85
+ <p>
86
+ <FormattedMessage
87
+ id="or try a different page."
88
+ defaultMessage="or try a different page."
89
+ />
90
+ </p>
91
+ <div style={{ display: 'none' }}>
92
+ <strong style={{ color: 'red' }}>{message}</strong>
93
+ <pre>{stackTrace}</pre>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ );
98
+ };
99
+
100
+ Error.propTypes = {
101
+ message: PropTypes.string.isRequired,
102
+ stackTrace: PropTypes.string,
103
+ };
104
+
105
+ Error.defaultProps = {
106
+ stackTrace: null,
107
+ };
108
+
109
+ export default injectIntl(Error);
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,
@@ -104,18 +105,69 @@ const applyConfig = (config) => {
104
105
  config.settings.isMultilingual = true;
105
106
  config.settings.hasLanguageDropdown = true;
106
107
  config.settings.defaultLanguage = 'en';
107
- config.settings.supportedLanguages = ['en', 'de', 'fr', 'es', 'it', 'pl'];
108
+ config.settings.supportedLanguages = [
109
+ 'en',
110
+
111
+ 'bg', // bulgarian
112
+ 'es', // spanish
113
+ 'cs', // czech
114
+ 'da', // danish
115
+ 'de', // german
116
+ 'et', // estonian
117
+ 'el', // greek
118
+ 'fr', // french
119
+ 'ga', // irish
120
+ 'hr', // croatian
121
+ 'it', // italian
122
+ 'lv', // latvia
123
+ 'lt', // lituania
124
+ 'hu', // hungarian
125
+ 'mt', // malta
126
+ 'nl', // dutch
127
+ 'pl', // polish
128
+ 'pt', // portuguese
129
+ 'ro', // romanian
130
+ 'sk', // slovakian
131
+ 'sl', // slovenian
132
+ 'fi', // suomi (finish)
133
+ 'sv', // swedish
134
+
135
+ 'is', // islenska, for iceland
136
+ 'nn', // norwegean (one of 2)
137
+ 'tr', // turkish
138
+ ];
108
139
 
109
140
  // EEA customizations
110
141
  config.settings.eea = {
111
142
  ...(config.settings.eea || {}),
112
143
  languages: [
113
144
  { name: 'English', code: 'en' },
145
+ // { name: 'български', code: 'bg' },
146
+ { name: 'Español', code: 'es' },
147
+ // { name: 'Čeština', code: 'cs' },
148
+ { name: 'Dansk', code: 'da' },
114
149
  { name: 'Deutsch', code: 'de' },
150
+ // { name: 'Eesti keel', code: 'et' },
151
+ { name: 'Ελληνικά', code: 'el' },
115
152
  { name: 'Français', code: 'fr' },
116
- { name: 'Español', code: 'es' },
153
+ // { name: 'Gaeilge', code: 'ga' },
154
+ { name: 'Hrvatski', code: 'hr' },
117
155
  { name: 'Italiano', code: 'it' },
156
+ // { name: 'Latviešu valoda', code: 'lv' },
157
+ // { name: 'Lietuvių kalba', code: 'lt' },
158
+ // { name: 'Magyar', code: 'hu' },
159
+ // { name: 'Malti', code: 'mt' },
160
+ // { name: 'Nederlands', code: 'nl' },
118
161
  { name: 'Polski', code: 'pl' },
162
+ { name: 'Português', code: 'pt' },
163
+ // { name: 'Română', code: 'ro' },
164
+ // { name: 'Slovenčina', code: 'sk' },
165
+ // { name: 'Slovenščina', code: 'sl' },
166
+ { name: 'Suomi', code: 'fi' },
167
+ { name: 'Svenska', code: 'sv' },
168
+ { name: 'Íslenska', code: 'is' },
169
+ { name: 'Nynorsk', code: 'nn' },
170
+ // { name: 'Türkçe', code: 'tr' },
119
171
  ],
120
172
  headerOpts: {
121
173
  ...(config.settings.eea?.headerOpts || {}),
@@ -522,6 +574,10 @@ const applyConfig = (config) => {
522
574
  ...config.settings.storeExtenders,
523
575
  ];
524
576
 
577
+ config.widgets.vocabulary[
578
+ 'plone.app.vocabularies.Users'
579
+ ] = SelectAutoCompleteWidget;
580
+
525
581
  return compose(installBlocks, installSearchEngine, installStore)(config);
526
582
  };
527
583
 
@@ -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.globalsearch.download_fields = [
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: 'title' },
76
- { field: 'issued', name: 'Issued' },
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
- formattedText = `<p>${formattedText}</p>`;
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: @green-5;
39
- --border-color-secondary: @green-5;
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: @green-5;
97
+ color: @pineGreen;
98
98
  }
99
99
 
100
100
  .ui.secondary.pointing.menu .active.item {
101
- color: @green-5;
102
- border-color: @green-5;
101
+ color: @pineGreen;
102
+ border-color: @pineGreen;
103
103
  }
104
104
 
105
105
  #mega-menu {