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:
parent
5c43a368a5
commit
239b6d40d7
3 changed files with 38 additions and 2 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue