NIHVIVO-2033 Added test in emptyResultSet() to handle the rare (but possible) occurrence where a class is rendered in the list due to having an individual count > 0, but for some reason the Search Index has not been rebuilt, so those individuals are not returned by the JSON service.
This commit is contained in:
parent
a9cf814054
commit
b6170b6f9d
1 changed files with 5 additions and 1 deletions
|
@ -231,7 +231,11 @@ var browseByVClass = {
|
|||
this.wipeSlate();
|
||||
this.selectedAlpha(alpha);
|
||||
|
||||
nothingToSeeHere = '<p class="no-individuals">There are no '+ vclass.name +' individuals whose name starts with <em>'+ alpha.toUpperCase() +'</em>.</p> <p class="no-individuals">Please try another letter or browse all.</p>';
|
||||
if ( alpha != "all" ) {
|
||||
nothingToSeeHere = '<p class="no-individuals">There are no '+ vclass.name +' individuals whose name starts with <em>'+ alpha.toUpperCase() +'</em>.</p> <p class="no-individuals">Please try another letter or browse all.</p>';
|
||||
} else {
|
||||
nothingToSeeHere = '<p class="no-individuals">There are no '+ vclass.name +' individuals in the system.</p> <p class="no-individuals">Please select another class from the list.</p>';
|
||||
}
|
||||
browseByVClass.individualsContainer.prepend(nothingToSeeHere);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue