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:
parent
c943c852ce
commit
44f4792df5
4 changed files with 38 additions and 6 deletions
|
@ -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",
|
||||
|
|
|
@ -44,16 +44,31 @@ function renderStatsOnNodeClicked(json){
|
|||
$('#num_works > .author_stats_text').text(works);
|
||||
$('#num_authors > .author_stats_text').text(persons);
|
||||
|
||||
var vivoProfileURL = $("a#profileUrl").detach();
|
||||
|
||||
$("#profile-links").empty().append(vivoProfileURL);
|
||||
|
||||
} else {
|
||||
|
||||
$("#authorName").addClass('neutral_author_name').removeClass('author_name');
|
||||
$('#num_works > .author_stats_text').text('Joint ' + works);
|
||||
$('#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"));
|
||||
$("#coAuthorshipVisUrl").attr("href", getWellFormedURLs(obj.url, relation));
|
||||
|
||||
processProfileInformation("authorName",
|
||||
"profileMoniker",
|
||||
"profileImage",
|
||||
|
|
|
@ -171,7 +171,7 @@ $(document).ready(function(){
|
|||
<h4><span id="authorName" class="neutral_author_name"> </span></h4>
|
||||
|
||||
<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>
|
||||
<span class="author_stats_text">Publication(s)</span></div>
|
||||
|
|
|
@ -171,7 +171,7 @@ $(document).ready(function(){
|
|||
|
||||
<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>
|
||||
<span class="investigator_stats_text">Grant(s)</span></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue