Applied patch for issue 398: Patch: duplicates facet.
Added mention of "record" field for "row" variable in expression preview dialog's help. git-svn-id: http://google-refine.googlecode.com/svn/trunk@2084 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
746ca93b1e
commit
d07a3f3f52
@ -194,7 +194,7 @@ ExpressionPreviewDialog.Widget.prototype._renderHelp = function(data) {
|
||||
description: "The current cell's value. This is a shortcut for 'cell.value'."
|
||||
},
|
||||
{ name: "row",
|
||||
description: "The current row. It has 4 fields: 'flagged', 'starred', 'index', and 'cells'."
|
||||
description: "The current row. It has 5 fields: 'flagged', 'starred', 'index', 'cells', and 'record'."
|
||||
},
|
||||
{ name: "cells",
|
||||
description: "The cells of the current row. This is a shortcut for 'row.cells'. " +
|
||||
|
@ -138,6 +138,22 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
||||
}
|
||||
},
|
||||
{},
|
||||
{
|
||||
id: "core/duplicates-facet",
|
||||
label: "Duplicates facet",
|
||||
click: function() {
|
||||
ui.browsingEngine.addFacet(
|
||||
"list",
|
||||
{
|
||||
"name": column.name,
|
||||
"columnName": column.name,
|
||||
"expression": "facetCount(value, 'value', '" +
|
||||
column.name + "') > 1"
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
{},
|
||||
{
|
||||
id: "core/numeric-log-facet",
|
||||
label: "Numeric log facet",
|
||||
|
Loading…
Reference in New Issue
Block a user