1. Made changes to the coautho/copi link creator utility to first test for short-uri possibility.
This commit is contained in:
parent
eee0c7be27
commit
0a158ae30f
7 changed files with 23 additions and 4 deletions
|
@ -79,7 +79,7 @@
|
|||
-->
|
||||
|
||||
<entry key="entity_comparison">
|
||||
<ref bean="entity_comparison"></ref>
|
||||
<ref bean="pub_temporal"></ref>
|
||||
</entry>
|
||||
|
||||
<entry key="pub_temporal">
|
||||
|
@ -87,7 +87,7 @@
|
|||
</entry>
|
||||
|
||||
<entry key="publication-graph">
|
||||
<ref bean="entity_comparison"></ref>
|
||||
<ref bean="pub_temporal"></ref>
|
||||
</entry>
|
||||
|
||||
<entry key="coprincipalinvestigator">
|
||||
|
@ -95,7 +95,7 @@
|
|||
</entry>
|
||||
|
||||
<entry key="entity_grant_count">
|
||||
<ref bean="entity_grant_count"></ref>
|
||||
<ref bean="grant_temporal"></ref>
|
||||
</entry>
|
||||
|
||||
<entry key="grant_temporal">
|
||||
|
@ -103,7 +103,7 @@
|
|||
</entry>
|
||||
|
||||
<entry key="grant-graph">
|
||||
<ref bean="entity_grant_count"></ref>
|
||||
<ref bean="grant_temporal"></ref>
|
||||
</entry>
|
||||
|
||||
</map>
|
||||
|
|
|
@ -762,7 +762,21 @@ function getVIVOURL(entityURI){
|
|||
}
|
||||
|
||||
function getTemporalVisURL(entityURI) {
|
||||
if (vivoDefaultNamespace) {
|
||||
|
||||
/*
|
||||
* This means that the URI of the entity is made up of default namespace so lets make the
|
||||
* short url, shorter!
|
||||
* */
|
||||
if (entityURI.search(vivoDefaultNamespace) === 0) {
|
||||
return temporalGraphCommonURL + entityURI.substring(vivoDefaultNamespace.length);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Default short url template involves using long uri, this in case the entity is not based off
|
||||
* of default namespace.
|
||||
* */
|
||||
return temporalGraphCommonURL + "?uri=" + entityURI ;
|
||||
}
|
||||
|
||||
|
|
|
@ -107,6 +107,7 @@ var subOrganizationGrantTemporalGraphCommonURL = "${subOrganizationGrantTemporal
|
|||
var subOrganizationPublicationTemporalGraphCommonURL = "${subOrganizationPublicationTemporalGraphCommonURL}";
|
||||
|
||||
var jsonString = '${jsonContent!}';
|
||||
var vivoDefaultNamespace = '${vivoDefaultNamespace!}';
|
||||
var organizationLabel = '${organizationLabel}';
|
||||
var organizationVIVOProfileURL = "${organizationVivoProfileURL}";
|
||||
|
||||
|
|
|
@ -259,6 +259,7 @@ public class EntityPublicationCountRequestHandler implements
|
|||
body.put("title", organizationLabel + " - Temporal Graph Visualization");
|
||||
body.put("organizationURI", entityURI);
|
||||
body.put("organizationLocalName", UtilityFunctions.getIndividualLocalName(entityURI, vreq));
|
||||
body.put("vivoDefaultNamespace", vreq.getWebappDaoFactory().getDefaultNamespace());
|
||||
body.put("organizationLabel", organizationLabel);
|
||||
|
||||
return new TemplateResponseValues(standaloneTemplate, body);
|
||||
|
|
|
@ -290,6 +290,7 @@ public class TemporalGrantVisualizationRequestHandler implements
|
|||
body.put("title", organizationLabel + " - Temporal Graph Visualization");
|
||||
body.put("organizationURI", entityURI);
|
||||
body.put("organizationLocalName", UtilityFunctions.getIndividualLocalName(entityURI, vreq));
|
||||
body.put("vivoDefaultNamespace", vreq.getWebappDaoFactory().getDefaultNamespace());
|
||||
body.put("organizationLabel", organizationLabel);
|
||||
|
||||
return new TemplateResponseValues(standaloneTemplate, body);
|
||||
|
|
|
@ -282,6 +282,7 @@ public class TemporalPublicationVisualizationRequestHandler implements
|
|||
body.put("title", organizationLabel + " - Temporal Graph Visualization");
|
||||
body.put("organizationURI", entityURI);
|
||||
body.put("organizationLocalName", UtilityFunctions.getIndividualLocalName(entityURI, vreq));
|
||||
body.put("vivoDefaultNamespace", vreq.getWebappDaoFactory().getDefaultNamespace());
|
||||
body.put("organizationLabel", organizationLabel);
|
||||
|
||||
return new TemplateResponseValues(standaloneTemplate, body);
|
||||
|
|
|
@ -257,6 +257,7 @@ public class EntityGrantCountRequestHandler implements
|
|||
body.put("title", organizationLabel + " - Temporal Graph Visualization");
|
||||
body.put("organizationURI", entityURI);
|
||||
body.put("organizationLocalName", UtilityFunctions.getIndividualLocalName(entityURI, vreq));
|
||||
body.put("vivoDefaultNamespace", vreq.getWebappDaoFactory().getDefaultNamespace());
|
||||
body.put("organizationLabel", organizationLabel);
|
||||
|
||||
return new TemplateResponseValues(standaloneTemplate, body);
|
||||
|
|
Loading…
Add table
Reference in a new issue