@eeacms/volto-cca-policy 0.2.67 → 0.2.69
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 +24 -0
- package/locales/bg/LC_MESSAGES/volto.po +26 -75
- package/locales/cs/LC_MESSAGES/volto.po +26 -75
- package/locales/de/LC_MESSAGES/volto.po +26 -74
- package/locales/eea.climateadapt.pot +0 -29
- package/locales/en/LC_MESSAGES/volto.po +25 -73
- package/locales/es/LC_MESSAGES/volto.po +26 -74
- package/locales/et/LC_MESSAGES/volto.po +26 -75
- package/locales/fi/LC_MESSAGES/volto.po +26 -75
- package/locales/fr/LC_MESSAGES/volto.po +26 -74
- package/locales/ga/LC_MESSAGES/volto.po +26 -75
- package/locales/hr/LC_MESSAGES/volto.po +26 -75
- package/locales/hu/LC_MESSAGES/volto.po +26 -75
- package/locales/it/LC_MESSAGES/volto.po +26 -74
- package/locales/lt/LC_MESSAGES/volto.po +26 -75
- package/locales/nl/LC_MESSAGES/volto.po +26 -75
- package/locales/pl/LC_MESSAGES/volto.po +26 -74
- package/locales/pt/LC_MESSAGES/volto.po +26 -75
- package/locales/ro/LC_MESSAGES/volto.po +26 -75
- package/locales/sl/LC_MESSAGES/volto.po +26 -75
- package/locales/volto.pot +26 -74
- package/package.json +1 -1
- package/src/components/theme/Views/AdaptationOptionView.jsx +8 -8
- package/src/components/theme/Views/C3SIndicatorView.jsx +1 -1
- package/src/components/theme/Views/CaseStudyView.jsx +45 -29
- package/src/components/theme/Widgets/GeolocationWidget.jsx +3 -3
- package/src/helpers/Utils.jsx +25 -33
- package/theme/globals/views.less +9 -1
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: 2024-
|
|
4
|
+
"POT-Creation-Date: 2024-09-26T08:46:04.444Z\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"
|
|
@@ -18,11 +18,6 @@ msgstr ""
|
|
|
18
18
|
msgid "A background document for the event is available"
|
|
19
19
|
msgstr ""
|
|
20
20
|
|
|
21
|
-
#. Default: "Adaptation Approaches"
|
|
22
|
-
#: components/manage/Blocks/CaseStudyExplorer/CaseStudyFilters
|
|
23
|
-
msgid "Adaptation Approaches"
|
|
24
|
-
msgstr ""
|
|
25
|
-
|
|
26
21
|
#. Default: "Adaptation Approaches:"
|
|
27
22
|
#: helpers/ContentMetadata
|
|
28
23
|
msgid "Adaptation Approaches:"
|
|
@@ -38,6 +33,11 @@ msgstr ""
|
|
|
38
33
|
msgid "Adaptation Options Implemented In This Case"
|
|
39
34
|
msgstr ""
|
|
40
35
|
|
|
36
|
+
#. Default: "Adaptation approaches"
|
|
37
|
+
#: components/manage/Blocks/CaseStudyExplorer/CaseStudyFilters
|
|
38
|
+
msgid "Adaptation approaches"
|
|
39
|
+
msgstr ""
|
|
40
|
+
|
|
41
41
|
#. Default: "Adaptation options"
|
|
42
42
|
#: components/manage/Blocks/CaseStudyExplorer/FeatureDisplay
|
|
43
43
|
msgid "Adaptation options"
|
|
@@ -115,11 +115,6 @@ msgstr ""
|
|
|
115
115
|
msgid "Challenges"
|
|
116
116
|
msgstr ""
|
|
117
117
|
|
|
118
|
-
#. Default: "Choices"
|
|
119
|
-
#: components/manage/Widgets/CreatableSelectWidget
|
|
120
|
-
msgid "Choices"
|
|
121
|
-
msgstr ""
|
|
122
|
-
|
|
123
118
|
#. Default: "Choose a region"
|
|
124
119
|
#: components/manage/Blocks/TransRegionSelect/TransRegionSelectView
|
|
125
120
|
msgid "Choose a region"
|
|
@@ -136,7 +131,6 @@ msgid "City:"
|
|
|
136
131
|
msgstr ""
|
|
137
132
|
|
|
138
133
|
#. Default: "Climate impact"
|
|
139
|
-
#: components/manage/Blocks/FilterAceContent/FilterAceContentView copy
|
|
140
134
|
#: components/manage/Blocks/FilterAceContent/FilterAceContentView
|
|
141
135
|
msgid "Climate impact"
|
|
142
136
|
msgstr ""
|
|
@@ -162,11 +156,6 @@ msgstr ""
|
|
|
162
156
|
msgid "Climate-ADAPT page for this event"
|
|
163
157
|
msgstr ""
|
|
164
158
|
|
|
165
|
-
#. Default: "Close"
|
|
166
|
-
#: components/manage/Widgets/CreatableSelectWidget
|
|
167
|
-
msgid "Close"
|
|
168
|
-
msgstr ""
|
|
169
|
-
|
|
170
159
|
#. Default: "Contact"
|
|
171
160
|
#: components/theme/Views/CaseStudyView
|
|
172
161
|
#: components/theme/Views/CcaEventView
|
|
@@ -183,10 +172,10 @@ msgstr ""
|
|
|
183
172
|
msgid "Contributor:"
|
|
184
173
|
msgstr ""
|
|
185
174
|
|
|
186
|
-
#. Default: "Costs and
|
|
175
|
+
#. Default: "Costs and benefits"
|
|
187
176
|
#: components/theme/Views/AdaptationOptionView
|
|
188
177
|
#: components/theme/Views/CaseStudyView
|
|
189
|
-
msgid "Costs and
|
|
178
|
+
msgid "Costs and benefits"
|
|
190
179
|
msgstr ""
|
|
191
180
|
|
|
192
181
|
#. Default: "Countries:"
|
|
@@ -214,13 +203,7 @@ msgstr ""
|
|
|
214
203
|
msgid "Dec"
|
|
215
204
|
msgstr ""
|
|
216
205
|
|
|
217
|
-
#. Default: "Default"
|
|
218
|
-
#: components/manage/Widgets/CreatableSelectWidget
|
|
219
|
-
msgid "Default"
|
|
220
|
-
msgstr ""
|
|
221
|
-
|
|
222
206
|
#. Default: "Description"
|
|
223
|
-
#: components/manage/Widgets/CreatableSelectWidget
|
|
224
207
|
#: helpers/Utils
|
|
225
208
|
msgid "Description"
|
|
226
209
|
msgstr ""
|
|
@@ -236,7 +219,6 @@ msgid "Documents"
|
|
|
236
219
|
msgstr ""
|
|
237
220
|
|
|
238
221
|
#. Default: "Download Event"
|
|
239
|
-
#: components/theme/Views/EventView
|
|
240
222
|
#: helpers/Utils
|
|
241
223
|
msgid "Download Event"
|
|
242
224
|
msgstr ""
|
|
@@ -247,7 +229,6 @@ msgid "Download the detailed agenda"
|
|
|
247
229
|
msgstr ""
|
|
248
230
|
|
|
249
231
|
#. Default: "Download this event in iCal format"
|
|
250
|
-
#: components/theme/Views/EventView
|
|
251
232
|
#: helpers/Utils
|
|
252
233
|
msgid "Download this event in iCal format"
|
|
253
234
|
msgstr ""
|
|
@@ -332,10 +313,10 @@ msgstr ""
|
|
|
332
313
|
msgid "If you have any further questions you can contact"
|
|
333
314
|
msgstr ""
|
|
334
315
|
|
|
335
|
-
#. Default: "Implementation
|
|
316
|
+
#. Default: "Implementation time"
|
|
336
317
|
#: components/theme/Views/AdaptationOptionView
|
|
337
318
|
#: components/theme/Views/CaseStudyView
|
|
338
|
-
msgid "Implementation
|
|
319
|
+
msgid "Implementation time"
|
|
339
320
|
msgstr ""
|
|
340
321
|
|
|
341
322
|
#. Default: "Importance and Relevance of Adaptation"
|
|
@@ -408,16 +389,16 @@ msgstr ""
|
|
|
408
389
|
msgid "Lead"
|
|
409
390
|
msgstr ""
|
|
410
391
|
|
|
411
|
-
#. Default: "Legal
|
|
392
|
+
#. Default: "Legal aspects"
|
|
412
393
|
#: components/theme/Views/AdaptationOptionView
|
|
413
394
|
#: components/theme/Views/CaseStudyView
|
|
414
|
-
msgid "Legal
|
|
395
|
+
msgid "Legal aspects"
|
|
415
396
|
msgstr ""
|
|
416
397
|
|
|
417
|
-
#. Default: "
|
|
398
|
+
#. Default: "Lifetime"
|
|
418
399
|
#: components/theme/Views/AdaptationOptionView
|
|
419
400
|
#: components/theme/Views/CaseStudyView
|
|
420
|
-
msgid "
|
|
401
|
+
msgid "Lifetime"
|
|
421
402
|
msgstr ""
|
|
422
403
|
|
|
423
404
|
#. Default: "Links to further information"
|
|
@@ -460,29 +441,19 @@ msgstr ""
|
|
|
460
441
|
msgid "No information"
|
|
461
442
|
msgstr ""
|
|
462
443
|
|
|
463
|
-
#. Default: "No options"
|
|
464
|
-
#: components/manage/Widgets/CreatableSelectWidget
|
|
465
|
-
msgid "No options"
|
|
466
|
-
msgstr ""
|
|
467
|
-
|
|
468
444
|
#. Default: "No results"
|
|
469
445
|
#: components/manage/Blocks/SearchAceContent/SearchAceContentView
|
|
470
446
|
msgid "No results"
|
|
471
447
|
msgstr ""
|
|
472
448
|
|
|
473
|
-
#. Default: "No value"
|
|
474
|
-
#: components/manage/Widgets/CreatableSelectWidget
|
|
475
|
-
msgid "No value"
|
|
476
|
-
msgstr ""
|
|
477
|
-
|
|
478
449
|
#. Default: "Nov"
|
|
479
450
|
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
480
451
|
msgid "Nov"
|
|
481
452
|
msgstr ""
|
|
482
453
|
|
|
483
|
-
#. Default: "Objectives"
|
|
454
|
+
#. Default: "Objectives of the adaptation measure"
|
|
484
455
|
#: components/theme/Views/CaseStudyView
|
|
485
|
-
msgid "Objectives"
|
|
456
|
+
msgid "Objectives of the adaptation measure"
|
|
486
457
|
msgstr ""
|
|
487
458
|
|
|
488
459
|
#. Default: "Observatory Contributions:"
|
|
@@ -520,6 +491,11 @@ msgstr ""
|
|
|
520
491
|
msgid "Partners"
|
|
521
492
|
msgstr ""
|
|
522
493
|
|
|
494
|
+
#. Default: "Policy and legal background"
|
|
495
|
+
#: components/theme/Views/CaseStudyView
|
|
496
|
+
msgid "Policy and legal background"
|
|
497
|
+
msgstr ""
|
|
498
|
+
|
|
523
499
|
#. Default: "Practical information"
|
|
524
500
|
#: components/theme/Views/CcaEventView
|
|
525
501
|
msgid "Practical information"
|
|
@@ -582,18 +558,12 @@ msgstr ""
|
|
|
582
558
|
msgid "Relevance"
|
|
583
559
|
msgstr ""
|
|
584
560
|
|
|
585
|
-
#. Default: "Required"
|
|
586
|
-
#: components/manage/Widgets/CreatableSelectWidget
|
|
587
|
-
msgid "Required"
|
|
588
|
-
msgstr ""
|
|
589
|
-
|
|
590
561
|
#. Default: "Sa"
|
|
591
562
|
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
592
563
|
msgid "Sa"
|
|
593
564
|
msgstr ""
|
|
594
565
|
|
|
595
566
|
#. Default: "Sector"
|
|
596
|
-
#: components/manage/Blocks/FilterAceContent/FilterAceContentView copy
|
|
597
567
|
#: components/manage/Blocks/FilterAceContent/FilterAceContentView
|
|
598
568
|
msgid "Sector"
|
|
599
569
|
msgstr ""
|
|
@@ -624,11 +594,6 @@ msgstr ""
|
|
|
624
594
|
msgid "Select"
|
|
625
595
|
msgstr ""
|
|
626
596
|
|
|
627
|
-
#. Default: "Select…"
|
|
628
|
-
#: components/manage/Widgets/CreatableSelectWidget
|
|
629
|
-
msgid "Select…"
|
|
630
|
-
msgstr ""
|
|
631
|
-
|
|
632
597
|
#. Default: "Sep"
|
|
633
598
|
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
634
599
|
msgid "Sep"
|
|
@@ -637,15 +602,9 @@ msgstr ""
|
|
|
637
602
|
#. Default: "Share your information"
|
|
638
603
|
#: components/manage/Blocks/SearchAceContent/SearchAceContentView
|
|
639
604
|
#: components/theme/ShareInfoButton/ShareInfoButton
|
|
640
|
-
#: helpers/ShareInfo
|
|
641
605
|
msgid "Share your information"
|
|
642
606
|
msgstr ""
|
|
643
607
|
|
|
644
|
-
#. Default: "Short Name"
|
|
645
|
-
#: components/manage/Widgets/CreatableSelectWidget
|
|
646
|
-
msgid "Short Name"
|
|
647
|
-
msgstr ""
|
|
648
|
-
|
|
649
608
|
#. Default: "Solutions"
|
|
650
609
|
#: components/theme/Views/CaseStudyView
|
|
651
610
|
msgid "Solutions"
|
|
@@ -684,10 +643,10 @@ msgstr ""
|
|
|
684
643
|
msgid "Subnational or local"
|
|
685
644
|
msgstr ""
|
|
686
645
|
|
|
687
|
-
#. Default: "Success and
|
|
646
|
+
#. Default: "Success and limiting factors"
|
|
688
647
|
#: components/theme/Views/AdaptationOptionView
|
|
689
648
|
#: components/theme/Views/CaseStudyView
|
|
690
|
-
msgid "Success and
|
|
649
|
+
msgid "Success and limiting factors"
|
|
691
650
|
msgstr ""
|
|
692
651
|
|
|
693
652
|
#. Default: "Th"
|
|
@@ -715,19 +674,14 @@ msgstr ""
|
|
|
715
674
|
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"
|
|
716
675
|
msgstr ""
|
|
717
676
|
|
|
718
|
-
#. Default: "Title"
|
|
719
|
-
#: components/manage/Widgets/CreatableSelectWidget
|
|
720
|
-
msgid "Title"
|
|
721
|
-
msgstr ""
|
|
722
|
-
|
|
723
677
|
#. Default: "Tu"
|
|
724
678
|
#: components/manage/Blocks/Listing/EventCardsListingView
|
|
725
679
|
msgid "Tu"
|
|
726
680
|
msgstr ""
|
|
727
681
|
|
|
728
|
-
#. Default: "
|
|
729
|
-
#: components/
|
|
730
|
-
msgid "
|
|
682
|
+
#. Default: "Updating notes"
|
|
683
|
+
#: components/theme/Views/CaseStudyView
|
|
684
|
+
msgid "Updating notes"
|
|
731
685
|
msgstr ""
|
|
732
686
|
|
|
733
687
|
#. Default: "View all contributions in the resource catalogue"
|
|
@@ -736,7 +690,6 @@ msgid "View all contributions in the resource catalogue"
|
|
|
736
690
|
msgstr ""
|
|
737
691
|
|
|
738
692
|
#. Default: "Visit external website"
|
|
739
|
-
#: components/theme/Views/EventView
|
|
740
693
|
#: helpers/Utils
|
|
741
694
|
msgid "Visit external website"
|
|
742
695
|
msgstr ""
|
|
@@ -747,7 +700,6 @@ msgid "We"
|
|
|
747
700
|
msgstr ""
|
|
748
701
|
|
|
749
702
|
#. Default: "Web"
|
|
750
|
-
#: components/theme/Views/EventView
|
|
751
703
|
#: helpers/Utils
|
|
752
704
|
msgid "Web"
|
|
753
705
|
msgstr ""
|
package/package.json
CHANGED
|
@@ -34,19 +34,19 @@ const messages = defineMessages({
|
|
|
34
34
|
defaultMessage: 'Stakeholder participation',
|
|
35
35
|
},
|
|
36
36
|
'Success and Limiting Factors': {
|
|
37
|
-
id: 'Success and
|
|
38
|
-
defaultMessage: 'Success and
|
|
37
|
+
id: 'Success and limiting factors',
|
|
38
|
+
defaultMessage: 'Success and limiting factors',
|
|
39
39
|
},
|
|
40
40
|
'Costs and Benefits': {
|
|
41
|
-
id: 'Costs and
|
|
42
|
-
defaultMessage: 'Costs and
|
|
41
|
+
id: 'Costs and benefits',
|
|
42
|
+
defaultMessage: 'Costs and benefits',
|
|
43
43
|
},
|
|
44
|
-
'Legal Aspects': { id: 'Legal
|
|
44
|
+
'Legal Aspects': { id: 'Legal aspects', defaultMessage: 'Legal aspects' },
|
|
45
45
|
'Implementation Time': {
|
|
46
|
-
id: 'Implementation
|
|
47
|
-
defaultMessage: 'Implementation
|
|
46
|
+
id: 'Implementation time',
|
|
47
|
+
defaultMessage: 'Implementation time',
|
|
48
48
|
},
|
|
49
|
-
'Life Time': { id: '
|
|
49
|
+
'Life Time': { id: 'Lifetime', defaultMessage: 'Lifetime' },
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
function createDataField(type, field, section, title) {
|
|
@@ -71,7 +71,7 @@ const createIframe = (
|
|
|
71
71
|
if (typeof ecde_identifier !== 'undefined' && ecde_identifier) {
|
|
72
72
|
return (
|
|
73
73
|
// '<iframe src="http://ecde-dev.copernicus-climate.eu/apps/ecde/?disabled=true&theme=eea&indicator=' +
|
|
74
|
-
'<iframe src="https://apps.copernicus-climate.eu/ecde/?disabled=true&theme=eea&indicator=' +
|
|
74
|
+
'<iframe src="https://apps.copernicus-climate.eu/c3s-apps/ecde/?disabled=true&theme=eea&indicator=' +
|
|
75
75
|
ecde_identifier +
|
|
76
76
|
'" style="width: 100%; border: 0; height: min(800px, 80vh);"/>'
|
|
77
77
|
);
|
|
@@ -27,7 +27,14 @@ import {
|
|
|
27
27
|
const messages = defineMessages({
|
|
28
28
|
References: { id: 'References', defaultMessage: 'References' },
|
|
29
29
|
Challenges: { id: 'Challenges', defaultMessage: 'Challenges' },
|
|
30
|
-
Objectives: {
|
|
30
|
+
Objectives: {
|
|
31
|
+
id: 'Objectives of the adaptation measure',
|
|
32
|
+
defaultMessage: 'Objectives of the adaptation measure',
|
|
33
|
+
},
|
|
34
|
+
'Policy and legal background': {
|
|
35
|
+
id: 'Policy and legal background',
|
|
36
|
+
defaultMessage: 'Policy and legal background',
|
|
37
|
+
},
|
|
31
38
|
'Adaptation Options Implemented In This Case': {
|
|
32
39
|
id: 'Adaptation Options Implemented In This Case',
|
|
33
40
|
defaultMessage: 'Adaptation Options Implemented In This Case',
|
|
@@ -42,20 +49,20 @@ const messages = defineMessages({
|
|
|
42
49
|
defaultMessage: 'Stakeholder participation',
|
|
43
50
|
},
|
|
44
51
|
'Success and Limiting Factors': {
|
|
45
|
-
id: 'Success and
|
|
46
|
-
defaultMessage: 'Success and
|
|
52
|
+
id: 'Success and limiting factors',
|
|
53
|
+
defaultMessage: 'Success and limiting factors',
|
|
47
54
|
},
|
|
48
55
|
'Costs and Benefits': {
|
|
49
|
-
id: 'Costs and
|
|
50
|
-
defaultMessage: 'Costs and
|
|
56
|
+
id: 'Costs and benefits',
|
|
57
|
+
defaultMessage: 'Costs and benefits',
|
|
51
58
|
},
|
|
52
59
|
Relevance: { id: 'Relevance', defaultMessage: 'Relevance' },
|
|
53
|
-
'Legal Aspects': { id: 'Legal
|
|
60
|
+
'Legal Aspects': { id: 'Legal aspects', defaultMessage: 'Legal aspects' },
|
|
54
61
|
'Implementation Time': {
|
|
55
|
-
id: 'Implementation
|
|
56
|
-
defaultMessage: 'Implementation
|
|
62
|
+
id: 'Implementation time',
|
|
63
|
+
defaultMessage: 'Implementation time',
|
|
57
64
|
},
|
|
58
|
-
'Life Time': { id: '
|
|
65
|
+
'Life Time': { id: 'Lifetime', defaultMessage: 'Lifetime' },
|
|
59
66
|
Contact: { id: 'Contact', defaultMessage: 'Contact' },
|
|
60
67
|
|
|
61
68
|
Websites: { id: 'Websites', defaultMessage: 'Websites' },
|
|
@@ -72,10 +79,13 @@ const messages = defineMessages({
|
|
|
72
79
|
id: 'Reference Information',
|
|
73
80
|
defaultMessage: 'Reference Information',
|
|
74
81
|
},
|
|
82
|
+
updating_notes: {
|
|
83
|
+
id: 'Updating notes',
|
|
84
|
+
defaultMessage: 'Updating notes',
|
|
85
|
+
},
|
|
75
86
|
});
|
|
76
87
|
|
|
77
|
-
const PrimaryPhoto = (
|
|
78
|
-
const { content } = props;
|
|
88
|
+
const PrimaryPhoto = ({ content }) => {
|
|
79
89
|
const { primary_photo, primary_photo_copyright, title } = content;
|
|
80
90
|
|
|
81
91
|
return primary_photo !== null ? (
|
|
@@ -94,6 +104,13 @@ const dataDisplay = [
|
|
|
94
104
|
title: 'Challenges',
|
|
95
105
|
group: 1,
|
|
96
106
|
},
|
|
107
|
+
{
|
|
108
|
+
type: 'HTMLField',
|
|
109
|
+
field: 'policy_legal_background',
|
|
110
|
+
section: 'policy_anchor',
|
|
111
|
+
title: 'Policy and legal background',
|
|
112
|
+
group: 1,
|
|
113
|
+
},
|
|
97
114
|
{
|
|
98
115
|
type: 'HTMLField',
|
|
99
116
|
field: 'objectives',
|
|
@@ -211,14 +228,13 @@ const sectionID = (title) => {
|
|
|
211
228
|
return found.section;
|
|
212
229
|
};
|
|
213
230
|
|
|
214
|
-
const PhotoGallery = (
|
|
215
|
-
const { content } = props;
|
|
231
|
+
const PhotoGallery = ({ content }) => {
|
|
216
232
|
const { cca_gallery } = content;
|
|
217
233
|
|
|
218
234
|
return (
|
|
219
235
|
<>
|
|
220
236
|
{cca_gallery && cca_gallery.length > 0 && (
|
|
221
|
-
<div className="
|
|
237
|
+
<div className="case-study-gallery">
|
|
222
238
|
<div className="gallery-title">
|
|
223
239
|
<span>
|
|
224
240
|
<FormattedMessage
|
|
@@ -236,8 +252,8 @@ const PhotoGallery = (props) => {
|
|
|
236
252
|
);
|
|
237
253
|
};
|
|
238
254
|
|
|
239
|
-
|
|
240
|
-
|
|
255
|
+
// Sections Menu Component
|
|
256
|
+
const SectionsMenu = ({ sections, title }) => {
|
|
241
257
|
const intl = useIntl();
|
|
242
258
|
|
|
243
259
|
return (
|
|
@@ -248,7 +264,7 @@ const SectionsMenu = (props) => {
|
|
|
248
264
|
<List bulleted>
|
|
249
265
|
{sections.map((data, index) => (
|
|
250
266
|
<ListItem key={index}>
|
|
251
|
-
<AnchorLink href={
|
|
267
|
+
<AnchorLink href={`#${sectionID(data.title)}`}>
|
|
252
268
|
{intl.formatMessage(messages[data.title])}
|
|
253
269
|
</AnchorLink>
|
|
254
270
|
</ListItem>
|
|
@@ -260,9 +276,9 @@ const SectionsMenu = (props) => {
|
|
|
260
276
|
);
|
|
261
277
|
};
|
|
262
278
|
|
|
263
|
-
const SectionContent = (
|
|
264
|
-
const { sectionData, content } = props;
|
|
279
|
+
const SectionContent = ({ sectionData, content }) => {
|
|
265
280
|
const intl = useIntl();
|
|
281
|
+
const sectionDataTitle = sectionData.contentTitle || sectionData.title;
|
|
266
282
|
|
|
267
283
|
const adaptationOptionsLinks = () => {
|
|
268
284
|
let list = [];
|
|
@@ -273,22 +289,16 @@ const SectionContent = (props) => {
|
|
|
273
289
|
};
|
|
274
290
|
|
|
275
291
|
const section = content[sectionData.field];
|
|
276
|
-
|
|
277
292
|
for (var key in section) {
|
|
278
293
|
if (section[key] === '') {
|
|
279
294
|
section[key] = '<p>-</p>';
|
|
280
295
|
}
|
|
281
296
|
}
|
|
282
297
|
|
|
283
|
-
const sectionDataTitle =
|
|
284
|
-
sectionData.contentTitle !== undefined
|
|
285
|
-
? sectionData.contentTitle
|
|
286
|
-
: sectionData.title;
|
|
287
298
|
return (
|
|
288
299
|
<div id={sectionID(sectionData.title)} className="section">
|
|
289
300
|
<h5 className="section-title">
|
|
290
301
|
{intl.formatMessage(messages[sectionDataTitle])}
|
|
291
|
-
{/* {sectionDataTitle} */}
|
|
292
302
|
</h5>
|
|
293
303
|
{sectionData.type === 'LinksList' ? (
|
|
294
304
|
<LinksList value={content[sectionData.field]} />
|
|
@@ -310,8 +320,9 @@ const SectionContent = (props) => {
|
|
|
310
320
|
};
|
|
311
321
|
|
|
312
322
|
function CaseStudyView(props) {
|
|
323
|
+
const intl = useIntl();
|
|
313
324
|
const { content } = props;
|
|
314
|
-
const { long_description } = content;
|
|
325
|
+
const { long_description, updating_notes } = content;
|
|
315
326
|
|
|
316
327
|
const hasValue = (field) => {
|
|
317
328
|
if (!content.hasOwnProperty(field)) {
|
|
@@ -331,7 +342,6 @@ function CaseStudyView(props) {
|
|
|
331
342
|
(data) => data.group === group && hasValue(data.field),
|
|
332
343
|
);
|
|
333
344
|
};
|
|
334
|
-
const intl = useIntl();
|
|
335
345
|
|
|
336
346
|
return (
|
|
337
347
|
<div className="db-item-view case-study-view">
|
|
@@ -361,6 +371,14 @@ function CaseStudyView(props) {
|
|
|
361
371
|
>
|
|
362
372
|
<PrimaryPhoto {...props} />
|
|
363
373
|
<HTMLField value={long_description} />
|
|
374
|
+
{updating_notes && updating_notes.length > 0 && (
|
|
375
|
+
<div className="disclaimer-box">
|
|
376
|
+
<h5>{intl.formatMessage(messages.updating_notes)}</h5>
|
|
377
|
+
{updating_notes.map((item, index) => (
|
|
378
|
+
<p key={index}>{item}</p>
|
|
379
|
+
))}
|
|
380
|
+
</div>
|
|
381
|
+
)}
|
|
364
382
|
<Divider />
|
|
365
383
|
<div className="adaptation-details">
|
|
366
384
|
<Grid columns="12">
|
|
@@ -426,9 +444,7 @@ function CaseStudyView(props) {
|
|
|
426
444
|
className="col-right"
|
|
427
445
|
>
|
|
428
446
|
<PhotoGallery {...props} />
|
|
429
|
-
|
|
430
447
|
<ContentMetadata {...props} />
|
|
431
|
-
|
|
432
448
|
<DocumentsList {...props} />
|
|
433
449
|
</Grid.Column>
|
|
434
450
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { Input, Label } from 'semantic-ui-react';
|
|
3
|
+
import { Input, Label, Button } from 'semantic-ui-react';
|
|
4
4
|
import config from '@plone/volto/registry';
|
|
5
5
|
|
|
6
6
|
import { injectIntl } from 'react-intl';
|
|
@@ -74,9 +74,9 @@ const GeolocationWidget = (props) => {
|
|
|
74
74
|
/>
|
|
75
75
|
</div>
|
|
76
76
|
<div className="field">
|
|
77
|
-
<
|
|
77
|
+
<Button onClick={handleSearch}>
|
|
78
78
|
{isFetching ? 'Loading' : 'Search'}
|
|
79
|
-
</
|
|
79
|
+
</Button>
|
|
80
80
|
</div>
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
package/src/helpers/Utils.jsx
CHANGED
|
@@ -71,7 +71,7 @@ export const ExternalLink = (props) => {
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
export const LinksList = (props) => {
|
|
74
|
-
let {
|
|
74
|
+
let { value, withText, isInternal } = props;
|
|
75
75
|
|
|
76
76
|
if (isInternal === undefined) {
|
|
77
77
|
isInternal = false;
|
|
@@ -79,33 +79,27 @@ export const LinksList = (props) => {
|
|
|
79
79
|
|
|
80
80
|
if (withText === true) {
|
|
81
81
|
return (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
))}
|
|
94
|
-
</List>
|
|
95
|
-
</>
|
|
82
|
+
<List>
|
|
83
|
+
{value.map((linkItem, index) => (
|
|
84
|
+
<ListItem key={index}>
|
|
85
|
+
{isInternal ? (
|
|
86
|
+
<UniversalLink href={linkItem[0]}>{linkItem[1]}</UniversalLink>
|
|
87
|
+
) : (
|
|
88
|
+
<ExternalLink url={linkItem[0]} text={linkItem[1]} />
|
|
89
|
+
)}
|
|
90
|
+
</ListItem>
|
|
91
|
+
))}
|
|
92
|
+
</List>
|
|
96
93
|
);
|
|
97
94
|
} else {
|
|
98
95
|
return (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
))}
|
|
107
|
-
</List>
|
|
108
|
-
</>
|
|
96
|
+
<List>
|
|
97
|
+
{value.map((url, index) => (
|
|
98
|
+
<ListItem key={index}>
|
|
99
|
+
<ExternalLink url={url} text={url} />
|
|
100
|
+
</ListItem>
|
|
101
|
+
))}
|
|
102
|
+
</List>
|
|
109
103
|
);
|
|
110
104
|
}
|
|
111
105
|
};
|
|
@@ -155,14 +149,14 @@ export const ReferenceInfo = (props) => {
|
|
|
155
149
|
defaultMessage="Reference information"
|
|
156
150
|
/>
|
|
157
151
|
</h2>
|
|
158
|
-
|
|
159
152
|
{websites?.length > 0 && (
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
<>
|
|
154
|
+
<h5 id="websites">
|
|
155
|
+
<FormattedMessage id="Websites:" defaultMessage="Websites:" />
|
|
156
|
+
</h5>
|
|
157
|
+
<LinksList value={websites} />
|
|
158
|
+
</>
|
|
164
159
|
)}
|
|
165
|
-
|
|
166
160
|
{type !== ACE_PROJECT && type !== ORGANISATION && (
|
|
167
161
|
<>
|
|
168
162
|
{source && source?.data.length > 0 && (
|
|
@@ -173,7 +167,6 @@ export const ReferenceInfo = (props) => {
|
|
|
173
167
|
)}
|
|
174
168
|
</>
|
|
175
169
|
)}
|
|
176
|
-
|
|
177
170
|
{(contributor_list?.length > 0 || other_contributor?.length > 0) && (
|
|
178
171
|
<>
|
|
179
172
|
<h5>
|
|
@@ -190,7 +183,6 @@ export const ReferenceInfo = (props) => {
|
|
|
190
183
|
{other_contributor}
|
|
191
184
|
</>
|
|
192
185
|
)}
|
|
193
|
-
|
|
194
186
|
{contributions && contributions.length > 0 && (
|
|
195
187
|
<>
|
|
196
188
|
<h5>
|
package/theme/globals/views.less
CHANGED
|
@@ -109,7 +109,7 @@ hr {
|
|
|
109
109
|
margin: 2em 0;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
.
|
|
112
|
+
.case-study-gallery {
|
|
113
113
|
cursor: pointer;
|
|
114
114
|
|
|
115
115
|
.preview-image {
|
|
@@ -321,3 +321,11 @@ hr {
|
|
|
321
321
|
line-height: 1.5;
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
+
|
|
325
|
+
.disclaimer-box {
|
|
326
|
+
margin: 2em 0;
|
|
327
|
+
background-color: #fbfbfb;
|
|
328
|
+
padding: 15px;
|
|
329
|
+
border-radius: 4px;
|
|
330
|
+
border: 1px solid #e5e5e5;
|
|
331
|
+
}
|