added facet "Count non-blank values/column" to menu All

This commit is contained in:
Felix Lohmeier 2019-03-08 20:25:38 +01:00
parent 4bdc0b6fb3
commit 229b049f23
2 changed files with 19 additions and 0 deletions

View File

@ -582,6 +582,8 @@
"core-views/facet-flag": "Facet by flag",
"core-views/flagged-rows": "Flagged Rows",
"core-views/blank-rows": "Blank Rows",
"core-views/count-non-blank-values": "Count non-blank values/column",
"core-views/non-blank-values": "Non-blank values per column",
"core-views/edit-rows": "Edit rows",
"core-views/star-rows": "Star rows",
"core-views/unstar-rows": "Unstar rows",

View File

@ -667,6 +667,23 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
}
);
}
},
{
label: $.i18n('core-views/count-non-blank-values'),
id: "core/count-non-blank-values",
click: function() {
ui.browsingEngine.addFacet(
"list",
{
"name" : $.i18n('core-views/non-blank-values'),
"columnName" : "",
"expression" : "filter(row.columnNames,cn,isNonBlank(cells[cn].value))"
},
{
"scroll" : false
}
);
}
}
]
},