@eeacms/volto-cca-policy 0.1.40 → 0.1.41

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 CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.1.41](https://github.com/eea/volto-cca-policy/compare/0.1.40...0.1.41) - 1 September 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Updates [Tiberiu Ichim - [`1d498e3`](https://github.com/eea/volto-cca-policy/commit/1d498e3578b28a71240edb650ed93157f6cd933d)]
12
+ - Add health catalog configuration [Tiberiu Ichim - [`783fa1a`](https://github.com/eea/volto-cca-policy/commit/783fa1afc834e39dc123f9a789816098fdb4d302)]
7
13
  ### [0.1.40](https://github.com/eea/volto-cca-policy/compare/0.1.39...0.1.40) - 28 August 2023
8
14
 
9
15
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
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",
@@ -0,0 +1,115 @@
1
+ import { mergeConfig } from '@eeacms/search';
2
+ import { build_runtime_mappings } from '@eeacms/volto-globalsearch/utils';
3
+
4
+ import facets from './facets-health';
5
+
6
+ // import views from './views';
7
+ // import filters from './filters';
8
+ // import vocabs from './vocabulary';
9
+
10
+ const getClientProxyAddress = () => {
11
+ const url = new URL(window.location);
12
+ url.pathname = '';
13
+ url.search = '';
14
+ return url.toString();
15
+ };
16
+
17
+ const ccaConfig = {
18
+ title: 'ClimateAdapt Health',
19
+ };
20
+
21
+ export const clusters = {
22
+ name: 'op_cluster',
23
+ field: 'objectProvides',
24
+ clusters: [
25
+ // {
26
+ // name: 'Type1',
27
+ // icon: { name: 'bullhorn' },
28
+ // values: ['Video', 'Guidance'],
29
+ // defaultResultView: 'horizontalCard',
30
+ // },
31
+ ],
32
+ };
33
+
34
+ export default function installMainSearch(config) {
35
+ const envConfig = process.env.RAZZLE_ENV_CONFIG
36
+ ? JSON.parse(process.env.RAZZLE_ENV_CONFIG)
37
+ : ccaConfig;
38
+
39
+ const pjson = require('@eeacms/volto-cca-policy/../package.json');
40
+
41
+ envConfig.app_name = pjson.name;
42
+ envConfig.app_version = pjson.version;
43
+
44
+ config.searchui.ccaHealthSearch = {
45
+ ...mergeConfig(envConfig, config.searchui.globalsearchbase),
46
+ elastic_index: '_es/globalsearch',
47
+ index_name: 'data_searchui',
48
+ host: process.env.RAZZLE_ES_PROXY_ADDR || 'http://localhost:3000',
49
+ vocab: {
50
+ cluster_name: {
51
+ cca: 'Climate-ADAPT',
52
+ },
53
+ },
54
+ runtime_mappings: build_runtime_mappings(clusters),
55
+ };
56
+
57
+ const { ccaHealthSearch } = config.searchui;
58
+
59
+ ccaHealthSearch.permanentFilters.push({
60
+ term: {
61
+ cca_include_in_search_observatory: 'true',
62
+ },
63
+ });
64
+
65
+ ccaHealthSearch.permanentFilters.push({
66
+ terms: {
67
+ objectProvides: [
68
+ 'Adaptation option',
69
+ 'Case study',
70
+ 'Guidance',
71
+ 'Video',
72
+ 'Indicator',
73
+ 'Information portal',
74
+ 'Organisation',
75
+ 'Publication reference',
76
+ 'Research and knowledge project',
77
+ 'Tool',
78
+ ],
79
+ },
80
+ });
81
+
82
+ ccaHealthSearch.facets = facets;
83
+
84
+ ccaHealthSearch.initialView.tilesLandingPageParams.sections = [
85
+ {
86
+ id: 'types',
87
+ title: 'Types',
88
+ facetField: 'objectProvides',
89
+ sortOn: 'alpha',
90
+ icon: {
91
+ family: 'Content types',
92
+ },
93
+ },
94
+ {
95
+ id: 'healthImpacts',
96
+ title: 'Health Impacts',
97
+ facetField: 'cca_health_impacts.keyword',
98
+ sortOn: 'alpha',
99
+ whitelist: [
100
+ 'Wildfires',
101
+ 'Air pollution and aero-allergens',
102
+ 'Droughts and floods',
103
+ 'Climate-sensitive diseases',
104
+ 'Heat',
105
+ ],
106
+ },
107
+ ];
108
+
109
+ if (typeof window !== 'undefined') {
110
+ config.searchui.ccaHealthSearch.host =
111
+ process.env.RAZZLE_ES_PROXY_ADDR || getClientProxyAddress();
112
+ }
113
+
114
+ return config;
115
+ }
@@ -0,0 +1,1277 @@
1
+ const special = [
2
+ {
3
+ field: 'issued.date',
4
+ factory: 'DropdownRangeFilter',
5
+ wrapper: 'DummySUIFacetWrapper',
6
+ label: ' ',
7
+ showInFacetsList: false,
8
+ filterType: 'any',
9
+ isFilterable: false,
10
+ activeFilterLabel: 'Published',
11
+ isFilter: true,
12
+ showInSecondaryFacetsList: true,
13
+ isMulti: false,
14
+ ignoreFromNlp: true,
15
+ ranges: [
16
+ {
17
+ key: 'All time',
18
+ },
19
+ {
20
+ key: 'Last week',
21
+ from: 'now-1w',
22
+ to: 'now',
23
+ },
24
+ {
25
+ key: 'Last month',
26
+ from: 'now-1m',
27
+ to: 'now',
28
+ },
29
+ {
30
+ key: 'Last 3 months',
31
+ from: 'now-3m',
32
+ to: 'now',
33
+ },
34
+ {
35
+ key: 'Last year',
36
+ from: 'now-1y',
37
+ to: 'now',
38
+ },
39
+ {
40
+ key: 'Last 2 years',
41
+ from: 'now-2y',
42
+ to: 'now',
43
+ },
44
+ {
45
+ key: 'Last 5 years',
46
+ from: 'now-5y',
47
+ to: 'now',
48
+ },
49
+ ],
50
+ default: {
51
+ values: ['Last 5 years'],
52
+ type: 'any',
53
+ },
54
+ },
55
+
56
+ {
57
+ field: 'IncludeArchived',
58
+ label: 'Include archived content',
59
+ on: null,
60
+ off: {
61
+ constant_score: {
62
+ filter: {
63
+ bool: {
64
+ should: [
65
+ {
66
+ bool: {
67
+ must_not: {
68
+ exists: {
69
+ field: 'expires',
70
+ },
71
+ },
72
+ },
73
+ },
74
+ {
75
+ range: {
76
+ expires: {
77
+ gte: '2023-04-27T11:52:29Z',
78
+ },
79
+ },
80
+ },
81
+ ],
82
+ },
83
+ },
84
+ },
85
+ },
86
+ factory: 'BooleanFacet',
87
+ wrapper: 'DummySUIFacetWrapper',
88
+ showInFacetsList: false,
89
+ id: 'archived-facet',
90
+ showInSecondaryFacetsList: true,
91
+ isFilter: true,
92
+ },
93
+ {
94
+ field: 'op_cluster',
95
+ factory: 'MultiTermFacet',
96
+ isFilterable: true,
97
+ isMulti: true,
98
+ label: 'Section',
99
+ show: 10000,
100
+ showInFacetsList: false,
101
+ ignoreNLPWhenActive: true,
102
+ blacklist: ['Others', 'Publications'],
103
+ },
104
+ {
105
+ field: 'language',
106
+ factory: 'MultiTermFacet',
107
+ label: 'Language',
108
+ showInFacetsList: false,
109
+ filterType: 'any',
110
+ isFilterable: false,
111
+ show: 10000,
112
+ isMulti: true,
113
+ default: {
114
+ values: ['en'],
115
+ type: 'any',
116
+ },
117
+ facetValues: [
118
+ 'ar',
119
+ 'sr',
120
+ 'sq',
121
+ 'bg',
122
+ 'bs',
123
+ 'cs',
124
+ 'hr',
125
+ 'da',
126
+ 'nl',
127
+ 'el',
128
+ 'en',
129
+ 'et',
130
+ 'fi',
131
+ 'fr',
132
+ 'ga',
133
+ 'de',
134
+ 'hu',
135
+ 'is',
136
+ 'it',
137
+ 'lv',
138
+ 'lt',
139
+ 'mk',
140
+ 'mt',
141
+ 'no',
142
+ 'pl',
143
+ 'pt',
144
+ 'ro',
145
+ 'ru',
146
+ 'sh',
147
+ 'sk',
148
+ 'sl',
149
+ 'es',
150
+ 'sv',
151
+ 'tr',
152
+ ],
153
+ sortOn: 'custom',
154
+ sortOnCustomLabel: 'Alphabetical',
155
+ },
156
+ ];
157
+
158
+ const facets = [
159
+ {
160
+ field: 'objectProvides',
161
+ factory: 'MultiTermFacet',
162
+ label: 'Type of item',
163
+ showInFacetsList: true,
164
+ filterType: 'any',
165
+ isFilterable: false,
166
+ show: 10000,
167
+ isMulti: true,
168
+ iconsFamily: 'Content types',
169
+ optionsFilter: 'typesForClustersOptionsFilter',
170
+ },
171
+ {
172
+ field: 'cca_health_impacts.keyword',
173
+ factory: 'MultiTermFacet',
174
+ label: 'Health impacts',
175
+ showInFacetsList: true,
176
+ filterType: 'any',
177
+ isFilterable: false,
178
+ show: 10000,
179
+ isMulti: true,
180
+ sortOn: 'custom',
181
+ sortOnCustomLabel: 'Alphabetical',
182
+ },
183
+ {
184
+ field: 'cca_origin_websites.keyword',
185
+ factory: 'MultiTermFacet',
186
+ label: 'Observatory partner',
187
+ showInFacetsList: true,
188
+ filterType: 'any',
189
+ isFilterable: false,
190
+ show: 10000,
191
+ isMulti: true,
192
+ sortOn: 'custom',
193
+ sortOnCustomLabel: 'Alphabetical',
194
+ },
195
+ {
196
+ field: 'year',
197
+ factory: 'HistogramFacet',
198
+ label: 'Publishing year',
199
+ height: 100,
200
+ showInFacetsList: true,
201
+ isFilterable: false,
202
+ isMulti: true,
203
+ ranges: [
204
+ {
205
+ from: 1994,
206
+ to: 1995,
207
+ },
208
+ {
209
+ from: 1995,
210
+ to: 1996,
211
+ },
212
+ {
213
+ from: 1996,
214
+ to: 1997,
215
+ },
216
+ {
217
+ from: 1997,
218
+ to: 1998,
219
+ },
220
+ {
221
+ from: 1998,
222
+ to: 1999,
223
+ },
224
+ {
225
+ from: 1999,
226
+ to: 2000,
227
+ },
228
+ {
229
+ from: 2000,
230
+ to: 2001,
231
+ },
232
+ {
233
+ from: 2001,
234
+ to: 2002,
235
+ },
236
+ {
237
+ from: 2002,
238
+ to: 2003,
239
+ },
240
+ {
241
+ from: 2003,
242
+ to: 2004,
243
+ },
244
+ {
245
+ from: 2004,
246
+ to: 2005,
247
+ },
248
+ {
249
+ from: 2005,
250
+ to: 2006,
251
+ },
252
+ {
253
+ from: 2006,
254
+ to: 2007,
255
+ },
256
+ {
257
+ from: 2007,
258
+ to: 2008,
259
+ },
260
+ {
261
+ from: 2008,
262
+ to: 2009,
263
+ },
264
+ {
265
+ from: 2009,
266
+ to: 2010,
267
+ },
268
+ {
269
+ from: 2010,
270
+ to: 2011,
271
+ },
272
+ {
273
+ from: 2011,
274
+ to: 2012,
275
+ },
276
+ {
277
+ from: 2012,
278
+ to: 2013,
279
+ },
280
+ {
281
+ from: 2013,
282
+ to: 2014,
283
+ },
284
+ {
285
+ from: 2014,
286
+ to: 2015,
287
+ },
288
+ {
289
+ from: 2015,
290
+ to: 2016,
291
+ },
292
+ {
293
+ from: 2016,
294
+ to: 2017,
295
+ },
296
+ {
297
+ from: 2017,
298
+ to: 2018,
299
+ },
300
+ {
301
+ from: 2018,
302
+ to: 2019,
303
+ },
304
+ {
305
+ from: 2019,
306
+ to: 2020,
307
+ },
308
+ {
309
+ from: 2020,
310
+ to: 2021,
311
+ },
312
+ {
313
+ from: 2021,
314
+ to: 2022,
315
+ },
316
+ {
317
+ from: 2022,
318
+ to: 2023,
319
+ },
320
+ ],
321
+ step: 10,
322
+ aggs_script:
323
+ "def vals = doc['year']; if (vals.length == 0){return 2500} else {def ret = [];for (val in vals){def tmp_val = val.substring(0,4);ret.add(tmp_val.toLowerCase() == tmp_val.toUpperCase() ? Integer.parseInt(tmp_val) : 2500);}return ret;}",
324
+ },
325
+ ...special,
326
+ ];
327
+
328
+ export default facets;
329
+
330
+ // {
331
+ // field: 'cca_adaptation_sectors.keyword',
332
+ // factory: 'MultiTermFacet',
333
+ // label: 'Adaptation Sectors',
334
+ // showInFacetsList: true,
335
+ // filterType: 'any',
336
+ // isFilterable: false,
337
+ // show: 10000,
338
+ // isMulti: true,
339
+ // sortOn: 'custom',
340
+ // sortOnCustomLabel: 'Alphabetical',
341
+ // },
342
+ // {
343
+ // field: 'cca_adaptation_elements.keyword',
344
+ // factory: 'MultiTermFacet',
345
+ // label: 'Adaptation Elements',
346
+ // showInFacetsList: true,
347
+ // filterType: 'any',
348
+ // isFilterable: false,
349
+ // show: 10000,
350
+ // isMulti: true,
351
+ // sortOn: 'custom',
352
+ // sortOnCustomLabel: 'Alphabetical',
353
+ // },
354
+ // {
355
+ // field: 'cca_funding_programme.keyword',
356
+ // factory: 'MultiTermFacet',
357
+ // label: 'Funding Programme',
358
+ // showInFacetsList: true,
359
+ // filterType: 'any',
360
+ // isFilterable: false,
361
+ // show: 10000,
362
+ // isMulti: true,
363
+ // sortOn: 'custom',
364
+ // sortOnCustomLabel: 'Alphabetical',
365
+ // },
366
+ // {
367
+ // field: 'cca_geographic_countries.keyword',
368
+ // factory: 'MultiTermFacet',
369
+ // label: 'Countries',
370
+ // showInFacetsList: true,
371
+ // filterType: 'any',
372
+ // isFilterable: false,
373
+ // show: 10000,
374
+ // isMulti: true,
375
+ // sortOn: 'custom',
376
+ // sortOnCustomLabel: 'Alphabetical',
377
+ // },
378
+
379
+ // {
380
+ // field: 'cca_adaptation_sectors.keyword',
381
+ // factory: 'MultiTermFacet',
382
+ // label: 'Adaptation Sectors',
383
+ // showInFacetsList: true,
384
+ // filterType: 'any',
385
+ // isFilterable: true,
386
+ // show: 10000,
387
+ // isMulti: true,
388
+ // // blacklist: ['reporting', 'Default'],
389
+ // showAllOptions: true,
390
+ // alwaysVisible: true,
391
+ // },
392
+ //
393
+ //
394
+ //
395
+ // {
396
+ // field: 'time_coverage',
397
+ // factory: 'HistogramFacet',
398
+ // label: 'Time coverage',
399
+ // height: 100,
400
+ // showInFacetsList: true,
401
+ // isFilterable: false,
402
+ // isMulti: true,
403
+ // ranges: [
404
+ // {
405
+ // from: 1700,
406
+ // to: 1710,
407
+ // },
408
+ // {
409
+ // from: 1710,
410
+ // to: 1720,
411
+ // },
412
+ // {
413
+ // from: 1720,
414
+ // to: 1730,
415
+ // },
416
+ // {
417
+ // from: 1730,
418
+ // to: 1740,
419
+ // },
420
+ // {
421
+ // from: 1740,
422
+ // to: 1750,
423
+ // },
424
+ // {
425
+ // from: 1750,
426
+ // to: 1760,
427
+ // },
428
+ // {
429
+ // from: 1760,
430
+ // to: 1770,
431
+ // },
432
+ // {
433
+ // from: 1770,
434
+ // to: 1780,
435
+ // },
436
+ // {
437
+ // from: 1780,
438
+ // to: 1790,
439
+ // },
440
+ // {
441
+ // from: 1790,
442
+ // to: 1800,
443
+ // },
444
+ // {
445
+ // from: 1800,
446
+ // to: 1810,
447
+ // },
448
+ // {
449
+ // from: 1810,
450
+ // to: 1820,
451
+ // },
452
+ // {
453
+ // from: 1820,
454
+ // to: 1830,
455
+ // },
456
+ // {
457
+ // from: 1830,
458
+ // to: 1840,
459
+ // },
460
+ // {
461
+ // from: 1840,
462
+ // to: 1850,
463
+ // },
464
+ // {
465
+ // from: 1850,
466
+ // to: 1860,
467
+ // },
468
+ // {
469
+ // from: 1860,
470
+ // to: 1870,
471
+ // },
472
+ // {
473
+ // from: 1870,
474
+ // to: 1880,
475
+ // },
476
+ // {
477
+ // from: 1880,
478
+ // to: 1890,
479
+ // },
480
+ // {
481
+ // from: 1890,
482
+ // to: 1900,
483
+ // },
484
+ // {
485
+ // from: 1900,
486
+ // to: 1910,
487
+ // },
488
+ // {
489
+ // from: 1910,
490
+ // to: 1920,
491
+ // },
492
+ // {
493
+ // from: 1920,
494
+ // to: 1930,
495
+ // },
496
+ // {
497
+ // from: 1930,
498
+ // to: 1940,
499
+ // },
500
+ // {
501
+ // from: 1940,
502
+ // to: 1950,
503
+ // },
504
+ // {
505
+ // from: 1950,
506
+ // to: 1960,
507
+ // },
508
+ // {
509
+ // from: 1960,
510
+ // to: 1970,
511
+ // },
512
+ // {
513
+ // from: 1970,
514
+ // to: 1980,
515
+ // },
516
+ // {
517
+ // from: 1980,
518
+ // to: 1990,
519
+ // },
520
+ // {
521
+ // from: 1990,
522
+ // to: 2000,
523
+ // },
524
+ // {
525
+ // from: 2000,
526
+ // to: 2010,
527
+ // },
528
+ // {
529
+ // from: 2010,
530
+ // to: 2020,
531
+ // },
532
+ // {
533
+ // from: 2020,
534
+ // to: 2030,
535
+ // },
536
+ // {
537
+ // from: 2030,
538
+ // to: 2040,
539
+ // },
540
+ // {
541
+ // from: 2040,
542
+ // to: 2050,
543
+ // },
544
+ // {
545
+ // from: 2050,
546
+ // to: 2060,
547
+ // },
548
+ // {
549
+ // from: 2060,
550
+ // to: 2070,
551
+ // },
552
+ // {
553
+ // from: 2070,
554
+ // to: 2080,
555
+ // },
556
+ // {
557
+ // from: 2080,
558
+ // to: 2090,
559
+ // },
560
+ // {
561
+ // from: 2090,
562
+ // to: 2100,
563
+ // },
564
+ // {
565
+ // from: 2100,
566
+ // to: 2110,
567
+ // },
568
+ // {
569
+ // from: 2110,
570
+ // to: 2120,
571
+ // },
572
+ // {
573
+ // from: 2120,
574
+ // to: 2130,
575
+ // },
576
+ // {
577
+ // from: 2130,
578
+ // to: 2140,
579
+ // },
580
+ // {
581
+ // from: 2140,
582
+ // to: 2150,
583
+ // },
584
+ // {
585
+ // from: 2150,
586
+ // to: 2160,
587
+ // },
588
+ // {
589
+ // from: 2160,
590
+ // to: 2170,
591
+ // },
592
+ // {
593
+ // from: 2170,
594
+ // to: 2180,
595
+ // },
596
+ // {
597
+ // from: 2180,
598
+ // to: 2190,
599
+ // },
600
+ // {
601
+ // from: 2190,
602
+ // to: 2200,
603
+ // },
604
+ // {
605
+ // from: 2200,
606
+ // to: 2210,
607
+ // },
608
+ // ],
609
+ // step: 10,
610
+ // aggs_script:
611
+ // "def vals = doc['time_coverage']; if (vals.length == 0){return 2500} else {def ret = [];for (val in vals){def tmp_val = val.substring(0,4);ret.add(tmp_val.toLowerCase() == tmp_val.toUpperCase() ? Integer.parseInt(tmp_val) : 2500);}return ret;}",
612
+ // },
613
+ // {
614
+ // field: 'readingTime',
615
+ // factory: 'FixedRangeFacet',
616
+ // label: 'Reading time',
617
+ // showInFacetsList: true,
618
+ // filterType: 'any',
619
+ // isFilterable: false,
620
+ // rangeType: 'fixed',
621
+ // isMulti: true,
622
+ // ranges: [
623
+ // {
624
+ // key: 'All',
625
+ // },
626
+ // {
627
+ // from: 0,
628
+ // to: 4.99999,
629
+ // key: 'Short (<5 minutes)',
630
+ // },
631
+ // {
632
+ // from: 5,
633
+ // to: 24.9999,
634
+ // key: 'Medium (5-25 minutes)',
635
+ // },
636
+ // {
637
+ // from: 25,
638
+ // to: 10000,
639
+ // key: 'Large (25+ minutes)',
640
+ // },
641
+ // ],
642
+ // default: {
643
+ // values: [
644
+ // {
645
+ // name: 'All',
646
+ // rangeType: 'fixed',
647
+ // },
648
+ // ],
649
+ // type: 'any',
650
+ // },
651
+ // },
652
+ //
653
+ // {
654
+ // field: 'moreLikeThis',
655
+ // factory: 'MoreLikeThis',
656
+ // label: 'More like this',
657
+ // showInFacetsList: false,
658
+ // filterType: 'any',
659
+ // isFilterable: true,
660
+ // show: 10000,
661
+ // isMulti: false,
662
+ // filterListComponent: 'MoreLikeThisEntry',
663
+ // condition: 'like',
664
+ // queryParams: {
665
+ // fields: ['title', 'text'],
666
+ // min_term_freq: 1,
667
+ // max_query_terms: 12,
668
+ // },
669
+ // },
670
+
671
+ // {
672
+ // field: 'topic',
673
+ // factory: 'MultiTermFacet',
674
+ // label: 'Topics',
675
+ // showInFacetsList: true,
676
+ // filterType: 'any',
677
+ // isFilterable: true,
678
+ // show: 10000,
679
+ // isMulti: true,
680
+ // blacklist: ['reporting', 'Default'],
681
+ // showAllOptions: true,
682
+ // alwaysVisible: true,
683
+ // },
684
+
685
+ // {
686
+ // field: 'subject.keyword',
687
+ // factory: 'MultiTermFacet',
688
+ // label: 'Keywords',
689
+ // showInFacetsList: true,
690
+ // filterType: 'any',
691
+ // isFilterable: true,
692
+ // show: 10000,
693
+ // isMulti: true,
694
+ // showAllOptions: true,
695
+ // alwaysVisible: false,
696
+ // },
697
+ // {
698
+ // field: 'spatial',
699
+ // factory: 'MultiTermFacet',
700
+ // label: 'Countries',
701
+ // showInFacetsList: true,
702
+ // filterType: 'any',
703
+ // isFilterable: true,
704
+ // show: 10000,
705
+ // isMulti: true,
706
+ // whitelist: [
707
+ // 'Andorra',
708
+ // 'United Arab Emirates',
709
+ // 'Afghanistan',
710
+ // 'Antigua and Barbuda',
711
+ // 'Anguilla',
712
+ // 'Albania',
713
+ // 'Armenia',
714
+ // 'Angola',
715
+ // 'Antarctica',
716
+ // 'Argentina',
717
+ // 'American Samoa',
718
+ // 'Austria',
719
+ // 'Australia',
720
+ // 'Aruba',
721
+ // 'Åland',
722
+ // 'Azerbaijan',
723
+ // 'Bosnia and Herzegovina',
724
+ // 'Barbados',
725
+ // 'Bangladesh',
726
+ // 'Belgium',
727
+ // 'Burkina Faso',
728
+ // 'Bulgaria',
729
+ // 'Bahrain',
730
+ // 'Burundi',
731
+ // 'Benin',
732
+ // 'Saint Barthélemy',
733
+ // 'Bermuda',
734
+ // 'Brunei',
735
+ // 'Bolivia',
736
+ // 'Bonaire',
737
+ // 'Brazil',
738
+ // 'Bahamas',
739
+ // 'Bhutan',
740
+ // 'Bouvet Island',
741
+ // 'Botswana',
742
+ // 'Belarus',
743
+ // 'Belize',
744
+ // 'Canada',
745
+ // 'Cocos [Keeling] Islands',
746
+ // 'Democratic Republic of the Congo',
747
+ // 'Central African Republic',
748
+ // 'Republic of the Congo',
749
+ // 'Switzerland',
750
+ // 'Ivory Coast',
751
+ // 'Cook Islands',
752
+ // 'Chile',
753
+ // 'Cameroon',
754
+ // 'China',
755
+ // 'Colombia',
756
+ // 'Costa Rica',
757
+ // 'Cuba',
758
+ // 'Cape Verde',
759
+ // 'Curacao',
760
+ // 'Christmas Island',
761
+ // 'Cyprus',
762
+ // 'Czech Republic',
763
+ // 'Germany',
764
+ // 'Djibouti',
765
+ // 'Denmark',
766
+ // 'Dominica',
767
+ // 'Dominican Republic',
768
+ // 'Algeria',
769
+ // 'Ecuador',
770
+ // 'Estonia',
771
+ // 'Egypt',
772
+ // 'Western Sahara',
773
+ // 'Eritrea',
774
+ // 'Spain',
775
+ // 'Ethiopia',
776
+ // 'Finland',
777
+ // 'Fiji',
778
+ // 'Falkland Islands',
779
+ // 'Micronesia',
780
+ // 'Faroe Islands',
781
+ // 'France',
782
+ // 'Gabon',
783
+ // 'United Kingdom',
784
+ // 'Grenada',
785
+ // 'Georgia',
786
+ // 'French Guiana',
787
+ // 'Guernsey',
788
+ // 'Ghana',
789
+ // 'Gibraltar',
790
+ // 'Greenland',
791
+ // 'Gambia',
792
+ // 'Guinea',
793
+ // 'Guadeloupe',
794
+ // 'Equatorial Guinea',
795
+ // 'Greece',
796
+ // 'South Georgia and the South Sandwich Islands',
797
+ // 'Guatemala',
798
+ // 'Guam',
799
+ // 'Guinea-Bissau',
800
+ // 'Guyana',
801
+ // 'Hong Kong',
802
+ // 'Heard Island and McDonald Islands',
803
+ // 'Honduras',
804
+ // 'Croatia',
805
+ // 'Haiti',
806
+ // 'Hungary',
807
+ // 'Indonesia',
808
+ // 'Ireland',
809
+ // 'Israel',
810
+ // 'Isle of Man',
811
+ // 'India',
812
+ // 'British Indian Ocean Territory',
813
+ // 'Iraq',
814
+ // 'Iran',
815
+ // 'Iceland',
816
+ // 'Italy',
817
+ // 'Jersey',
818
+ // 'Jamaica',
819
+ // 'Jordan',
820
+ // 'Japan',
821
+ // 'Kenya',
822
+ // 'Kyrgyzstan',
823
+ // 'Cambodia',
824
+ // 'Kiribati',
825
+ // 'Comoros',
826
+ // 'Saint Kitts and Nevis',
827
+ // 'North Korea',
828
+ // 'South Korea',
829
+ // 'Kuwait',
830
+ // 'Cayman Islands',
831
+ // 'Kazakhstan',
832
+ // 'Laos',
833
+ // 'Lebanon',
834
+ // 'Saint Lucia',
835
+ // 'Liechtenstein',
836
+ // 'Sri Lanka',
837
+ // 'Liberia',
838
+ // 'Lesotho',
839
+ // 'Lithuania',
840
+ // 'Luxembourg',
841
+ // 'Latvia',
842
+ // 'Libya',
843
+ // 'Morocco',
844
+ // 'Monaco',
845
+ // 'Moldova',
846
+ // 'Montenegro',
847
+ // 'Saint Martin',
848
+ // 'Madagascar',
849
+ // 'Marshall Islands',
850
+ // 'Macedonia',
851
+ // 'Mali',
852
+ // 'Myanmar [Burma]',
853
+ // 'Mongolia',
854
+ // 'Macao',
855
+ // 'Northern Mariana Islands',
856
+ // 'Martinique',
857
+ // 'Mauritania',
858
+ // 'Montserrat',
859
+ // 'Malta',
860
+ // 'Mauritius',
861
+ // 'Maldives',
862
+ // 'Malawi',
863
+ // 'Mexico',
864
+ // 'Malaysia',
865
+ // 'Mozambique',
866
+ // 'Namibia',
867
+ // 'New Caledonia',
868
+ // 'Niger',
869
+ // 'Norfolk Island',
870
+ // 'Nigeria',
871
+ // 'Nicaragua',
872
+ // 'Netherlands',
873
+ // 'Norway',
874
+ // 'Nepal',
875
+ // 'Nauru',
876
+ // 'Niue',
877
+ // 'New Zealand',
878
+ // 'Oman',
879
+ // 'Panama',
880
+ // 'Peru',
881
+ // 'French Polynesia',
882
+ // 'Papua New Guinea',
883
+ // 'Philippines',
884
+ // 'Pakistan',
885
+ // 'Poland',
886
+ // 'Saint Pierre and Miquelon',
887
+ // 'Pitcairn Islands',
888
+ // 'Puerto Rico',
889
+ // 'Palestine',
890
+ // 'Portugal',
891
+ // 'Palau',
892
+ // 'Paraguay',
893
+ // 'Qatar',
894
+ // 'Réunion',
895
+ // 'Romania',
896
+ // 'Serbia',
897
+ // 'Russia',
898
+ // 'Rwanda',
899
+ // 'Saudi Arabia',
900
+ // 'Solomon Islands',
901
+ // 'Seychelles',
902
+ // 'Sudan',
903
+ // 'Sweden',
904
+ // 'Singapore',
905
+ // 'Saint Helena',
906
+ // 'Slovenia',
907
+ // 'Svalbard and Jan Mayen',
908
+ // 'Slovakia',
909
+ // 'Sierra Leone',
910
+ // 'San Marino',
911
+ // 'Senegal',
912
+ // 'Somalia',
913
+ // 'Suriname',
914
+ // 'South Sudan',
915
+ // 'São Tomé and Príncipe',
916
+ // 'El Salvador',
917
+ // 'Sint Maarten',
918
+ // 'Syria',
919
+ // 'Swaziland',
920
+ // 'Turks and Caicos Islands',
921
+ // 'Chad',
922
+ // 'French Southern Territories',
923
+ // 'Togo',
924
+ // 'Thailand',
925
+ // 'Tajikistan',
926
+ // 'Tokelau',
927
+ // 'East Timor',
928
+ // 'Turkmenistan',
929
+ // 'Tunisia',
930
+ // 'Tonga',
931
+ // 'Türkiye',
932
+ // 'Trinidad and Tobago',
933
+ // 'Tuvalu',
934
+ // 'Taiwan',
935
+ // 'Tanzania',
936
+ // 'Ukraine',
937
+ // 'Uganda',
938
+ // 'U.S. Minor Outlying Islands',
939
+ // 'United States',
940
+ // 'Uruguay',
941
+ // 'Uzbekistan',
942
+ // 'Vatican City',
943
+ // 'Saint Vincent and the Grenadines',
944
+ // 'Venezuela',
945
+ // 'British Virgin Islands',
946
+ // 'U.S. Virgin Islands',
947
+ // 'Vietnam',
948
+ // 'Vanuatu',
949
+ // 'Wallis and Futuna',
950
+ // 'Samoa',
951
+ // 'Kosovo (UNSCR 1244/99)',
952
+ // 'Yemen',
953
+ // 'Mayotte',
954
+ // 'South Africa',
955
+ // 'Zambia',
956
+ // 'Zimbabwe',
957
+ // 'Russia',
958
+ // 'Czechia',
959
+ // 'Kosovo',
960
+ // 'Macedonia',
961
+ // 'Former Yugoslav Republic of Macedonia, the',
962
+ // 'Macedonia (FYR)',
963
+ // 'England',
964
+ // 'Scotland',
965
+ // 'Wales',
966
+ // 'Northern Ireland',
967
+ // 'North Macedonia',
968
+ // 'Congo',
969
+ // ],
970
+ // iconsFamily: 'Countries',
971
+ // enableExact: true,
972
+ // sortOn: 'value',
973
+ // alwaysVisible: false,
974
+ // },
975
+ // {
976
+ // field: 'op_cluster',
977
+ // factory: 'MultiTermFacet',
978
+ // label: 'Section',
979
+ // showInFacetsList: false,
980
+ // filterType: 'any',
981
+ // isFilterable: true,
982
+ // show: 10000,
983
+ // isMulti: true,
984
+ // ignoreNLPWhenActive: true,
985
+ // },
986
+ // {
987
+ // field: 'cluster_name',
988
+ // factory: 'MultiTermFacet',
989
+ // label: 'Websites',
990
+ // showInFacetsList: true,
991
+ // filterType: 'any',
992
+ // isFilterable: false,
993
+ // show: 10000,
994
+ // isMulti: true,
995
+ // iconsFamily: 'Sources',
996
+ // alwaysVisible: true,
997
+ // },
998
+ // {
999
+ // field: 'places',
1000
+ // factory: 'MultiTermFacet',
1001
+ // label: 'Regions/Places',
1002
+ // showInFacetsList: true,
1003
+ // filterType: 'any',
1004
+ // isFilterable: true,
1005
+ // show: 10000,
1006
+ // isMulti: true,
1007
+ // blacklist: [
1008
+ // 'Andorra',
1009
+ // 'United Arab Emirates',
1010
+ // 'Afghanistan',
1011
+ // 'Antigua and Barbuda',
1012
+ // 'Anguilla',
1013
+ // 'Albania',
1014
+ // 'Armenia',
1015
+ // 'Angola',
1016
+ // 'Antarctica',
1017
+ // 'Argentina',
1018
+ // 'American Samoa',
1019
+ // 'Austria',
1020
+ // 'Australia',
1021
+ // 'Aruba',
1022
+ // 'Åland',
1023
+ // 'Azerbaijan',
1024
+ // 'Bosnia and Herzegovina',
1025
+ // 'Barbados',
1026
+ // 'Bangladesh',
1027
+ // 'Belgium',
1028
+ // 'Burkina Faso',
1029
+ // 'Bulgaria',
1030
+ // 'Bahrain',
1031
+ // 'Burundi',
1032
+ // 'Benin',
1033
+ // 'Saint Barthélemy',
1034
+ // 'Bermuda',
1035
+ // 'Brunei',
1036
+ // 'Bolivia',
1037
+ // 'Bonaire',
1038
+ // 'Brazil',
1039
+ // 'Bahamas',
1040
+ // 'Bhutan',
1041
+ // 'Bouvet Island',
1042
+ // 'Botswana',
1043
+ // 'Belarus',
1044
+ // 'Belize',
1045
+ // 'Canada',
1046
+ // 'Cocos [Keeling] Islands',
1047
+ // 'Democratic Republic of the Congo',
1048
+ // 'Central African Republic',
1049
+ // 'Republic of the Congo',
1050
+ // 'Switzerland',
1051
+ // 'Ivory Coast',
1052
+ // 'Cook Islands',
1053
+ // 'Chile',
1054
+ // 'Cameroon',
1055
+ // 'China',
1056
+ // 'Colombia',
1057
+ // 'Costa Rica',
1058
+ // 'Cuba',
1059
+ // 'Cape Verde',
1060
+ // 'Curacao',
1061
+ // 'Christmas Island',
1062
+ // 'Cyprus',
1063
+ // 'Czech Republic',
1064
+ // 'Germany',
1065
+ // 'Djibouti',
1066
+ // 'Denmark',
1067
+ // 'Dominica',
1068
+ // 'Dominican Republic',
1069
+ // 'Algeria',
1070
+ // 'Ecuador',
1071
+ // 'Estonia',
1072
+ // 'Egypt',
1073
+ // 'Western Sahara',
1074
+ // 'Eritrea',
1075
+ // 'Spain',
1076
+ // 'Ethiopia',
1077
+ // 'Finland',
1078
+ // 'Fiji',
1079
+ // 'Falkland Islands',
1080
+ // 'Micronesia',
1081
+ // 'Faroe Islands',
1082
+ // 'France',
1083
+ // 'Gabon',
1084
+ // 'United Kingdom',
1085
+ // 'Grenada',
1086
+ // 'Georgia',
1087
+ // 'French Guiana',
1088
+ // 'Guernsey',
1089
+ // 'Ghana',
1090
+ // 'Gibraltar',
1091
+ // 'Greenland',
1092
+ // 'Gambia',
1093
+ // 'Guinea',
1094
+ // 'Guadeloupe',
1095
+ // 'Equatorial Guinea',
1096
+ // 'Greece',
1097
+ // 'South Georgia and the South Sandwich Islands',
1098
+ // 'Guatemala',
1099
+ // 'Guam',
1100
+ // 'Guinea-Bissau',
1101
+ // 'Guyana',
1102
+ // 'Hong Kong',
1103
+ // 'Heard Island and McDonald Islands',
1104
+ // 'Honduras',
1105
+ // 'Croatia',
1106
+ // 'Haiti',
1107
+ // 'Hungary',
1108
+ // 'Indonesia',
1109
+ // 'Ireland',
1110
+ // 'Israel',
1111
+ // 'Isle of Man',
1112
+ // 'India',
1113
+ // 'British Indian Ocean Territory',
1114
+ // 'Iraq',
1115
+ // 'Iran',
1116
+ // 'Iceland',
1117
+ // 'Italy',
1118
+ // 'Jersey',
1119
+ // 'Jamaica',
1120
+ // 'Jordan',
1121
+ // 'Japan',
1122
+ // 'Kenya',
1123
+ // 'Kyrgyzstan',
1124
+ // 'Cambodia',
1125
+ // 'Kiribati',
1126
+ // 'Comoros',
1127
+ // 'Saint Kitts and Nevis',
1128
+ // 'North Korea',
1129
+ // 'South Korea',
1130
+ // 'Kuwait',
1131
+ // 'Cayman Islands',
1132
+ // 'Kazakhstan',
1133
+ // 'Laos',
1134
+ // 'Lebanon',
1135
+ // 'Saint Lucia',
1136
+ // 'Liechtenstein',
1137
+ // 'Sri Lanka',
1138
+ // 'Liberia',
1139
+ // 'Lesotho',
1140
+ // 'Lithuania',
1141
+ // 'Luxembourg',
1142
+ // 'Latvia',
1143
+ // 'Libya',
1144
+ // 'Morocco',
1145
+ // 'Monaco',
1146
+ // 'Moldova',
1147
+ // 'Montenegro',
1148
+ // 'Saint Martin',
1149
+ // 'Madagascar',
1150
+ // 'Marshall Islands',
1151
+ // 'Macedonia',
1152
+ // 'Mali',
1153
+ // 'Myanmar [Burma]',
1154
+ // 'Mongolia',
1155
+ // 'Macao',
1156
+ // 'Northern Mariana Islands',
1157
+ // 'Martinique',
1158
+ // 'Mauritania',
1159
+ // 'Montserrat',
1160
+ // 'Malta',
1161
+ // 'Mauritius',
1162
+ // 'Maldives',
1163
+ // 'Malawi',
1164
+ // 'Mexico',
1165
+ // 'Malaysia',
1166
+ // 'Mozambique',
1167
+ // 'Namibia',
1168
+ // 'New Caledonia',
1169
+ // 'Niger',
1170
+ // 'Norfolk Island',
1171
+ // 'Nigeria',
1172
+ // 'Nicaragua',
1173
+ // 'Netherlands',
1174
+ // 'Norway',
1175
+ // 'Nepal',
1176
+ // 'Nauru',
1177
+ // 'Niue',
1178
+ // 'New Zealand',
1179
+ // 'Oman',
1180
+ // 'Panama',
1181
+ // 'Peru',
1182
+ // 'French Polynesia',
1183
+ // 'Papua New Guinea',
1184
+ // 'Philippines',
1185
+ // 'Pakistan',
1186
+ // 'Poland',
1187
+ // 'Saint Pierre and Miquelon',
1188
+ // 'Pitcairn Islands',
1189
+ // 'Puerto Rico',
1190
+ // 'Palestine',
1191
+ // 'Portugal',
1192
+ // 'Palau',
1193
+ // 'Paraguay',
1194
+ // 'Qatar',
1195
+ // 'Réunion',
1196
+ // 'Romania',
1197
+ // 'Serbia',
1198
+ // 'Russia',
1199
+ // 'Rwanda',
1200
+ // 'Saudi Arabia',
1201
+ // 'Solomon Islands',
1202
+ // 'Seychelles',
1203
+ // 'Sudan',
1204
+ // 'Sweden',
1205
+ // 'Singapore',
1206
+ // 'Saint Helena',
1207
+ // 'Slovenia',
1208
+ // 'Svalbard and Jan Mayen',
1209
+ // 'Slovakia',
1210
+ // 'Sierra Leone',
1211
+ // 'San Marino',
1212
+ // 'Senegal',
1213
+ // 'Somalia',
1214
+ // 'Suriname',
1215
+ // 'South Sudan',
1216
+ // 'São Tomé and Príncipe',
1217
+ // 'El Salvador',
1218
+ // 'Sint Maarten',
1219
+ // 'Syria',
1220
+ // 'Swaziland',
1221
+ // 'Turks and Caicos Islands',
1222
+ // 'Chad',
1223
+ // 'French Southern Territories',
1224
+ // 'Togo',
1225
+ // 'Thailand',
1226
+ // 'Tajikistan',
1227
+ // 'Tokelau',
1228
+ // 'East Timor',
1229
+ // 'Turkmenistan',
1230
+ // 'Tunisia',
1231
+ // 'Tonga',
1232
+ // 'Türkiye',
1233
+ // 'Trinidad and Tobago',
1234
+ // 'Tuvalu',
1235
+ // 'Taiwan',
1236
+ // 'Tanzania',
1237
+ // 'Ukraine',
1238
+ // 'Uganda',
1239
+ // 'U.S. Minor Outlying Islands',
1240
+ // 'United States',
1241
+ // 'Uruguay',
1242
+ // 'Uzbekistan',
1243
+ // 'Vatican City',
1244
+ // 'Saint Vincent and the Grenadines',
1245
+ // 'Venezuela',
1246
+ // 'British Virgin Islands',
1247
+ // 'U.S. Virgin Islands',
1248
+ // 'Vietnam',
1249
+ // 'Vanuatu',
1250
+ // 'Wallis and Futuna',
1251
+ // 'Samoa',
1252
+ // 'Kosovo (UNSCR 1244/99)',
1253
+ // 'Yemen',
1254
+ // 'Mayotte',
1255
+ // 'South Africa',
1256
+ // 'Zambia',
1257
+ // 'Zimbabwe',
1258
+ // 'Russia',
1259
+ // 'Czechia',
1260
+ // 'Kosovo',
1261
+ // 'Macedonia',
1262
+ // 'Former Yugoslav Republic of Macedonia, the',
1263
+ // 'Macedonia (FYR)',
1264
+ // 'England',
1265
+ // 'Scotland',
1266
+ // 'Wales',
1267
+ // 'Northern Ireland',
1268
+ // 'North Macedonia',
1269
+ // 'Congo',
1270
+ // '6',
1271
+ // '8',
1272
+ // '9',
1273
+ // '1',
1274
+ // ],
1275
+ // showAllOptions: true,
1276
+ // alwaysVisible: true,
1277
+ // },
@@ -1,4 +1,6 @@
1
1
  import installMainSearch from './config';
2
+ import installHealthSearch from './config-health';
3
+
2
4
  // import DatahubCardItem from './components/Result/DatahubCardItem';
3
5
  // import DatahubItemView from './components/ItemView/ItemView';
4
6
  //
@@ -16,7 +18,9 @@ import installMainSearch from './config';
16
18
  // }
17
19
 
18
20
  const applyConfig = (config) => {
19
- config.settings.searchlib = installMainSearch(config.settings.searchlib);
21
+ config.settings.searchlib = installHealthSearch(
22
+ installMainSearch(config.settings.searchlib),
23
+ );
20
24
 
21
25
  return config;
22
26
  };