1. Modified dependency injection bean to use proper packages.
2. Started the bifurcation process of person level into coauthor person level & copi person level. 3. Fixed person pub count sparkline to use new data structures. 4. Modified co athor vis code genrator to save some more data for use by the templates.
This commit is contained in:
parent
0fd65d4e86
commit
419c9dbfb5
8 changed files with 690 additions and 23 deletions
|
@ -514,6 +514,14 @@ public class CoAuthorshipVisCodeGenerator {
|
|||
|
||||
sparklineData.setTable(tableCode);
|
||||
|
||||
|
||||
Map<String, Integer> yearToUniqueCoauthorsCount = new HashMap<String, Integer>();
|
||||
for (Map.Entry<String, Set<Node>> currentYear : yearToUniqueCoauthors.entrySet()) {
|
||||
yearToUniqueCoauthorsCount.put(currentYear.getKey(), currentYear.getValue().size());
|
||||
}
|
||||
|
||||
sparklineData.setYearToActivityCount(yearToUniqueCoauthorsCount);
|
||||
|
||||
return divContextCode.toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -78,9 +78,6 @@ public class PersonLevelRequestHandler implements VisualizationRequestHandler {
|
|||
String egoURI = vitroRequest.getParameter(
|
||||
VisualizationFrameworkConstants.INDIVIDUAL_URI_KEY);
|
||||
|
||||
String renderMode = vitroRequest.getParameter(
|
||||
VisualizationFrameworkConstants.RENDER_MODE_KEY);
|
||||
|
||||
String visMode = vitroRequest.getParameter(
|
||||
VisualizationFrameworkConstants.VIS_MODE_KEY);
|
||||
|
||||
|
|
|
@ -172,20 +172,6 @@ public class UtilitiesRequestHandler implements VisualizationRequestHandler {
|
|||
}
|
||||
return finalThumbNailLocation;
|
||||
}
|
||||
/*
|
||||
|
||||
private TemplateResponseValues prepareUtilitiesResponse(String preparedContent, VitroRequest vreq) {
|
||||
|
||||
// response.setContentType("text/plain");
|
||||
|
||||
String utilitiesTemplate = "/visualization/utilities.ftl";
|
||||
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
body.put("utilityResopnse", preparedContent);
|
||||
|
||||
return new TemplateResponseValues(utilitiesTemplate, body);
|
||||
|
||||
}*/
|
||||
|
||||
@Override
|
||||
public Map<String, String> generateDataVisualization(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue