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 @@ -

${i18n().what_to_compare}

- ${i18n().organizations_capitalized} | - ${i18n().people_capitalized} +

${i18n().what_to_compare}

+ ${i18n().organizations_capitalized} | + ${i18n().people_capitalized} | + ${i18n().view_all} ${i18n().info_icon} @@ -118,4 +119,4 @@   ${currentParameterObject.name} ${i18n().with_known_year}
  ${currentParameterObject.name} ${i18n().from_current_incomplete_year}
- \ No newline at end of file + diff --git a/webapp/src/main/webapp/templates/freemarker/visualization/entitycomparison/entityComparisonOnGrantsStandalone.ftl b/webapp/src/main/webapp/templates/freemarker/visualization/entitycomparison/entityComparisonOnGrantsStandalone.ftl index 2ef0a962..216fad0c 100644 --- a/webapp/src/main/webapp/templates/freemarker/visualization/entitycomparison/entityComparisonOnGrantsStandalone.ftl +++ b/webapp/src/main/webapp/templates/freemarker/visualization/entitycomparison/entityComparisonOnGrantsStandalone.ftl @@ -46,9 +46,6 @@ $(document).ready(function () { <#assign currentParameterObject = grantParameter>
-<#if (builtFromCacheTime??) > -
${i18n().using_cache_time} ${builtFromCacheTime?time} (${builtFromCacheTime?date?string("MMM dd yyyy")})
- <#include "entityComparisonBody.ftl"> @@ -59,4 +56,4 @@ via JavaScript. --> <#include "entityGrantComparisonError.ftl"> -
\ No newline at end of file +