@@ -374,6 +374,24 @@ def _(x):
374
374
},
375
375
'meta' : {'title' : 'SM Analysis Characteristics' },
376
376
},
377
+ 'facet_measurement_type' : {
378
+ 'terms' : {
379
+ 'field' : 'general.measurement_type' # noqa
380
+ },
381
+ 'meta' : {'title' : 'Measurement type' },
382
+ },
383
+ 'facet_power_mW' : {
384
+ 'terms' : {
385
+ 'field' : 'beamline_parameters.laser_parameters.power_mW' # noqa
386
+ },
387
+ 'meta' : {'title' : 'Power (in mw)' },
388
+ },
389
+ 'facet_isotope' : {
390
+ 'terms' : {
391
+ 'field' : 'general.isotope' # noqa
392
+ },
393
+ 'meta' : {'title' : 'Isotope' },
394
+ },
377
395
'facet_interpretation' : {
378
396
'terms' : {
379
397
'size' : 30 ,
@@ -402,6 +420,18 @@ def _(x):
402
420
},
403
421
'meta' : {'title' : 'Next Deadline Date' , 'type' : 'range' },
404
422
},
423
+ "facet_year" : {
424
+ "terms" : {
425
+ "field" : "general.year"
426
+ },
427
+ 'meta' : {'title' : 'Data Taking Year' },
428
+ },
429
+ "facet_wavelength_nm" : {
430
+ "terms" : {
431
+ "field" : "beamline_parameters.laser_parameters.wavelength_nm"
432
+ },
433
+ 'meta' : {'title' : 'wavelength_nm' },
434
+ },
405
435
"facet_target_date" : {
406
436
"date_histogram" : {
407
437
"field" : "initial.target_date" ,
@@ -457,6 +487,7 @@ def _(x):
457
487
format = 'yyyy' ,
458
488
end_date_math = '/y' ,
459
489
),
490
+ 'year' : terms_filter ('general.year' ),
460
491
"target_date" : range_filter (
461
492
'initial.target_date' ,
462
493
format = 'yyyy-MM-dd' ,
@@ -480,6 +511,16 @@ def _(x):
480
511
'interpretation' : terms_filter (
481
512
'basic_info.analysis_keywords.interpretation.keyword'
482
513
),
514
+ 'measurement_type' : terms_filter (
515
+ 'general.measurement_type'
516
+ ),
517
+ 'power_mW' : terms_filter (
518
+ 'beamline_parameters.laser_parameters.power_mW'
519
+ ),
520
+ 'isotope' : terms_filter (
521
+ 'general.isotope'
522
+ ),
523
+ 'wavelength' : terms_filter ("beamline_parameters.laser_parameters.wavelength_nm" ),
483
524
'further_search_categorisation' : terms_filter (
484
525
'basic_info.analysis_keywords.further_search_categorisation.keyword'
485
526
), # noqa
0 commit comments