vivo/productMods/js/visualization/sparkline.js
cdtank a127d6337d 1. Made style changes for the indivudal page in the sparkline visualization section.
2. Moved co-author n/w link from publication sparkline template to indiv*-sparkline*.ftl
2011-01-04 18:08:21 +00:00

37 lines
No EOL
1 KiB
JavaScript

/* $This file is distributed under the terms of the license in /doc/license.txt$ */
/* Javascript for sparkline visualization on person profile page */
var visualization = {
renderCoAuthor: function(url) {
var containerIdCoAuthor = 'vis_container_coauthor',
containerCoAuthor = $('#' + containerIdCoAuthor);
$.ajax({
url: url,
data: {
'render_mode': 'dynamic',
'vis': 'person_pub_count',
'vis_mode': 'short',
'container': containerIdCoAuthor
},
dataType: 'html',
success:function(data){
if ($.trim(data) != "") {
containerCoAuthor.html(data);
containerCoAuthor.children("#pub_count_short_sparkline_vis");
/* Since there are publications there are chances that there will be co-authors as well, so show the
* co-author network icon.*/
$("#coauthorship_link_container").show();
}
}
});
}
};
$(document).ready(function() {
visualization.renderCoAuthor(visualizationUrl);
});