NIVIVO - 1732 For temporal graph vis if an organization does not have any publications then there is no option to switch to "by Grants" mode

This commit is contained in:
bkoniden 2011-01-19 21:45:43 +00:00
parent 5c43a368a5
commit 239b6d40d7
3 changed files with 38 additions and 2 deletions

View file

@ -164,13 +164,15 @@ public class EntityPublicationCountRequestHandler implements
VitroRequest vitroRequest, String entityURI) {
Portal portal = vitroRequest.getPortal();
String visualization = "ENTITY_PUB_COUNT";
String standaloneTemplate = "entityComparisonErrorActivator.ftl";
Map<String, Object> body = new HashMap<String, Object>();
body.put("portalBean", portal);
body.put("title", "Temporal Graph Visualization");
body.put("organizationURI", entityURI);
body.put("visualization", visualization);
return new TemplateResponseValues(standaloneTemplate, body);
}

View file

@ -163,12 +163,14 @@ public class EntityGrantCountRequestHandler implements
VitroRequest vitroRequest, String entityURI) {
Portal portal = vitroRequest.getPortal();
String visualization = "ENTITY_GRANT_COUNT";
String standaloneTemplate = "entityComparisonErrorActivator.ftl";
Map<String, Object> body = new HashMap<String, Object>();
body.put("portalBean", portal);
body.put("title", "Temporal Graph Visualization");
body.put("organizationURI", entityURI);
body.put("visualization", visualization);
return new TemplateResponseValues(standaloneTemplate, body);