1. Made changes to the coautho/copi link creator utility to first test for short-uri possibility.

This commit is contained in:
cdtank 2011-05-09 15:52:05 +00:00
parent eee0c7be27
commit 0a158ae30f
7 changed files with 23 additions and 4 deletions

View file

@ -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 ;
}