diff --git a/main/webapp/modules/core/scripts/dialogs/expression-preview-dialog.js b/main/webapp/modules/core/scripts/dialogs/expression-preview-dialog.js index dcc3c5480..5a1287d9f 100644 --- a/main/webapp/modules/core/scripts/dialogs/expression-preview-dialog.js +++ b/main/webapp/modules/core/scripts/dialogs/expression-preview-dialog.js @@ -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'. " + diff --git a/main/webapp/modules/core/scripts/views/data-table/menu-facets.js b/main/webapp/modules/core/scripts/views/data-table/menu-facets.js index 660908289..a4098becc 100644 --- a/main/webapp/modules/core/scripts/views/data-table/menu-facets.js +++ b/main/webapp/modules/core/scripts/views/data-table/menu-facets.js @@ -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",