diff --git a/productMods/templates/freemarker/visualization/coauthorship/coAuthorship.ftl b/productMods/templates/freemarker/visualization/coauthorship/coAuthorship.ftl index c6788461..c6a894a2 100644 --- a/productMods/templates/freemarker/visualization/coauthorship/coAuthorship.ftl +++ b/productMods/templates/freemarker/visualization/coauthorship/coAuthorship.ftl @@ -1,2 +1,241 @@ <#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> +<#assign visImageContextPath = "${urls.images}/visualization/" > +<#assign loadingImageLink = "${visImageContextPath}ajax-loader.gif"> + +<#assign egoVivoProfileURL = "${urls.base}/individual?uri=${egoURI}"> + +<#assign egoSparklineDataURL = '${urls.base}${dataVisualizationURLRoot}?vis=person_pub_count&uri=${egoURI}&labelField=label'> +<#assign coAuthorshipDownloadFile = '${urls.base}${dataVisualizationURLRoot}?vis=person_level&uri=${egoURI}&labelField=label'> + +
+ + +<#-- + +Support for this has ended. Only created for the VIVO Conf Demo. + + + + + +
+ + + <%-- Image --%> +
+ + <%-- Label --%> +

+ + <%-- Moniker--%> + + + +
+ + + + +
This information is based solely on publications which have been loaded into the VIVO system. + This may only be a small sample of the person's total work.
+ +

Co-Author Network + + + (GraphML File)

+
+ + + + + + + + Currently there are no ${authorsText} papers for + this author in the VIVO database. + +
+ + + + Currently there are no papers for + this author in the VIVO database. + + + +
+ + + +
+ + +
+ +
+ +
+ +
+
+
+ +
 
+ +
+
VIVO profile | Co-author network
+
+
  Publication(s)
+
  Co-author(s)
+ + + + +
+ +
+ +
+ + + +
+ +

Table

+ + + +
+

+
+ +
+ +
+ +
+
+ +
+ + + +--> \ No newline at end of file diff --git a/productMods/templates/freemarker/visualization/personlevel/personLevelInjectHead.ftl b/productMods/templates/freemarker/visualization/personlevel/personLevelInjectHead.ftl index d3f9e354..8a81cce3 100644 --- a/productMods/templates/freemarker/visualization/personlevel/personLevelInjectHead.ftl +++ b/productMods/templates/freemarker/visualization/personlevel/personLevelInjectHead.ftl @@ -1,17 +1,53 @@ <#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> -<#assign visualizationURLRoot ="/visualization"> - +<#assign standardVisualizationURLRoot ="/visualizationfm"> +<#assign ajaxVisualizationURLRoot ="/visualizationAjax"> +<#assign dataVisualizationURLRoot ="/visualizationData"> <#assign egoURI ="${egoURIParam?url}"> - -<#assign egoCoAuthorshipDataFeederURL = '${urls.base}${visualizationURLRoot}?vis=coauthorship&uri=${egoURI}&render_mode=data&labelField=label'> - -<#assign egoCoPIDataFeederURL = '${urls.base}${visualizationURLRoot}?vis=coprincipalinvestigator&uri=${egoURI}&render_mode=data&labelField=label'> - -<#assign egoCoAuthorsListDataFileURL = '${urls.base}${visualizationURLRoot}?vis=person_level&uri=${egoURI}&render_mode=data&vis_mode=coauthors'> - +<#assign egoCoAuthorshipDataFeederURL = '${urls.base}${dataVisualizationURLRoot}?vis=coauthorship&uri=${egoURI}&labelField=label'> +<#assign egoCoPIDataFeederURL = '${urls.base}${dataVisualizationURLRoot}?vis=coprincipalinvestigator&uri=${egoURI}&labelField=label'> +<#assign egoCoAuthorsListDataFileURL = '${urls.base}${dataVisualizationURLRoot}?vis=person_level&uri=${egoURI}&vis_mode=coauthors'> <#assign swfLink = '${urls.images}/visualization/coauthorship/EgoCentric.swf'> +<#assign adobeFlashDetector = '${urls.base}/js/visualization/coauthorship/AC_OETags.js'> +<#assign googleVisualizationAPI = 'http://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22visualization%22%2C%22version%22%3A%221%22%2C%22packages%22%3A%5B%22areachart%22%2C%22imagesparkline%22%5D%7D%5D%7D'> +<#assign coAuthorShipJavaScript = '${urls.base}/js/visualization/personlevel/person_level.js'> - - - + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/coauthorship/CoAuthorshipRequestHandler.java b/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/coauthorship/CoAuthorshipRequestHandler.java index d9084a95..0dfbe7d5 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/coauthorship/CoAuthorshipRequestHandler.java +++ b/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/coauthorship/CoAuthorshipRequestHandler.java @@ -91,7 +91,11 @@ public class CoAuthorshipRequestHandler implements VisualizationRequestHandler { DataSource dataSource) throws MalformedQueryParametersException { - String egoURI = vitroRequest.getParameter( + /* + * Support for this has ceased to exist. Standalone mode was created only for demo + * purposes for VIVO Conf. + * */ +/* String egoURI = vitroRequest.getParameter( VisualizationFrameworkConstants .INDIVIDUAL_URI_KEY); @@ -104,10 +108,13 @@ public class CoAuthorshipRequestHandler implements VisualizationRequestHandler { return prepareStandaloneResponse(egoURI, authorNodesAndEdges, - vitroRequest); - - + vitroRequest);*/ + + throw new UnsupportedOperationException("CoAuthorship does not provide Standalone Response."); + } + + private String getCoauthorsPerYearCSVContent(Map> yearToCoauthors) {