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:
nac26 2011-02-05 00:25:04 +00:00
parent a9cf814054
commit b6170b6f9d

View file

@ -231,7 +231,11 @@ var browseByVClass = {
this.wipeSlate();
this.selectedAlpha(alpha);
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);
}
};