@eeacms/volto-cca-policy 0.3.1 → 0.3.2
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 +12 -2
- package/locales/bg/LC_MESSAGES/volto.po +150 -22
- package/locales/cs/LC_MESSAGES/volto.po +150 -22
- package/locales/de/LC_MESSAGES/volto.po +150 -22
- package/locales/en/LC_MESSAGES/volto.po +150 -22
- package/locales/es/LC_MESSAGES/volto.po +150 -22
- package/locales/et/LC_MESSAGES/volto.po +150 -22
- package/locales/fi/LC_MESSAGES/volto.po +150 -22
- package/locales/fr/LC_MESSAGES/volto.po +150 -22
- package/locales/ga/LC_MESSAGES/volto.po +150 -22
- package/locales/hr/LC_MESSAGES/volto.po +150 -22
- package/locales/hu/LC_MESSAGES/volto.po +150 -22
- package/locales/it/LC_MESSAGES/volto.po +150 -22
- package/locales/lt/LC_MESSAGES/volto.po +150 -22
- package/locales/nl/LC_MESSAGES/volto.po +150 -22
- package/locales/pl/LC_MESSAGES/volto.po +150 -22
- package/locales/pt/LC_MESSAGES/volto.po +150 -22
- package/locales/ro/LC_MESSAGES/volto.po +150 -22
- package/locales/sl/LC_MESSAGES/volto.po +150 -22
- package/locales/volto.pot +151 -1
- package/package.json +3 -3
- package/src/components/Result/ClusterHorizontalCardItem.jsx +13 -3
- package/src/components/Result/HealthHorizontalCardItem.jsx +7 -2
- package/src/search/cca/facets.js +45 -8
- package/src/search/common.js +38 -13
- package/src/search/health_observatory/config-health.js +17 -0
- package/src/search/health_observatory/facets-health.js +28 -4
- package/src/search/mission_all/facets-all.js +17 -2
- package/src/search/mission_funding/facets-funding.js +14 -2
- package/src/search/mission_projects/facets-projects.js +15 -2
- package/src/search/mission_tools/facets-tools.js +27 -5
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-02-
|
|
4
|
+
"POT-Creation-Date: 2025-02-06T07:00:01.768Z\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,6 +18,15 @@ msgstr ""
|
|
|
18
18
|
msgid "A background document for the event is available"
|
|
19
19
|
msgstr ""
|
|
20
20
|
|
|
21
|
+
#. Default: "Adaptation Approaches"
|
|
22
|
+
#: search/cca/facets
|
|
23
|
+
#: search/facets
|
|
24
|
+
#: search/health_observatory/facets-health
|
|
25
|
+
#: search/mission_all/facets-all
|
|
26
|
+
#: search/mission_projects/facets-projects
|
|
27
|
+
msgid "Adaptation Approaches"
|
|
28
|
+
msgstr ""
|
|
29
|
+
|
|
21
30
|
#. Default: "Adaptation Approaches:"
|
|
22
31
|
#: helpers/ContentMetadata
|
|
23
32
|
msgid "Adaptation Approaches:"
|
|
@@ -33,6 +42,13 @@ msgstr ""
|
|
|
33
42
|
msgid "Adaptation Options Implemented In This Case"
|
|
34
43
|
msgstr ""
|
|
35
44
|
|
|
45
|
+
#. Default: "Adaptation Sectors"
|
|
46
|
+
#: search/cca/facets
|
|
47
|
+
#: search/common
|
|
48
|
+
#: search/facets
|
|
49
|
+
msgid "Adaptation Sectors"
|
|
50
|
+
msgstr ""
|
|
51
|
+
|
|
36
52
|
#. Default: "Adaptation approaches"
|
|
37
53
|
#: components/manage/Blocks/CaseStudyExplorer/CaseStudyFilters
|
|
38
54
|
msgid "Adaptation approaches"
|
|
@@ -120,6 +136,13 @@ msgstr ""
|
|
|
120
136
|
msgid "City:"
|
|
121
137
|
msgstr ""
|
|
122
138
|
|
|
139
|
+
#. Default: "Climate Impacts"
|
|
140
|
+
#: search/cca/facets
|
|
141
|
+
#: search/common
|
|
142
|
+
#: search/facets
|
|
143
|
+
msgid "Climate Impacts"
|
|
144
|
+
msgstr ""
|
|
145
|
+
|
|
123
146
|
#. Default: "Climate impact"
|
|
124
147
|
#: components/manage/Blocks/FilterAceContent/FilterAceContentView
|
|
125
148
|
msgid "Climate impact"
|
|
@@ -168,6 +191,11 @@ msgstr ""
|
|
|
168
191
|
msgid "Costs and benefits"
|
|
169
192
|
msgstr ""
|
|
170
193
|
|
|
194
|
+
#. Default: "Countries"
|
|
195
|
+
#: search/common
|
|
196
|
+
msgid "Countries"
|
|
197
|
+
msgstr ""
|
|
198
|
+
|
|
171
199
|
#. Default: "Countries:"
|
|
172
200
|
#: helpers/ContentMetadata
|
|
173
201
|
msgid "Countries:"
|
|
@@ -238,6 +266,11 @@ msgstr ""
|
|
|
238
266
|
msgid "Duration:"
|
|
239
267
|
msgstr ""
|
|
240
268
|
|
|
269
|
+
#. Default: "Eligible to receive funding"
|
|
270
|
+
#: search/mission_funding/facets-funding
|
|
271
|
+
msgid "Eligible to receive funding"
|
|
272
|
+
msgstr ""
|
|
273
|
+
|
|
241
274
|
#. Default: "Exit fullscreen"
|
|
242
275
|
#: components/theme/Views/C3SIndicatorView
|
|
243
276
|
msgid "Exit fullscreen"
|
|
@@ -258,6 +291,13 @@ msgstr ""
|
|
|
258
291
|
msgid "Fullscreen"
|
|
259
292
|
msgstr ""
|
|
260
293
|
|
|
294
|
+
#. Default: "Funding Programme"
|
|
295
|
+
#: search/cca/facets
|
|
296
|
+
#: search/facets
|
|
297
|
+
#: search/mission_projects/facets-projects
|
|
298
|
+
msgid "Funding Programme"
|
|
299
|
+
msgstr ""
|
|
300
|
+
|
|
261
301
|
#. Default: "Funding Programme:"
|
|
262
302
|
#: helpers/ContentMetadata
|
|
263
303
|
msgid "Funding Programme:"
|
|
@@ -268,6 +308,11 @@ msgstr ""
|
|
|
268
308
|
msgid "Geographic characterisation:"
|
|
269
309
|
msgstr ""
|
|
270
310
|
|
|
311
|
+
#. Default: "Geographical scale"
|
|
312
|
+
#: search/mission_tools/facets-tools
|
|
313
|
+
msgid "Geographical scale"
|
|
314
|
+
msgstr ""
|
|
315
|
+
|
|
271
316
|
#. Default: "Getting started"
|
|
272
317
|
#: components/theme/ASTNavigation/ASTAccordion
|
|
273
318
|
msgid "Getting started"
|
|
@@ -288,11 +333,21 @@ msgstr ""
|
|
|
288
333
|
msgid "HHWS available (click on country for further information)"
|
|
289
334
|
msgstr ""
|
|
290
335
|
|
|
336
|
+
#. Default: "Health Impacts"
|
|
337
|
+
#: search/health_observatory/config-health
|
|
338
|
+
msgid "Health Impacts"
|
|
339
|
+
msgstr ""
|
|
340
|
+
|
|
291
341
|
#. Default: "Health impact:"
|
|
292
342
|
#: helpers/ContentMetadata
|
|
293
343
|
msgid "Health impact:"
|
|
294
344
|
msgstr ""
|
|
295
345
|
|
|
346
|
+
#. Default: "Health impacts"
|
|
347
|
+
#: search/health_observatory/facets-health
|
|
348
|
+
msgid "Health impacts"
|
|
349
|
+
msgstr ""
|
|
350
|
+
|
|
296
351
|
#. Default: "Heat health action plans (HHAP)"
|
|
297
352
|
#: components/manage/Blocks/CountryMapHeatIndex/Filter
|
|
298
353
|
msgid "Heat health action plans (HHAP)"
|
|
@@ -329,6 +384,11 @@ msgstr ""
|
|
|
329
384
|
msgid "Importance and Relevance of Adaptation"
|
|
330
385
|
msgstr ""
|
|
331
386
|
|
|
387
|
+
#. Default: "Include archived content"
|
|
388
|
+
#: search/common
|
|
389
|
+
msgid "Include archived content"
|
|
390
|
+
msgstr ""
|
|
391
|
+
|
|
332
392
|
#. Default: "Indicators"
|
|
333
393
|
#: components/manage/Blocks/ECDEIndicators/ECDEIndicatorsView
|
|
334
394
|
msgid "Indicators"
|
|
@@ -339,8 +399,16 @@ msgstr ""
|
|
|
339
399
|
msgid "Info"
|
|
340
400
|
msgstr ""
|
|
341
401
|
|
|
402
|
+
#. Default: "Item from third parties"
|
|
403
|
+
#: search/cca/facets
|
|
404
|
+
#: search/facets
|
|
405
|
+
msgid "Item from third parties"
|
|
406
|
+
msgstr ""
|
|
407
|
+
|
|
342
408
|
#. Default: "Key Type Measure"
|
|
343
409
|
#: components/manage/Blocks/FilterAceContent/FilterAceContentView
|
|
410
|
+
#: search/cca/facets
|
|
411
|
+
#: search/facets
|
|
344
412
|
msgid "Key Type Measure"
|
|
345
413
|
msgstr ""
|
|
346
414
|
|
|
@@ -364,11 +432,21 @@ msgstr ""
|
|
|
364
432
|
msgid "Keywords:"
|
|
365
433
|
msgstr ""
|
|
366
434
|
|
|
435
|
+
#. Default: "Language"
|
|
436
|
+
#: search/common
|
|
437
|
+
msgid "Language"
|
|
438
|
+
msgstr ""
|
|
439
|
+
|
|
367
440
|
#. Default: "Language of the conference"
|
|
368
441
|
#: components/theme/Views/CcaEventView
|
|
369
442
|
msgid "Language of the conference"
|
|
370
443
|
msgstr ""
|
|
371
444
|
|
|
445
|
+
#. Default: "Language(s) of the tool"
|
|
446
|
+
#: search/mission_tools/facets-tools
|
|
447
|
+
msgid "Language(s) of the tool"
|
|
448
|
+
msgstr ""
|
|
449
|
+
|
|
372
450
|
#. Default: "Lead"
|
|
373
451
|
#: components/theme/Views/ProjectView
|
|
374
452
|
msgid "Lead"
|
|
@@ -401,11 +479,21 @@ msgstr ""
|
|
|
401
479
|
msgid "Macro-Transnational region:"
|
|
402
480
|
msgstr ""
|
|
403
481
|
|
|
482
|
+
#. Default: "Most useful for"
|
|
483
|
+
#: search/mission_tools/facets-tools
|
|
484
|
+
msgid "Most useful for"
|
|
485
|
+
msgstr ""
|
|
486
|
+
|
|
404
487
|
#. Default: "National HHAP"
|
|
405
488
|
#: components/manage/Blocks/CountryMapHeatIndex/Filter
|
|
406
489
|
msgid "National HHAP"
|
|
407
490
|
msgstr ""
|
|
408
491
|
|
|
492
|
+
#. Default: "New"
|
|
493
|
+
#: components/Result/ClusterHorizontalCardItem
|
|
494
|
+
msgid "New"
|
|
495
|
+
msgstr ""
|
|
496
|
+
|
|
409
497
|
#. Default: "No HHAP"
|
|
410
498
|
#: components/manage/Blocks/CountryMapHeatIndex/Filter
|
|
411
499
|
msgid "No HHAP"
|
|
@@ -436,6 +524,12 @@ msgstr ""
|
|
|
436
524
|
msgid "Observatory contributions"
|
|
437
525
|
msgstr ""
|
|
438
526
|
|
|
527
|
+
#. Default: "Observatory partner"
|
|
528
|
+
#: search/health_observatory/config-health
|
|
529
|
+
#: search/health_observatory/facets-health
|
|
530
|
+
msgid "Observatory partner"
|
|
531
|
+
msgstr ""
|
|
532
|
+
|
|
439
533
|
#. Default: "Organisation Documents"
|
|
440
534
|
#: helpers/Utils
|
|
441
535
|
msgid "Organisation Documents"
|
|
@@ -491,6 +585,17 @@ msgstr ""
|
|
|
491
585
|
msgid "Published in Climate-ADAPT"
|
|
492
586
|
msgstr ""
|
|
493
587
|
|
|
588
|
+
#. Default: "Publishing year"
|
|
589
|
+
#: search/health_observatory/facets-health
|
|
590
|
+
msgid "Publishing year"
|
|
591
|
+
msgstr ""
|
|
592
|
+
|
|
593
|
+
#. Default: "RAST step(s) of relevance"
|
|
594
|
+
#: search/mission_funding/facets-funding
|
|
595
|
+
#: search/mission_tools/facets-tools
|
|
596
|
+
msgid "RAST step(s) of relevance"
|
|
597
|
+
msgstr ""
|
|
598
|
+
|
|
494
599
|
#. Default: "Reference Information"
|
|
495
600
|
#: components/theme/Views/CaseStudyView
|
|
496
601
|
msgid "Reference Information"
|
|
@@ -548,6 +653,17 @@ msgstr ""
|
|
|
548
653
|
msgid "Search the Observatory Resource Catalogue..."
|
|
549
654
|
msgstr ""
|
|
550
655
|
|
|
656
|
+
#. Default: "Section"
|
|
657
|
+
#: search/cca/facets
|
|
658
|
+
#: search/facets
|
|
659
|
+
msgid "Section"
|
|
660
|
+
msgstr ""
|
|
661
|
+
|
|
662
|
+
#. Default: "Sections"
|
|
663
|
+
#: search/health_observatory/facets-health
|
|
664
|
+
msgid "Sections"
|
|
665
|
+
msgstr ""
|
|
666
|
+
|
|
551
667
|
#. Default: "Sector"
|
|
552
668
|
#: components/manage/Blocks/FilterAceContent/FilterAceContentView
|
|
553
669
|
msgid "Sector"
|
|
@@ -602,6 +718,12 @@ msgstr ""
|
|
|
602
718
|
msgid "Source of funding"
|
|
603
719
|
msgstr ""
|
|
604
720
|
|
|
721
|
+
#. Default: "Source:"
|
|
722
|
+
#: components/Result/ClusterHorizontalCardItem
|
|
723
|
+
#: components/Result/HealthHorizontalCardItem
|
|
724
|
+
msgid "Source:"
|
|
725
|
+
msgstr ""
|
|
726
|
+
|
|
605
727
|
#. Default: "Stakeholder participation"
|
|
606
728
|
#: components/theme/Views/AdaptationOptionView
|
|
607
729
|
#: components/theme/Views/CaseStudyView
|
|
@@ -644,11 +766,39 @@ msgstr ""
|
|
|
644
766
|
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"
|
|
645
767
|
msgstr ""
|
|
646
768
|
|
|
769
|
+
#. Default: "Topics:"
|
|
770
|
+
#: components/Result/ClusterHorizontalCardItem
|
|
771
|
+
#: components/Result/HealthHorizontalCardItem
|
|
772
|
+
msgid "Topics:"
|
|
773
|
+
msgstr ""
|
|
774
|
+
|
|
775
|
+
#. Default: "Transnational regions"
|
|
776
|
+
#: search/cca/facets
|
|
777
|
+
#: search/facets
|
|
778
|
+
msgid "Transnational regions"
|
|
779
|
+
msgstr ""
|
|
780
|
+
|
|
781
|
+
#. Default: "Type of item"
|
|
782
|
+
#: search/common
|
|
783
|
+
#: search/mission_all/facets-all
|
|
784
|
+
msgid "Type of item"
|
|
785
|
+
msgstr ""
|
|
786
|
+
|
|
787
|
+
#. Default: "Types"
|
|
788
|
+
#: search/health_observatory/config-health
|
|
789
|
+
msgid "Types"
|
|
790
|
+
msgstr ""
|
|
791
|
+
|
|
647
792
|
#. Default: "Updating notes"
|
|
648
793
|
#: components/theme/Views/CaseStudyView
|
|
649
794
|
msgid "Updating notes"
|
|
650
795
|
msgstr ""
|
|
651
796
|
|
|
797
|
+
#. Default: "User requirements"
|
|
798
|
+
#: search/mission_tools/facets-tools
|
|
799
|
+
msgid "User requirements"
|
|
800
|
+
msgstr ""
|
|
801
|
+
|
|
652
802
|
#. Default: "View all contributions in the resource catalogue"
|
|
653
803
|
#: helpers/Utils
|
|
654
804
|
msgid "View all contributions in the resource catalogue"
|
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.2",
|
|
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": "*",
|
|
33
33
|
"@eeacms/volto-eea-website-theme": "^1.35.0",
|
|
34
34
|
"@eeacms/volto-embed": "^9.1.1",
|
|
35
|
-
"@eeacms/volto-globalsearch": "
|
|
35
|
+
"@eeacms/volto-globalsearch": "2.0.4",
|
|
36
36
|
"@eeacms/volto-hero-block": "^7.1.0",
|
|
37
37
|
"@eeacms/volto-openlayers-map": "*",
|
|
38
|
-
"@eeacms/volto-searchlib": "2.0.
|
|
38
|
+
"@eeacms/volto-searchlib": "2.0.8",
|
|
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",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Original: https://github.com/eea/volto-searchlib/blob/master/searchlib/components/Result/HorizontalCardItem.jsx
|
|
2
2
|
// We need custom href for results.
|
|
3
|
+
import { FormattedMessage } from 'react-intl';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { Label } from 'semantic-ui-react';
|
|
5
6
|
import {
|
|
@@ -38,13 +39,17 @@ const ExtraContent = (props) => {
|
|
|
38
39
|
<DateTime format="DATE_MED" value={result.issued} />
|
|
39
40
|
</div>
|
|
40
41
|
<div className="result-info">
|
|
41
|
-
<span className="result-info-title">
|
|
42
|
+
<span className="result-info-title">
|
|
43
|
+
<FormattedMessage id="Topics:" defaultMessage="Topics:" />{' '}
|
|
44
|
+
</span>
|
|
42
45
|
<StringList value={result.tags} />
|
|
43
46
|
</div>
|
|
44
47
|
</div>
|
|
45
48
|
<div>
|
|
46
49
|
<div className="result-info result-source">
|
|
47
|
-
<span className="result-info-title">
|
|
50
|
+
<span className="result-info-title">
|
|
51
|
+
<FormattedMessage id="Source:" defaultMessage="Source:" />{' '}
|
|
52
|
+
</span>
|
|
48
53
|
<ExternalLink href={result.href}>
|
|
49
54
|
<strong title={result.source} className="source">
|
|
50
55
|
{title}
|
|
@@ -94,7 +99,12 @@ const ClusterHorizontalCardItem = (props) => {
|
|
|
94
99
|
<>
|
|
95
100
|
<ExternalLink href={result.href} title={result.title}>
|
|
96
101
|
{result.title}
|
|
97
|
-
{result.isNew &&
|
|
102
|
+
{result.isNew && (
|
|
103
|
+
<Label className="new-item">
|
|
104
|
+
{' '}
|
|
105
|
+
<FormattedMessage id="New" defaultMessage="New" />
|
|
106
|
+
</Label>
|
|
107
|
+
)}
|
|
98
108
|
{result.isExpired && (
|
|
99
109
|
<Label className="archived-item">Archived</Label>
|
|
100
110
|
)}
|
|
@@ -13,6 +13,7 @@ import { firstWords, getTermDisplayValue } from '@eeacms/search/lib/utils';
|
|
|
13
13
|
import ExternalLink from '@eeacms/search/components/Result/ExternalLink';
|
|
14
14
|
import ResultContext from '@eeacms/search/components/Result/ResultContext';
|
|
15
15
|
import ContentClusters from '@eeacms/search/components/Result/ContentClusters';
|
|
16
|
+
import { FormattedMessage } from 'react-intl';
|
|
16
17
|
|
|
17
18
|
const healthBreadcrumb = (href) => {
|
|
18
19
|
// It's only cosmetic. We don't want to show ++aq...
|
|
@@ -29,13 +30,17 @@ const ExtraContent = (props) => {
|
|
|
29
30
|
<DateTime format="DATE_MED" value={result.issued} />
|
|
30
31
|
</div>
|
|
31
32
|
<div className="result-info">
|
|
32
|
-
<span className="result-info-title">
|
|
33
|
+
<span className="result-info-title">
|
|
34
|
+
<FormattedMessage id="Topics:" defaultMessage="Topics:" />{' '}
|
|
35
|
+
</span>
|
|
33
36
|
<StringList value={result.tags} />
|
|
34
37
|
</div>
|
|
35
38
|
</div>
|
|
36
39
|
<div>
|
|
37
40
|
<div className="result-info result-source">
|
|
38
|
-
<span className="result-info-title">
|
|
41
|
+
<span className="result-info-title">
|
|
42
|
+
<FormattedMessage id="Source:" defaultMessage="Source:" />{' '}
|
|
43
|
+
</span>
|
|
39
44
|
<ExternalLink href={result.href}>
|
|
40
45
|
<strong title={result.source} className="source">
|
|
41
46
|
{firstWords(
|
package/src/search/cca/facets.js
CHANGED
|
@@ -5,10 +5,47 @@ import {
|
|
|
5
5
|
geographic_countries,
|
|
6
6
|
} from '../common';
|
|
7
7
|
|
|
8
|
+
import { defineMessages } from 'react-intl';
|
|
9
|
+
|
|
10
|
+
const messages = defineMessages({
|
|
11
|
+
adaptationApproaches: {
|
|
12
|
+
id: 'Adaptation Approaches',
|
|
13
|
+
defaultMessage: 'Adaptation Approaches',
|
|
14
|
+
},
|
|
15
|
+
adaptationSectors: {
|
|
16
|
+
id: 'Adaptation Sectors',
|
|
17
|
+
defaultMessage: 'Adaptation Sectors',
|
|
18
|
+
},
|
|
19
|
+
climateImpacts: {
|
|
20
|
+
id: 'Climate Impacts',
|
|
21
|
+
defaultMessage: 'Climate Impacts',
|
|
22
|
+
},
|
|
23
|
+
fundingProgramme: {
|
|
24
|
+
id: 'Funding Programme',
|
|
25
|
+
defaultMessage: 'Funding Programme',
|
|
26
|
+
},
|
|
27
|
+
itemFromThirdParties: {
|
|
28
|
+
id: 'Item from third parties',
|
|
29
|
+
defaultMessage: 'Item from third parties',
|
|
30
|
+
},
|
|
31
|
+
keyTypeMeasure: {
|
|
32
|
+
id: 'Key Type Measure',
|
|
33
|
+
defaultMessage: 'Key Type Measure',
|
|
34
|
+
},
|
|
35
|
+
section: {
|
|
36
|
+
id: 'Section',
|
|
37
|
+
defaultMessage: 'Section',
|
|
38
|
+
},
|
|
39
|
+
transnationalRegions: {
|
|
40
|
+
id: 'Transnational regions',
|
|
41
|
+
defaultMessage: 'Transnational regions',
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
|
|
8
45
|
const adaptation_sectors = {
|
|
9
46
|
field: 'cca_adaptation_sectors.keyword',
|
|
10
47
|
factory: 'MultiTermFacet',
|
|
11
|
-
label:
|
|
48
|
+
label: messages.adaptationSectors,
|
|
12
49
|
showInFacetsList: true,
|
|
13
50
|
filterType: 'any',
|
|
14
51
|
isFilterable: true,
|
|
@@ -23,7 +60,7 @@ const op_cluster = {
|
|
|
23
60
|
factory: 'MultiTermFacet',
|
|
24
61
|
isFilterable: true,
|
|
25
62
|
isMulti: true,
|
|
26
|
-
label:
|
|
63
|
+
label: messages.section,
|
|
27
64
|
show: 10000,
|
|
28
65
|
showInFacetsList: false,
|
|
29
66
|
ignoreNLPWhenActive: true,
|
|
@@ -44,7 +81,7 @@ const op_cluster = {
|
|
|
44
81
|
const climate_impacts = {
|
|
45
82
|
field: 'cca_climate_impacts.keyword',
|
|
46
83
|
factory: 'MultiTermFacet',
|
|
47
|
-
label:
|
|
84
|
+
label: messages.climateImpacts,
|
|
48
85
|
showInFacetsList: true,
|
|
49
86
|
filterType: 'any',
|
|
50
87
|
isFilterable: false,
|
|
@@ -58,7 +95,7 @@ const climate_impacts = {
|
|
|
58
95
|
const transnational_regions = {
|
|
59
96
|
field: 'cca_geographic_transnational_region.keyword',
|
|
60
97
|
factory: 'MultiTermFacet',
|
|
61
|
-
label:
|
|
98
|
+
label: messages.transnationalRegions,
|
|
62
99
|
showInFacetsList: true,
|
|
63
100
|
filterType: 'any',
|
|
64
101
|
isFilterable: false,
|
|
@@ -71,7 +108,7 @@ const transnational_regions = {
|
|
|
71
108
|
const adaptation_elements = {
|
|
72
109
|
field: 'cca_adaptation_elements.keyword',
|
|
73
110
|
factory: 'MultiTermFacet',
|
|
74
|
-
label:
|
|
111
|
+
label: messages.adaptationApproaches,
|
|
75
112
|
showInFacetsList: true,
|
|
76
113
|
filterType: 'any',
|
|
77
114
|
isFilterable: false,
|
|
@@ -84,7 +121,7 @@ const adaptation_elements = {
|
|
|
84
121
|
const key_type_measure = {
|
|
85
122
|
field: 'cca_key_type_measure.keyword',
|
|
86
123
|
factory: 'MultiTermFacet',
|
|
87
|
-
label:
|
|
124
|
+
label: messages.keyTypeMeasure,
|
|
88
125
|
showInFacetsList: true,
|
|
89
126
|
filterType: 'any',
|
|
90
127
|
isFilterable: false,
|
|
@@ -97,7 +134,7 @@ const key_type_measure = {
|
|
|
97
134
|
const funding_programme = {
|
|
98
135
|
field: 'cca_funding_programme.keyword',
|
|
99
136
|
factory: 'MultiTermFacet',
|
|
100
|
-
label:
|
|
137
|
+
label: messages.fundingProgramme,
|
|
101
138
|
showInFacetsList: true,
|
|
102
139
|
filterType: 'any',
|
|
103
140
|
isFilterable: false,
|
|
@@ -110,7 +147,7 @@ const funding_programme = {
|
|
|
110
147
|
const origin_websites = {
|
|
111
148
|
field: 'cca_origin_websites.keyword',
|
|
112
149
|
factory: 'MultiTermFacet',
|
|
113
|
-
label:
|
|
150
|
+
label: messages.itemFromThirdParties,
|
|
114
151
|
showInFacetsList: true,
|
|
115
152
|
filterType: 'any',
|
|
116
153
|
isFilterable: false,
|
package/src/search/common.js
CHANGED
|
@@ -1,10 +1,39 @@
|
|
|
1
1
|
import { booleanFacet } from '@eeacms/search';
|
|
2
2
|
import { getTodayWithTime } from './utils';
|
|
3
3
|
|
|
4
|
+
import { defineMessages } from 'react-intl';
|
|
5
|
+
|
|
6
|
+
const messages = defineMessages({
|
|
7
|
+
countries: {
|
|
8
|
+
id: 'Countries',
|
|
9
|
+
defaultMessage: 'Countries',
|
|
10
|
+
},
|
|
11
|
+
climateImpacts: {
|
|
12
|
+
id: 'Climate Impacts',
|
|
13
|
+
defaultMessage: 'Climate Impacts',
|
|
14
|
+
},
|
|
15
|
+
adaptationSectors: {
|
|
16
|
+
id: 'Adaptation Sectors',
|
|
17
|
+
defaultMessage: 'Adaptation Sectors',
|
|
18
|
+
},
|
|
19
|
+
includeArchivedContent: {
|
|
20
|
+
id: 'Include archived content',
|
|
21
|
+
defaultMessage: 'Include archived content',
|
|
22
|
+
},
|
|
23
|
+
typeOfItem: {
|
|
24
|
+
id: 'Type of item',
|
|
25
|
+
defaultMessage: 'Type of item',
|
|
26
|
+
},
|
|
27
|
+
language: {
|
|
28
|
+
id: 'Language',
|
|
29
|
+
defaultMessage: 'Language',
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
4
33
|
export const geographic_countries = {
|
|
5
34
|
field: 'cca_geographic_countries.keyword',
|
|
6
35
|
factory: 'MultiTermFacet',
|
|
7
|
-
label:
|
|
36
|
+
label: messages.countries,
|
|
8
37
|
showInFacetsList: true,
|
|
9
38
|
filterType: 'any',
|
|
10
39
|
isFilterable: false,
|
|
@@ -15,7 +44,7 @@ export const geographic_countries = {
|
|
|
15
44
|
export const cca_climate_impacts = {
|
|
16
45
|
field: 'cca_climate_impacts.keyword',
|
|
17
46
|
factory: 'MultiTermFacet',
|
|
18
|
-
label:
|
|
47
|
+
label: messages.climateImpacts,
|
|
19
48
|
showInFacetsList: true,
|
|
20
49
|
filterType: 'any',
|
|
21
50
|
isFilterable: false,
|
|
@@ -26,7 +55,7 @@ export const cca_climate_impacts = {
|
|
|
26
55
|
export const cca_adaptation_sectors = {
|
|
27
56
|
field: 'cca_adaptation_sectors.keyword',
|
|
28
57
|
factory: 'MultiTermFacet',
|
|
29
|
-
label:
|
|
58
|
+
label: messages.adaptationSectors,
|
|
30
59
|
showInFacetsList: true,
|
|
31
60
|
filterType: 'any',
|
|
32
61
|
isFilterable: false,
|
|
@@ -36,7 +65,7 @@ export const cca_adaptation_sectors = {
|
|
|
36
65
|
|
|
37
66
|
export const include_archived = booleanFacet(() => ({
|
|
38
67
|
field: 'IncludeArchived',
|
|
39
|
-
label:
|
|
68
|
+
label: messages.includeArchivedContent,
|
|
40
69
|
id: 'IncludeArchived',
|
|
41
70
|
showInFacetsList: false,
|
|
42
71
|
showInSecondaryFacetsList: true,
|
|
@@ -63,7 +92,7 @@ export const include_archived = booleanFacet(() => ({
|
|
|
63
92
|
export const objectProvides = {
|
|
64
93
|
field: 'objectProvides',
|
|
65
94
|
factory: 'MultiTermFacet',
|
|
66
|
-
label:
|
|
95
|
+
label: messages.typeOfItem,
|
|
67
96
|
showInFacetsList: true,
|
|
68
97
|
filterType: 'any',
|
|
69
98
|
isFilterable: false,
|
|
@@ -130,19 +159,15 @@ export const issued_date = {
|
|
|
130
159
|
export const language = {
|
|
131
160
|
field: 'language',
|
|
132
161
|
factory: 'MultiTermFacet',
|
|
133
|
-
label:
|
|
162
|
+
label: messages.language,
|
|
134
163
|
showInFacetsList: false,
|
|
135
164
|
filterType: 'any',
|
|
136
165
|
isFilterable: false,
|
|
137
166
|
show: 10000,
|
|
138
167
|
isMulti: true,
|
|
139
|
-
default:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return {
|
|
143
|
-
values: [language || 'en'],
|
|
144
|
-
type: 'any',
|
|
145
|
-
};
|
|
168
|
+
default: {
|
|
169
|
+
values: ['en'],
|
|
170
|
+
type: 'any',
|
|
146
171
|
},
|
|
147
172
|
facetValues: [
|
|
148
173
|
'de',
|
|
@@ -6,6 +6,20 @@ import vocabs from './../vocabulary';
|
|
|
6
6
|
import facets from './facets-health';
|
|
7
7
|
import views from './views-health';
|
|
8
8
|
|
|
9
|
+
// import { defineMessages } from 'react-intl';
|
|
10
|
+
|
|
11
|
+
// const messages = defineMessages({
|
|
12
|
+
// types: {
|
|
13
|
+
// id: 'Types',
|
|
14
|
+
// defaultMessage: 'Types',
|
|
15
|
+
// },
|
|
16
|
+
// healthImpacts: { id: 'Health Impacts', defaultMessage: 'Health Impacts' },
|
|
17
|
+
// observatoryPartner: {
|
|
18
|
+
// id: 'Observatory partner',
|
|
19
|
+
// defaultMessage: 'Observatory partner',
|
|
20
|
+
// },
|
|
21
|
+
// });
|
|
22
|
+
|
|
9
23
|
const ccaConfig = {
|
|
10
24
|
title: 'ClimateAdapt Health',
|
|
11
25
|
...views,
|
|
@@ -133,6 +147,7 @@ export default function installMainSearch(config) {
|
|
|
133
147
|
{
|
|
134
148
|
id: 'types',
|
|
135
149
|
title: 'Types',
|
|
150
|
+
// title: messages.types,
|
|
136
151
|
facetField: 'objectProvides',
|
|
137
152
|
sortOn: 'alpha',
|
|
138
153
|
icon: {
|
|
@@ -142,6 +157,7 @@ export default function installMainSearch(config) {
|
|
|
142
157
|
{
|
|
143
158
|
id: 'healthImpacts',
|
|
144
159
|
title: 'Health Impacts',
|
|
160
|
+
// title: messages.healthImpacts,
|
|
145
161
|
facetField: 'cca_health_impacts.keyword',
|
|
146
162
|
sortOn: 'alpha',
|
|
147
163
|
whitelist: [
|
|
@@ -155,6 +171,7 @@ export default function installMainSearch(config) {
|
|
|
155
171
|
{
|
|
156
172
|
id: 'observatoryPartner',
|
|
157
173
|
title: 'Observatory partner',
|
|
174
|
+
// title: messages.observatoryPartner,
|
|
158
175
|
facetField: 'cca_partner_contributors.keyword',
|
|
159
176
|
sortOn: 'alpha',
|
|
160
177
|
},
|