mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 05:23:14 +00:00
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:
@@ -509,7 +509,7 @@ public class BrowseEngine
|
|||||||
dao.setLimit(scope.getResultsPerPage());
|
dao.setLimit(scope.getResultsPerPage());
|
||||||
|
|
||||||
// this is the total number of results in answer to the query
|
// this is the total number of results in answer to the query
|
||||||
int total = getTotalResults();
|
int total = getTotalResults(true);
|
||||||
|
|
||||||
// Holder for the results
|
// Holder for the results
|
||||||
List results = null;
|
List results = null;
|
||||||
@@ -518,7 +518,7 @@ public class BrowseEngine
|
|||||||
if (total > 0)
|
if (total > 0)
|
||||||
{
|
{
|
||||||
// now run the query
|
// 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
|
// 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
|
// 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
|
// And rerun the query
|
||||||
dao.setOffset(offset);
|
dao.setOffset(offset);
|
||||||
results = dao.doQuery();
|
results = dao.doValueQuery();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user