Commit 5b555584 by Deborah Shapiro

RTT-288:Refset Tool is timing out when accessing Terminology Server API

parent 71ff6903
......@@ -1196,7 +1196,7 @@ public class RefsetServiceRestImpl extends RootServiceRestImpl
}
}
sb.append("\r\n").append("Replacement Concepts").append("\r\n");
sb.append("\r\n").append("Inactive Concepts with their suggested Replacement Concepts").append("\r\n");
if (replacementConceptsSb.length() > 0) {
sb = appendReplacementConceptReportHeader(sb);
sb.append(replacementConceptsSb);
......
......@@ -3105,6 +3105,12 @@ tsApp
// Success
function(data) {
$scope.searchResults = data.concepts;
// if using the SnowOwl terminology handler, we no longer have the offset parameter
// so we are faking the paging here with a max of 100 results returned for each request
if ($scope.searchResults.length > $scope.pageSize) {
startIndex = ($scope.paging['search'].page - 1) * $scope.pageSize;
$scope.searchResults = data.concepts.slice(startIndex, startIndex + $scope.pageSize);
}
$scope.searchResults.totalCount = data.totalCount;
$scope.getMemberTypes();
if (data.concepts.length > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment