1. changed text in the side-bar for person level vis. Now when the "ego" person node is clicked we no longer display the co-author / co-pi vis link, since it is redundant.

This commit is contained in:
cdtank 2011-04-13 15:41:26 +00:00
parent c943c852ce
commit 44f4792df5
4 changed files with 38 additions and 6 deletions

View file

@ -46,16 +46,33 @@ function renderStatsOnNodeClicked(json){
$('#num_works > .investigator_stats_text').text(works);
$('#num_investigators > .investigator_stats_text').text(persons);
var vivoProfileURL = $("a#profileUrl").detach();
$("#profile-links").empty().append(vivoProfileURL);
} else {
$("#investigatorName").addClass('neutral_investigator_name').removeClass('investigator_name');
$('#num_works > .investigator_stats_text').text('Joint ' + works);
$('#num_investigators > .investigator_stats_text').text('Joint ' + persons);
if ($("#coInvestigationVisUrl").length > 0) {
$("#coInvestigationVisUrl").attr("href", getWellFormedURLs(obj.url, relation));
} else {
$("#profile-links")
.append(" | ")
.append('<a href="' + getWellFormedURLs(obj.url, relation)
+ '" id="coInvestigationVisUrl">Co-investigator network</a>');
}
}
$("#profileUrl").attr("href", getWellFormedURLs(obj.url, "profile"));
$("#coInvestigationVisUrl").attr("href", getWellFormedURLs(obj.url, relation));
processProfileInformation("investigatorName",
"profileMoniker",
"profileImage",