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_works > .investigator_stats_text').text(works);
$('#num_investigators > .investigator_stats_text').text(persons); $('#num_investigators > .investigator_stats_text').text(persons);
var vivoProfileURL = $("a#profileUrl").detach();
$("#profile-links").empty().append(vivoProfileURL);
} else { } else {
$("#investigatorName").addClass('neutral_investigator_name').removeClass('investigator_name'); $("#investigatorName").addClass('neutral_investigator_name').removeClass('investigator_name');
$('#num_works > .investigator_stats_text').text('Joint ' + works); $('#num_works > .investigator_stats_text').text('Joint ' + works);
$('#num_investigators > .investigator_stats_text').text('Joint ' + persons); $('#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")); $("#profileUrl").attr("href", getWellFormedURLs(obj.url, "profile"));
$("#coInvestigationVisUrl").attr("href", getWellFormedURLs(obj.url, relation));
processProfileInformation("investigatorName", processProfileInformation("investigatorName",
"profileMoniker", "profileMoniker",
"profileImage", "profileImage",

View file

@ -44,16 +44,31 @@ function renderStatsOnNodeClicked(json){
$('#num_works > .author_stats_text').text(works); $('#num_works > .author_stats_text').text(works);
$('#num_authors > .author_stats_text').text(persons); $('#num_authors > .author_stats_text').text(persons);
var vivoProfileURL = $("a#profileUrl").detach();
$("#profile-links").empty().append(vivoProfileURL);
} else { } else {
$("#authorName").addClass('neutral_author_name').removeClass('author_name'); $("#authorName").addClass('neutral_author_name').removeClass('author_name');
$('#num_works > .author_stats_text').text('Joint ' + works); $('#num_works > .author_stats_text').text('Joint ' + works);
$('#num_authors > .author_stats_text').text('Joint ' + persons); $('#num_authors > .author_stats_text').text('Joint ' + persons);
if ($("#coAuthorshipVisUrl").length > 0) {
$("#coAuthorshipVisUrl").attr("href", getWellFormedURLs(obj.url, relation));
} else {
$("#profile-links")
.append(" | ")
.append('<a href="' + getWellFormedURLs(obj.url, relation)
+ '" id="coAuthorshipVisUrl">Co-author network</a>');
}
} }
$("#profileUrl").attr("href", getWellFormedURLs(obj.url, "profile")); $("#profileUrl").attr("href", getWellFormedURLs(obj.url, "profile"));
$("#coAuthorshipVisUrl").attr("href", getWellFormedURLs(obj.url, relation));
processProfileInformation("authorName", processProfileInformation("authorName",
"profileMoniker", "profileMoniker",
"profileImage", "profileImage",
@ -63,7 +78,7 @@ function renderStatsOnNodeClicked(json){
} else{ } else {
$("#profileUrl").attr("href","#"); $("#profileUrl").attr("href","#");
$("#coAuthorshipVisUrl").attr("href","#"); $("#coAuthorshipVisUrl").attr("href","#");
} }

View file

@ -171,7 +171,7 @@ $(document).ready(function(){
<h4><span id="authorName" class="neutral_author_name">&nbsp;</span></h4> <h4><span id="authorName" class="neutral_author_name">&nbsp;</span></h4>
<em id="profileMoniker" class="moniker"></em> <em id="profileMoniker" class="moniker"></em>
<div><a href="#" id="profileUrl">VIVO profile</a> | <a href="#" id="coAuthorshipVisUrl">Co-author network</a></div> <div id="profile-links"><a href="#" id="profileUrl">VIVO profile</a></div>
<div class="author_stats" id="num_works"><span class="numbers" style="width: 40px;" id="works"></span>&nbsp;&nbsp; <div class="author_stats" id="num_works"><span class="numbers" style="width: 40px;" id="works"></span>&nbsp;&nbsp;
<span class="author_stats_text">Publication(s)</span></div> <span class="author_stats_text">Publication(s)</span></div>

View file

@ -171,7 +171,7 @@ $(document).ready(function(){
<em id="profileMoniker" class="moniker"></em> <em id="profileMoniker" class="moniker"></em>
<div><a href="#" id="profileUrl">VIVO profile</a> | <a href="#" id="coInvestigationVisUrl">Co-investigator network</a></div> <div id="profile-links"><a href="#" id="profileUrl">VIVO profile</a></div>
<div class="investigator_stats" id="num_works"><span class="numbers" style="width: 40px;" id="works"></span>&nbsp;&nbsp; <div class="investigator_stats" id="num_works"><span class="numbers" style="width: 40px;" id="works"></span>&nbsp;&nbsp;
<span class="investigator_stats_text">Grant(s)</span></div> <span class="investigator_stats_text">Grant(s)</span></div>