1. Modified style of person pub count vis.
2. Modified the logic that generated download links for csv files. 3. Modified IE specific css code.
This commit is contained in:
parent
eae82a00b4
commit
8e05bf4de4
6 changed files with 54 additions and 37 deletions
|
@ -49,7 +49,7 @@ public class TestJava {
|
|||
System.out.println(sampleBlurns);
|
||||
for (String blurb : sampleBlurns) {
|
||||
|
||||
// System.out.println(blurb.substring(0, 10));
|
||||
System.out.println(blurb.contains("author"));
|
||||
}
|
||||
Map<String, Integer> yearToPublicationCount = new TreeMap<String, Integer>();
|
||||
|
||||
|
|
|
@ -518,9 +518,14 @@ public class VisualizationCodeGenerator {
|
|||
|
||||
if (yearToUniqueCoauthorsCount.size() > 0) {
|
||||
|
||||
|
||||
String secondaryContextPath = "";
|
||||
if (!contextPath.contains("/admin/visQuery")) {
|
||||
secondaryContextPath = "/admin/visQuery";
|
||||
}
|
||||
|
||||
|
||||
String downloadURL = contextPath
|
||||
// + "/admin/visQuery"
|
||||
+ secondaryContextPath
|
||||
+ "?" + VisualizationFrameworkConstants.INDIVIDUAL_URI_URL_HANDLE
|
||||
+ "=" + URLEncoder.encode(individualURIParam,
|
||||
VisualizationController.URL_ENCODING_SCHEME).toString()
|
||||
|
@ -554,8 +559,13 @@ public class VisualizationCodeGenerator {
|
|||
String fullTimelineLink;
|
||||
if (yearToUniqueCoauthorsCount.size() > 0) {
|
||||
|
||||
String secondaryContextPath = "";
|
||||
if (!contextPath.contains("/admin/visQuery")) {
|
||||
secondaryContextPath = "/admin/visQuery";
|
||||
}
|
||||
|
||||
String fullTimelineNetworkURL = contextPath
|
||||
+ "/admin/visQuery"
|
||||
+ secondaryContextPath
|
||||
+ "?"
|
||||
+ VisualizationFrameworkConstants.INDIVIDUAL_URI_URL_HANDLE
|
||||
+ "=" + URLEncoder.encode(individualURIParam,
|
||||
|
|
|
@ -152,7 +152,7 @@ public class VisualizationCodeGenerator {
|
|||
"table.sparkline_wrapper_table td, th {" +
|
||||
" vertical-align: bottom;" +
|
||||
"}" +
|
||||
".vis_link {" +
|
||||
".vis_link a{" +
|
||||
" padding-top: 5px;" +
|
||||
"}" +
|
||||
"td.sparkline_number { text-align:right; padding-right:5px; }" +
|
||||
|
@ -530,9 +530,14 @@ public class VisualizationCodeGenerator {
|
|||
|
||||
if (yearToPublicationCount.size() > 0) {
|
||||
|
||||
|
||||
String secondaryContextPath = "";
|
||||
if (!contextPath.contains("/admin/visQuery")) {
|
||||
secondaryContextPath = "/admin/visQuery";
|
||||
}
|
||||
|
||||
|
||||
String downloadURL = contextPath
|
||||
// + "/admin/visQuery"
|
||||
+ secondaryContextPath
|
||||
+ "?" + VisualizationFrameworkConstants.INDIVIDUAL_URI_URL_HANDLE
|
||||
+ "=" + URLEncoder.encode(individualURIParam,
|
||||
VisualizationController.URL_ENCODING_SCHEME).toString()
|
||||
|
@ -561,8 +566,13 @@ public class VisualizationCodeGenerator {
|
|||
String fullTimelineLink;
|
||||
if (yearToPublicationCount.size() > 0) {
|
||||
|
||||
String secondaryContextPath = "";
|
||||
if (!contextPath.contains("/admin/visQuery")) {
|
||||
secondaryContextPath = "/admin/visQuery";
|
||||
}
|
||||
|
||||
String fullTimelineNetworkURL = contextPath
|
||||
+ "/admin/visQuery"
|
||||
+ secondaryContextPath
|
||||
+ "?"
|
||||
+ VisualizationFrameworkConstants.INDIVIDUAL_URI_URL_HANDLE
|
||||
+ "=" + URLEncoder.encode(individualURIParam,
|
||||
|
@ -588,7 +598,7 @@ public class VisualizationCodeGenerator {
|
|||
|
||||
}
|
||||
|
||||
divContextCode.append("<p class=\"vis_link\">" + fullTimelineLink + "</p>");
|
||||
divContextCode.append("<span class=\"vis_link\">" + fullTimelineLink + "</span>");
|
||||
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
|
@ -638,9 +648,6 @@ public class VisualizationCodeGenerator {
|
|||
}
|
||||
|
||||
dataTable.append("</tbody>\n" +
|
||||
// "<tfoot>" +
|
||||
// "<tr><td colspan='2'>*DNA - Data not available</td></tr>" +
|
||||
// "</tfoot>\n" +
|
||||
"</table>\n");
|
||||
|
||||
|
||||
|
|
|
@ -124,13 +124,6 @@ public class VisualizationRequestHandler {
|
|||
log);
|
||||
|
||||
|
||||
System.out.println("ft url - " + valueObjectContainer.getFullTimelineNetworkLink());
|
||||
System.out.println("dnld fl - " + valueObjectContainer.getDownloadDataLink());
|
||||
System.out.println("table - " + valueObjectContainer.getTable());
|
||||
System.out.println("min - " + valueObjectContainer.getEarliestRenderedPublicationYear());
|
||||
System.out.println("max - " + valueObjectContainer.getLatestRenderedPublicationYear());
|
||||
|
||||
|
||||
/*
|
||||
* This is side-effecting because the response of this method is just to redirect to
|
||||
* a page with visualization on it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue