diff --git a/webapp/src/main/webapp/js/visualization/entitycomparison/gui-event-manager.js b/webapp/src/main/webapp/js/visualization/entitycomparison/gui-event-manager.js index da8b8f78..3d5bbb6d 100644 --- a/webapp/src/main/webapp/js/visualization/entitycomparison/gui-event-manager.js +++ b/webapp/src/main/webapp/js/visualization/entitycomparison/gui-event-manager.js @@ -164,13 +164,21 @@ $(".filter-option").live('click', function() { if ($(this).attr('id') === 'people-filter') { $("#organizations-filter").removeClass('active-filter'); + $("#no-filter").removeClass('active-filter'); temporalGraphProcessor.currentSelectedFilter = "PEOPLE"; } else if ($(this).attr('id') === 'organizations-filter') { $("#people-filter").removeClass('active-filter'); + $("#no-filter").removeClass('active-filter'); temporalGraphProcessor.currentSelectedFilter = "ORGANIZATIONS"; } + else if ($(this).attr('id') === 'no-filter') { + + $("#people-filter").removeClass('active-filter'); + $("#organizations-filter").removeClass('active-filter'); + temporalGraphProcessor.currentSelectedFilter = "NONE"; + } $(this).addClass('active-filter'); @@ -639,11 +647,6 @@ temporalGraphProcessor = { }); } - /* - * Reset the "is default selections maintained" value. - * */ - temporalGraphProcessor.isDefaultSelectionsMaintained = true; - clearRenderedObjects(); initConstants(); @@ -709,4 +712,4 @@ temporalGraphProcessor = { } $("#copy-vis-viewlink input[type='text']").val(getCurrentParameterVisViewLink()); } -} \ No newline at end of file +} diff --git a/webapp/src/main/webapp/js/visualization/entitycomparison/util.js b/webapp/src/main/webapp/js/visualization/entitycomparison/util.js index 9406feb9..6e00e493 100644 --- a/webapp/src/main/webapp/js/visualization/entitycomparison/util.js +++ b/webapp/src/main/webapp/js/visualization/entitycomparison/util.js @@ -221,7 +221,10 @@ var DatatableCustomFilters = { var currentEntityVisMode = URIToEntityRecord[entityURI].visMode; - if (currentEntityVisMode === "ORGANIZATION" + if (temporalGraphProcessor.currentSelectedFilter === "NONE") { + return true; + } + else if (currentEntityVisMode === "ORGANIZATION" && temporalGraphProcessor.currentSelectedFilter === "ORGANIZATIONS") { return true; } else if (currentEntityVisMode === "PERSON" @@ -1065,7 +1068,7 @@ function prepareTableForDataTablePagination(jsonData, dataTableParams){ // console.log(processJSONData.currentEntityLevel); - if (processJSONData.currentEntityLevel.toUpperCase() === "ORGANIZATIONS & PEOPLE") { + if (processJSONData.currentEntityLevel.toUpperCase() === "ORGANIZATIONS AND PEOPLE") { $.fn.dataTableExt.afnFiltering.push(DatatableCustomFilters.peopleOrOrganizations); } @@ -1189,7 +1192,7 @@ function prepareTableForDataTablePagination(jsonData, dataTableParams){ */ function reloadDataTablePagination(preselectedEntityURIs, jsonData){ - if (processJSONData.currentEntityLevel.toUpperCase() === "ORGANIZATIONS & PEOPLE") { + if (processJSONData.currentEntityLevel.toUpperCase() === "ORGANIZATIONS AND PEOPLE") { /* * This will make sure that duplicate filters are not added. diff --git a/webapp/src/main/webapp/templates/freemarker/visualization/entitycomparison/entityComparisonBody.ftl b/webapp/src/main/webapp/templates/freemarker/visualization/entitycomparison/entityComparisonBody.ftl index 77eeab45..d11ad33f 100644 --- a/webapp/src/main/webapp/templates/freemarker/visualization/entitycomparison/entityComparisonBody.ftl +++ b/webapp/src/main/webapp/templates/freemarker/visualization/entitycomparison/entityComparisonBody.ftl @@ -69,10 +69,11 @@ -