added facet by blank to menu All

This commit is contained in:
Felix Lohmeier 2019-03-08 20:22:36 +01:00
parent 465b025ace
commit 4bdc0b6fb3
2 changed files with 18 additions and 0 deletions

View File

@ -581,6 +581,7 @@
"core-views/starred-rows": "Starred Rows",
"core-views/facet-flag": "Facet by flag",
"core-views/flagged-rows": "Flagged Rows",
"core-views/blank-rows": "Blank Rows",
"core-views/edit-rows": "Edit rows",
"core-views/star-rows": "Star rows",
"core-views/unstar-rows": "Unstar rows",

View File

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