@eeacms/volto-cca-policy 0.3.64 → 0.3.65
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 +56 -0
- package/locales/bg/LC_MESSAGES/volto.po +31 -39
- package/locales/cs/LC_MESSAGES/volto.po +31 -39
- package/locales/da/LC_MESSAGES/volto.po +31 -39
- package/locales/de/LC_MESSAGES/volto.po +31 -39
- package/locales/el/LC_MESSAGES/volto.po +31 -39
- package/locales/en/LC_MESSAGES/volto.po +31 -38
- package/locales/es/LC_MESSAGES/volto.po +31 -39
- package/locales/et/LC_MESSAGES/volto.po +31 -39
- package/locales/fi/LC_MESSAGES/volto.po +31 -39
- package/locales/fr/LC_MESSAGES/volto.po +31 -39
- package/locales/ga/LC_MESSAGES/volto.po +31 -39
- package/locales/hr/LC_MESSAGES/volto.po +31 -39
- package/locales/hu/LC_MESSAGES/volto.po +31 -39
- package/locales/is/LC_MESSAGES/volto.po +31 -39
- package/locales/it/LC_MESSAGES/volto.po +31 -39
- package/locales/lt/LC_MESSAGES/volto.po +31 -39
- package/locales/lv/LC_MESSAGES/volto.po +31 -39
- package/locales/mt/LC_MESSAGES/volto.po +31 -39
- package/locales/nl/LC_MESSAGES/volto.po +31 -39
- package/locales/nn/LC_MESSAGES/volto.po +31 -39
- package/locales/pl/LC_MESSAGES/volto.po +31 -39
- package/locales/pt/LC_MESSAGES/volto.po +31 -39
- package/locales/ro/LC_MESSAGES/volto.po +31 -39
- package/locales/sk/LC_MESSAGES/volto.po +31 -39
- package/locales/sl/LC_MESSAGES/volto.po +31 -39
- package/locales/sv/LC_MESSAGES/volto.po +31 -39
- package/locales/tr/LC_MESSAGES/volto.po +309 -351
- package/locales/volto.pot +22 -39
- package/package.json +2 -2
- package/src/components/manage/Blocks/CaseStudyExplorer/CaseStudyMap.test.jsx +6 -6
- package/src/components/manage/Blocks/CaseStudyExplorer/FeatureDisplay.test.jsx +2 -2
- package/src/components/theme/Header/Header.jsx +45 -27
- package/src/components/theme/MissionSignatoryProfile/TabSections/PlanningTab.test.jsx +3 -2
- package/src/components/theme/PortalMessage/PortalMessage.jsx +6 -4
- package/src/components/theme/Widgets/PromotionalImageWidget.test.jsx +1 -1
- package/src/customizations/volto/components/theme/View/DefaultView.jsx +5 -1
- package/theme/extras/header.overrides +14 -0
package/locales/volto.pot
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Plone\n"
|
|
4
|
-
"POT-Creation-Date: 2025-
|
|
4
|
+
"POT-Creation-Date: 2025-07-14T08:07:37.202Z\n"
|
|
5
5
|
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
6
|
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
7
|
"Content-Type: text/plain; charset=utf-8\n"
|
|
@@ -20,8 +20,6 @@ msgstr ""
|
|
|
20
20
|
|
|
21
21
|
#. Default: "Adaptation Approaches"
|
|
22
22
|
#: search/cca/facets
|
|
23
|
-
#: search/facets
|
|
24
|
-
#: search/fise/facets
|
|
25
23
|
#: search/health_observatory/facets-health
|
|
26
24
|
#: search/mission_all/facets-all
|
|
27
25
|
#: search/mission_projects/facets-projects
|
|
@@ -46,8 +44,6 @@ msgstr ""
|
|
|
46
44
|
#. Default: "Adaptation Sectors"
|
|
47
45
|
#: search/cca/facets
|
|
48
46
|
#: search/common
|
|
49
|
-
#: search/facets
|
|
50
|
-
#: search/fise/facets
|
|
51
47
|
msgid "Adaptation Sectors"
|
|
52
48
|
msgstr ""
|
|
53
49
|
|
|
@@ -88,11 +84,6 @@ msgstr ""
|
|
|
88
84
|
msgid "Background information"
|
|
89
85
|
msgstr ""
|
|
90
86
|
|
|
91
|
-
#. Default: "Belgium"
|
|
92
|
-
#: helpers/Constants
|
|
93
|
-
msgid "Belgium"
|
|
94
|
-
msgstr ""
|
|
95
|
-
|
|
96
87
|
#. Default: "Biogeographical regions:"
|
|
97
88
|
#: helpers/ContentMetadata
|
|
98
89
|
msgid "Biogeographical regions:"
|
|
@@ -114,7 +105,7 @@ msgid "Case Study illustrations"
|
|
|
114
105
|
msgstr ""
|
|
115
106
|
|
|
116
107
|
#. Default: "Case studies related to this option:"
|
|
117
|
-
#:
|
|
108
|
+
#: helpers/ContentMetadata
|
|
118
109
|
msgid "Case studies related to this option:"
|
|
119
110
|
msgstr ""
|
|
120
111
|
|
|
@@ -151,8 +142,6 @@ msgstr ""
|
|
|
151
142
|
#. Default: "Climate Impacts"
|
|
152
143
|
#: search/cca/facets
|
|
153
144
|
#: search/common
|
|
154
|
-
#: search/facets
|
|
155
|
-
#: search/fise/facets
|
|
156
145
|
msgid "Climate Impacts"
|
|
157
146
|
msgstr ""
|
|
158
147
|
|
|
@@ -306,11 +295,6 @@ msgstr ""
|
|
|
306
295
|
msgid "For more search options"
|
|
307
296
|
msgstr ""
|
|
308
297
|
|
|
309
|
-
#. Default: "France"
|
|
310
|
-
#: helpers/Constants
|
|
311
|
-
msgid "France"
|
|
312
|
-
msgstr ""
|
|
313
|
-
|
|
314
298
|
#. Default: "Fullscreen"
|
|
315
299
|
#: components/theme/Views/C3SIndicatorView
|
|
316
300
|
msgid "Fullscreen"
|
|
@@ -318,8 +302,6 @@ msgstr ""
|
|
|
318
302
|
|
|
319
303
|
#. Default: "Funding Programme"
|
|
320
304
|
#: search/cca/facets
|
|
321
|
-
#: search/facets
|
|
322
|
-
#: search/fise/facets
|
|
323
305
|
#: search/mission_projects/facets-projects
|
|
324
306
|
#: search/mission_stories/facets-stories
|
|
325
307
|
msgid "Funding Programme"
|
|
@@ -365,11 +347,6 @@ msgstr ""
|
|
|
365
347
|
msgid "Hazard Type"
|
|
366
348
|
msgstr ""
|
|
367
349
|
|
|
368
|
-
#. Default: "Health Impacts"
|
|
369
|
-
#: search/health_observatory/config-health
|
|
370
|
-
msgid "Health Impacts"
|
|
371
|
-
msgstr ""
|
|
372
|
-
|
|
373
350
|
#. Default: "Health impact:"
|
|
374
351
|
#: helpers/ContentMetadata
|
|
375
352
|
msgid "Health impact:"
|
|
@@ -433,8 +410,6 @@ msgstr ""
|
|
|
433
410
|
|
|
434
411
|
#. Default: "Item from third parties"
|
|
435
412
|
#: search/cca/facets
|
|
436
|
-
#: search/facets
|
|
437
|
-
#: search/fise/facets
|
|
438
413
|
msgid "Item from third parties"
|
|
439
414
|
msgstr ""
|
|
440
415
|
|
|
@@ -446,8 +421,6 @@ msgstr ""
|
|
|
446
421
|
#. Default: "Key Type Measure"
|
|
447
422
|
#: components/manage/Blocks/FilterAceContent/FilterAceContentView
|
|
448
423
|
#: search/cca/facets
|
|
449
|
-
#: search/facets
|
|
450
|
-
#: search/fise/facets
|
|
451
424
|
msgid "Key Type Measure"
|
|
452
425
|
msgstr ""
|
|
453
426
|
|
|
@@ -521,6 +494,11 @@ msgstr ""
|
|
|
521
494
|
msgid "Lead"
|
|
522
495
|
msgstr ""
|
|
523
496
|
|
|
497
|
+
#. Default: "Learn more"
|
|
498
|
+
#: components/manage/Blocks/Listing/EventAccordionListingView
|
|
499
|
+
msgid "Learn more"
|
|
500
|
+
msgstr ""
|
|
501
|
+
|
|
524
502
|
#. Default: "Legal aspects"
|
|
525
503
|
#: components/theme/Views/AdaptationOptionView
|
|
526
504
|
#: components/theme/Views/CaseStudyView
|
|
@@ -578,6 +556,11 @@ msgstr ""
|
|
|
578
556
|
msgid "No results"
|
|
579
557
|
msgstr ""
|
|
580
558
|
|
|
559
|
+
#. Default: "Non-EU Languages"
|
|
560
|
+
#: components/theme/Header/LanguageSwitch
|
|
561
|
+
msgid "Non-EU Languages"
|
|
562
|
+
msgstr ""
|
|
563
|
+
|
|
581
564
|
#. Default: "Objectives of the adaptation measure"
|
|
582
565
|
#: components/theme/Views/CaseStudyView
|
|
583
566
|
msgid "Objectives of the adaptation measure"
|
|
@@ -594,7 +577,6 @@ msgid "Observatory contributions"
|
|
|
594
577
|
msgstr ""
|
|
595
578
|
|
|
596
579
|
#. Default: "Observatory partner"
|
|
597
|
-
#: search/health_observatory/config-health
|
|
598
580
|
#: search/health_observatory/facets-health
|
|
599
581
|
msgid "Observatory partner"
|
|
600
582
|
msgstr ""
|
|
@@ -729,8 +711,6 @@ msgstr ""
|
|
|
729
711
|
|
|
730
712
|
#. Default: "Section"
|
|
731
713
|
#: search/cca/facets
|
|
732
|
-
#: search/facets
|
|
733
|
-
#: search/fise/facets
|
|
734
714
|
msgid "Section"
|
|
735
715
|
msgstr ""
|
|
736
716
|
|
|
@@ -841,6 +821,11 @@ msgstr ""
|
|
|
841
821
|
msgid "The date refers to the moment in which the item has been prepared or updated by contributing experts to be submitted for the publication in Climate ADAPT"
|
|
842
822
|
msgstr ""
|
|
843
823
|
|
|
824
|
+
#. Default: "This object has been archived because its content is outdated. You can still access it as legacy."
|
|
825
|
+
#: components/theme/PortalMessage/PortalMessage
|
|
826
|
+
msgid "This object has been archived because its content is outdated. You can still access it as legacy."
|
|
827
|
+
msgstr ""
|
|
828
|
+
|
|
844
829
|
#. Default: "Topics:"
|
|
845
830
|
#: components/Result/ClusterHorizontalCardItem
|
|
846
831
|
#: components/Result/HealthHorizontalCardItem
|
|
@@ -849,8 +834,6 @@ msgstr ""
|
|
|
849
834
|
|
|
850
835
|
#. Default: "Transnational regions"
|
|
851
836
|
#: search/cca/facets
|
|
852
|
-
#: search/facets
|
|
853
|
-
#: search/fise/facets
|
|
854
837
|
msgid "Transnational regions"
|
|
855
838
|
msgstr ""
|
|
856
839
|
|
|
@@ -860,11 +843,6 @@ msgstr ""
|
|
|
860
843
|
msgid "Type of item"
|
|
861
844
|
msgstr ""
|
|
862
845
|
|
|
863
|
-
#. Default: "Types"
|
|
864
|
-
#: search/health_observatory/config-health
|
|
865
|
-
msgid "Types"
|
|
866
|
-
msgstr ""
|
|
867
|
-
|
|
868
846
|
#. Default: "Updating notes"
|
|
869
847
|
#: components/theme/Views/CaseStudyView
|
|
870
848
|
msgid "Updating notes"
|
|
@@ -915,3 +893,8 @@ msgstr ""
|
|
|
915
893
|
#: helpers/Utils
|
|
916
894
|
msgid "Where"
|
|
917
895
|
msgstr ""
|
|
896
|
+
|
|
897
|
+
#. Default: "Officially reported governmental information is only available in English"
|
|
898
|
+
#: components/manage/Blocks/CountryProfileDetail/View
|
|
899
|
+
msgid "officiallyInEnglish"
|
|
900
|
+
msgstr ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-cca-policy",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.65",
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@eeacms/volto-globalsearch": "2.1.2",
|
|
36
36
|
"@eeacms/volto-hero-block": "^7.1.0",
|
|
37
37
|
"@eeacms/volto-openlayers-map": "1.0.1",
|
|
38
|
-
"@eeacms/volto-searchlib": "2.0
|
|
38
|
+
"@eeacms/volto-searchlib": "2.1.0",
|
|
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",
|
|
@@ -83,11 +83,11 @@ describe('CaseStudyMap', () => {
|
|
|
83
83
|
portal_type: 'casestudy',
|
|
84
84
|
description:
|
|
85
85
|
'<p>The Sand Motor is a mega-nourishment implemented in the Delfland Coast.</p>',
|
|
86
|
-
url: '
|
|
86
|
+
url: 'https://website.com',
|
|
87
87
|
adaptation_options_links:
|
|
88
|
-
"<a href='
|
|
88
|
+
"<a href='https://website.com'>Beach and shoreface nourishment</a>",
|
|
89
89
|
elements_str: 'Nature-based solutions',
|
|
90
|
-
image: '
|
|
90
|
+
image: 'https://website.com/preview',
|
|
91
91
|
origin_adaptecca: 20,
|
|
92
92
|
adaptation_options: 'Dune construction',
|
|
93
93
|
},
|
|
@@ -107,11 +107,11 @@ describe('CaseStudyMap', () => {
|
|
|
107
107
|
portal_type: 'casestudy',
|
|
108
108
|
description:
|
|
109
109
|
'<p>The Sand Motor is a mega-nourishment implemented in the Delfland Coast.</p>',
|
|
110
|
-
url: '
|
|
110
|
+
url: 'https://website.com',
|
|
111
111
|
adaptation_options_links:
|
|
112
|
-
"<a href='
|
|
112
|
+
"<a href='https://website.com'>Beach and shoreface nourishment</a>",
|
|
113
113
|
elements_str: 'Nature-based solutions',
|
|
114
|
-
image: '
|
|
114
|
+
image: 'https://website.com/preview',
|
|
115
115
|
origin_adaptecca: 20,
|
|
116
116
|
adaptation_options: 'Dune construction',
|
|
117
117
|
},
|
|
@@ -12,8 +12,8 @@ describe('FeatureDisplay', () => {
|
|
|
12
12
|
it('should render the component', () => {
|
|
13
13
|
const feature = {
|
|
14
14
|
title: 'Case study',
|
|
15
|
-
url: '
|
|
16
|
-
image: '
|
|
15
|
+
url: 'https://example.com',
|
|
16
|
+
image: 'https://example.com/image.jpg',
|
|
17
17
|
impacts: 'Impact A, Impact B',
|
|
18
18
|
adaptation_options_links: '',
|
|
19
19
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { compose } from 'recompose';
|
|
8
|
-
import { withRouter } from 'react-router-dom';
|
|
8
|
+
import { withRouter, Link } from 'react-router-dom';
|
|
9
9
|
import { Dropdown, Image } from 'semantic-ui-react';
|
|
10
10
|
import { connect, useDispatch, useSelector } from 'react-redux';
|
|
11
11
|
import { UniversalLink } from '@plone/volto/components';
|
|
@@ -62,6 +62,7 @@ const DirectLinkLogo = ({
|
|
|
62
62
|
*/
|
|
63
63
|
const EEAHeader = (props) => {
|
|
64
64
|
const { pathname, token, items, subsite } = props;
|
|
65
|
+
const currentLang = useSelector((state) => state.intl.locale);
|
|
65
66
|
const router_pathname = useSelector((state) => {
|
|
66
67
|
return removeTrailingSlash(state.router?.location?.pathname) || '';
|
|
67
68
|
});
|
|
@@ -153,32 +154,50 @@ const EEAHeader = (props) => {
|
|
|
153
154
|
</Header.TopDropdownMenu>
|
|
154
155
|
</Header.TopItem>
|
|
155
156
|
|
|
156
|
-
|
|
157
|
-
<
|
|
158
|
-
<
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
157
|
+
<div className="top-header-right-items">
|
|
158
|
+
<div className="item">
|
|
159
|
+
<div className="divider text">
|
|
160
|
+
<Link
|
|
161
|
+
to={
|
|
162
|
+
pathname.includes('/observatory')
|
|
163
|
+
? `/${currentLang}/observatory/sitemap`
|
|
164
|
+
: pathname.includes('/mission')
|
|
165
|
+
? `/${currentLang}/mission/sitemap`
|
|
166
|
+
: `/${currentLang}/sitemap`
|
|
167
|
+
}
|
|
168
|
+
>
|
|
169
|
+
Sitemap
|
|
170
|
+
</Link>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
|
|
174
|
+
{!!headerOpts.partnerLinks && (
|
|
175
|
+
<Header.TopItem>
|
|
176
|
+
<Header.TopDropdownMenu
|
|
177
|
+
id="theme-sites"
|
|
178
|
+
text={headerOpts.partnerLinks.title}
|
|
179
|
+
viewportWidth={width}
|
|
180
|
+
>
|
|
181
|
+
<div className="wrapper">
|
|
182
|
+
{headerOpts.partnerLinks.links.map((item, index) => (
|
|
183
|
+
<Dropdown.Item key={index}>
|
|
184
|
+
<a
|
|
185
|
+
href={item.href}
|
|
186
|
+
className="site"
|
|
187
|
+
target="_blank"
|
|
188
|
+
onKeyDown={(evt) => evt.stopPropagation()}
|
|
189
|
+
>
|
|
190
|
+
{item.title}
|
|
191
|
+
</a>
|
|
192
|
+
</Dropdown.Item>
|
|
193
|
+
))}
|
|
194
|
+
</div>
|
|
195
|
+
</Header.TopDropdownMenu>
|
|
196
|
+
</Header.TopItem>
|
|
197
|
+
)}
|
|
180
198
|
|
|
181
|
-
|
|
199
|
+
{config.settings.isMultilingual && <LanguageSwitch {...props} />}
|
|
200
|
+
</div>
|
|
182
201
|
</Header.TopHeader>
|
|
183
202
|
<Header.Main
|
|
184
203
|
pathname={pathname}
|
|
@@ -229,7 +248,6 @@ const EEAHeader = (props) => {
|
|
|
229
248
|
href={item.url || '/'}
|
|
230
249
|
title={item.title}
|
|
231
250
|
onClick={(e) => {
|
|
232
|
-
// debugger;
|
|
233
251
|
onClick(e, item);
|
|
234
252
|
}}
|
|
235
253
|
>
|
|
@@ -60,9 +60,10 @@ describe('PlanningTab', () => {
|
|
|
60
60
|
Approval_Year: '2023',
|
|
61
61
|
End_Year_Of_Plan_Label: 'End Year:',
|
|
62
62
|
End_Year: '2030',
|
|
63
|
-
Name_Of_Plan_And_Hyperlink:
|
|
63
|
+
Name_Of_Plan_And_Hyperlink:
|
|
64
|
+
'https://example.com; https://plan-link.com',
|
|
64
65
|
Further_Information_Link_Text: 'More Info',
|
|
65
|
-
Attachment: '
|
|
66
|
+
Attachment: 'https://attachment.com',
|
|
66
67
|
Explore_Plan_Link_Text: 'Explore Plan',
|
|
67
68
|
Sectors: ['Agriculture'],
|
|
68
69
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { FormattedMessage } from 'react-intl';
|
|
1
2
|
import { Message, Icon } from 'semantic-ui-react';
|
|
2
3
|
|
|
3
|
-
const PortalMessage = (
|
|
4
|
-
const { content } = props;
|
|
4
|
+
const PortalMessage = ({ content }) => {
|
|
5
5
|
const { review_state } = content;
|
|
6
6
|
const isArchivedContent = review_state === 'archived';
|
|
7
7
|
|
|
@@ -9,8 +9,10 @@ const PortalMessage = (props) => {
|
|
|
9
9
|
<Message info icon>
|
|
10
10
|
<Icon name="info" />
|
|
11
11
|
<Message.Content>
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
<FormattedMessage
|
|
13
|
+
id="This object has been archived because its content is outdated. You can still access it as legacy."
|
|
14
|
+
defaultMessage="This object has been archived because its content is outdated. You can still access it as legacy."
|
|
15
|
+
/>
|
|
14
16
|
</Message.Content>
|
|
15
17
|
</Message>
|
|
16
18
|
) : null;
|
|
@@ -24,6 +24,7 @@ import ContextNavigation from '@plone/volto/components/theme/Navigation/ContextN
|
|
|
24
24
|
import {
|
|
25
25
|
BannerTitle,
|
|
26
26
|
ASTNavigation,
|
|
27
|
+
PortalMessage,
|
|
27
28
|
} from '@eeacms/volto-cca-policy/components';
|
|
28
29
|
|
|
29
30
|
import { isEqual } from 'lodash';
|
|
@@ -92,6 +93,7 @@ const DefaultView = (props) => {
|
|
|
92
93
|
<>
|
|
93
94
|
{currentNavigation ? (
|
|
94
95
|
<Container id="page-document">
|
|
96
|
+
<PortalMessage content={content} />
|
|
95
97
|
<Grid>
|
|
96
98
|
<Grid.Column width={12 - gridColumns}>
|
|
97
99
|
<BannerTitle {...props} />
|
|
@@ -113,6 +115,7 @@ const DefaultView = (props) => {
|
|
|
113
115
|
</Container>
|
|
114
116
|
) : astNavigation ? (
|
|
115
117
|
<Container id="page-document">
|
|
118
|
+
<PortalMessage content={content} />
|
|
116
119
|
<Grid>
|
|
117
120
|
<Grid.Column mobile={12} tablet={12} computer={4}>
|
|
118
121
|
<ASTNavigation astNavigation={astNavigation} />
|
|
@@ -124,7 +127,8 @@ const DefaultView = (props) => {
|
|
|
124
127
|
</Grid>
|
|
125
128
|
</Container>
|
|
126
129
|
) : (
|
|
127
|
-
<Container id="page-document"
|
|
130
|
+
<Container id="page-document">
|
|
131
|
+
<PortalMessage content={content} />
|
|
128
132
|
{!isChromeless && <BannerTitle {...props} />}
|
|
129
133
|
<RenderBlocks {...props} path={path} />
|
|
130
134
|
</Container>
|