1. Fix for http://issues.library.cornell.edu/browse/NIHVIVO-3070 made sure that the rows in the table for person level vis were created based on whether the entity in question has egoURI or not, instead of depending upon flash vis to provide sorted list with egoNode being the first element.
2. Tentative fix for http://issues.library.cornell.edu/browse/NIHVIVO-2953 will wait to hear more to change the UX further. 3. Fix for http://issues.library.cornell.edu/browse/NIHVIVO-2523 the current placement for downloading of this csv is subject to change.
This commit is contained in:
parent
c37ae62188
commit
6c3818f84a
8 changed files with 123 additions and 43 deletions
|
@ -209,7 +209,7 @@ function visLoaded(nodes){
|
|||
var jsonedNodes = jQuery.parseJSON(nodes);
|
||||
|
||||
$(document).ready(function() {
|
||||
createTable(collaboratorTableMetadata.tableID, collaboratorTableMetadata.tableContainer, jsonedNodes.slice(1));
|
||||
createTable(collaboratorTableMetadata.tableID, collaboratorTableMetadata.tableContainer, jsonedNodes);
|
||||
});
|
||||
|
||||
}
|
||||
|
@ -238,14 +238,20 @@ function createTable(tableID, tableContainer, tableData) {
|
|||
|
||||
$.each(tableData, function(i, item){
|
||||
|
||||
number_of_works = item[collaboratorTableMetadata.jsonNumberWorksProperty];
|
||||
|
||||
var row = $('<tr>');
|
||||
|
||||
row.append($('<td>').html(item.label));
|
||||
row.append($('<td>').html(number_of_works));
|
||||
|
||||
table.append(row);
|
||||
/*
|
||||
* Make sure that we dont append a row that belong to the ego in the "co-investigator/author" table.
|
||||
* */
|
||||
if (item.url !== unEncodedEgoURI) {
|
||||
|
||||
number_of_works = item[collaboratorTableMetadata.jsonNumberWorksProperty];
|
||||
|
||||
var row = $('<tr>');
|
||||
|
||||
row.append($('<td>').html(item.label));
|
||||
row.append($('<td>').html(number_of_works));
|
||||
|
||||
table.append(row);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue