Fix problem with unique metadata browses

git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2681 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2008-02-15 15:30:34 +00:00
parent 9d7502c90d
commit 45360e6341

View File

@@ -509,7 +509,7 @@ public class BrowseEngine
dao.setLimit(scope.getResultsPerPage());
// this is the total number of results in answer to the query
int total = getTotalResults();
int total = getTotalResults(true);
// Holder for the results
List results = null;
@@ -518,7 +518,7 @@ public class BrowseEngine
if (total > 0)
{
// now run the query
results = dao.doQuery();
results = dao.doValueQuery();
// now, if we don't have any results, we are at the end of the browse. This will
// be because a starts_with value has been supplied for which we don't have
@@ -532,7 +532,7 @@ public class BrowseEngine
// And rerun the query
dao.setOffset(offset);
results = dao.doQuery();
results = dao.doValueQuery();
}
}
else