Skip to content

Commit f5482a4

Browse files
authored
Add index status facet to editor board (geonetwork#8986)
* Add index status facet * Add translations for index status facet * Add keep_nonzero to admin availableInServices facet
1 parent 311da65 commit f5482a4

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

web-ui/src/main/resources/catalog/js/CatController.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,14 @@
444444
}
445445
}
446446
},
447+
aggs: {
448+
keep_nonzero: {
449+
bucket_selector: {
450+
buckets_path: { count: "_count" },
451+
script: "params.count > 0"
452+
}
453+
}
454+
},
447455
meta: {
448456
decorator: {
449457
type: "icon",
@@ -1040,6 +1048,23 @@
10401048
collapsed: true
10411049
}
10421050
},
1051+
"indexingErrorMsg.type": {
1052+
terms: {
1053+
field: "indexingErrorMsg.type",
1054+
size: 2
1055+
},
1056+
meta: {
1057+
collapsed: true,
1058+
decorator: {
1059+
type: "icon",
1060+
prefix: "fa fa-fw ",
1061+
map: {
1062+
error: "fa-exclamation-circle",
1063+
warning: "fa-exclamation-triangle"
1064+
}
1065+
}
1066+
}
1067+
},
10431068
sourceCatalogue: {
10441069
terms: {
10451070
field: "sourceCatalogue",
@@ -1235,6 +1260,14 @@
12351260
}
12361261
}
12371262
}
1263+
},
1264+
aggs: {
1265+
keep_nonzero: {
1266+
bucket_selector: {
1267+
buckets_path: { count: "_count" },
1268+
script: "params.count > 0"
1269+
}
1270+
}
12381271
}
12391272
},
12401273
resourceType: {

web-ui/src/main/resources/catalog/locales/en-v4.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@
136136
"valid_inspire-0": "Invalid",
137137
"valid_inspire-3": "No rule applies",
138138
"valid_inspire--1": "Unknown",
139+
"facet-indexingErrorMsg.type": "Index status",
140+
"indexingErrorMsg.type-warning": "Warning",
141+
"indexingErrorMsg.type-error": "Error",
139142
"inspireApiQuotaCurrentValue": "JRC INSPIRE validator API usage information",
140143
"inspireApiQuotaValidation": "Number of validation:",
141144
"inspireApiQuotaRemaining": "Remaining:",

0 commit comments

Comments
 (0)