diff --git a/productMods/WEB-INF/web.xml b/productMods/WEB-INF/web.xml
index d1c097e6..798391eb 100644
--- a/productMods/WEB-INF/web.xml
+++ b/productMods/WEB-INF/web.xml
@@ -105,7 +105,7 @@
edu.cornell.mannlib.vitro.webapp.servlet.setup.PelletReasonerSetup
-
+
diff --git a/productMods/js/visualization/entitycomparison/util.js b/productMods/js/visualization/entitycomparison/util.js
index 714051fc..8eaf2842 100644
--- a/productMods/js/visualization/entitycomparison/util.js
+++ b/productMods/js/visualization/entitycomparison/util.js
@@ -464,7 +464,7 @@ function getTemporalVisURL(entity) {
} else{
- result = subOrganizationTemporalGraphURL+ "&vis_mode=" + entity.visMode + "&" +
+ result = subOrganizationTemporalGraphURL + "&" +
"uri=" + entity.entityURI ;
}
@@ -857,16 +857,16 @@ function setEntityLevel(){
function getEntityVisMode(jsonData){
$.each(jsonData, function(index, val) {
- if (val.visMode == "SCHOOL" || val.visMode == "UNIVERSITY" || val.visMode == "DEPARTMENT"){
- entityLevel = "Organizations";
- } else {
+ if (val.visMode == "PERSON"){
entityLevel = "People";
+ } else {
+ entityLevel = "Organizations";
}
return;
});
/* To provide graceful degradation set entity level to a default error message.*/
- entityElevel = "ENTITY LEVEL UNDEFINED ERROR";
+ entitylevel = "ENTITY LEVEL UNDEFINED ERROR";
}
function toCamelCase(string){
diff --git a/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonErrorActivator.ftl b/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonErrorActivator.ftl
new file mode 100644
index 00000000..8ab1dbb3
--- /dev/null
+++ b/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonErrorActivator.ftl
@@ -0,0 +1,15 @@
+<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
+
+<#assign organizationURI ="${organizationURI?url}">
+<#assign organizationVivoProfileURL = "${urls.base}/individual?uri=${organizationURI}">
+
+<#-- variables passed from server-side code -->
+
+
+
+
This Organization has neither Sub-Organizations nor People. Please visit this Organization's profile page.
+
\ No newline at end of file
diff --git a/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonStandaloneActivator.ftl b/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonStandaloneActivator.ftl
index b2082105..06ef22c2 100644
--- a/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonStandaloneActivator.ftl
+++ b/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonStandaloneActivator.ftl
@@ -16,7 +16,7 @@
<#assign temporalGraphSmallIcon = '${urls.images}/visualization/temporal_vis_small_icon.jpg'>
-<#assign TemporalGraphDownloadFile = '${urls.base}${dataVisualizationURLRoot}?vis=entity_comparison&uri=${organizationURI}&labelField=label&vis_mode=UNIVERSITY'>
+<#assign TemporalGraphDownloadFile = '${urls.base}${dataVisualizationURLRoot}?vis=entity_comparison&uri=${organizationURI}&labelField=label'>
<#-- Javascript files -->
diff --git a/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/entitycomparison/EntityPublicationCountQueryRunner.java b/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/entitycomparison/EntityPublicationCountQueryRunner.java
index 73e64699..9031049e 100644
--- a/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/entitycomparison/EntityPublicationCountQueryRunner.java
+++ b/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/entitycomparison/EntityPublicationCountQueryRunner.java
@@ -183,11 +183,14 @@ public class EntityPublicationCountQueryRunner implements QueryRunner