Merge pull request #2297 from jamessspanggg/2220-blank-per-column

[#2220] Add facet for blank values/records per column
This commit is contained in:
Antonin Delpeuch 2020-01-24 10:16:04 +01:00 committed by GitHub
commit fe147328f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 42 additions and 0 deletions

View File

@ -589,6 +589,8 @@
"core-views/facet-flag": "Facet by flag",
"core-views/flagged-rows": "Flagged Rows",
"core-views/blank-rows": "Blank Rows",
"core-views/blank-values": "Blank values per column",
"core-views/blank-records": "Blank records per column",
"core-views/non-blank-values": "Non-blank values per column",
"core-views/non-blank-records": "Non-blank records per column",
"core-views/edit-rows": "Edit rows",

View File

@ -718,6 +718,8 @@
"core-dialogs/no-clustering-functions-and-distances": "クラスタリング関数が読み込めませんでした。",
"core-recon/add-std-srv": "標準サービスを追加",
"core-views/blank-rows": "空白行",
"core-views/blank-values": "カラムの空白値",
"core-views/blank-records": "カラムの空白レコード",
"core-views/non-blank-values": "カラムの非空白値",
"core-views/non-blank-records": "カラムの非空白レコード",
"core-index/tags": "タグ:",

View File

@ -598,6 +598,10 @@
"core-views/no-settings": "此属性没有可用设置.",
"core-views/extend-not-reconciled": "此操作仅在调和列上可用.",
"core-views/extend-not-supported": "此和解服务不支持数据扩展. 尝试删除服务并添加它. 如果问题仍然存在,请与服务提供商联系.",
"core-views/blank-values": "每列空白值",
"core-views/blank-records": "每条记录空白值",
"core-views/non-blank-values": "每列非空白值",
"core-views/non-blank-records": "每条记录非空白值",
"core-buttons/cancel": "取消",
"core-buttons/ok": "  确定  ",
"core-buttons/import-proj": "导入项目",

View File

@ -668,6 +668,40 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
);
}
},
{
label: $.i18n('core-views/blank-values'),
id: "core/blank-values",
click: function() {
ui.browsingEngine.addFacet(
"list",
{
"name" : $.i18n('core-views/blank-values'),
"columnName" : "",
"expression" : "filter(row.columnNames,cn,isBlank(cells[cn].value))"
},
{
"scroll" : false
}
);
}
},
{
label: $.i18n('core-views/blank-records'),
id: "core/blank-records",
click: function() {
ui.browsingEngine.addFacet(
"list",
{
"name" : $.i18n('core-views/blank-records'),
"columnName" : "",
"expression" : "filter(row.columnNames,cn,isBlank(if(row.record.fromRowIndex==row.index,row.record.cells[cn].value.join(\"\"),true)))"
},
{
"scroll" : false
}
);
}
},
{
label: $.i18n('core-views/non-blank-values'),
id: "core/non-blank-values",