Fix a 'starts with' browsing bug

git-svn-id: http://scm.dspace.org/svn/repo/trunk@2205 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2007-09-18 16:13:17 +00:00
parent bf4d523f18
commit bcf7cc64a5

View File

@@ -738,6 +738,11 @@ public class BrowseEngine
// Normalize it based on the specified language as appropriate for this index
return BrowseOrder.makeSortString(scope.getJumpToValue(), scope.setJumpToValueLang(), scope.getBrowseIndex().getDataType());
}
else if (scope.hasStartsWith())
{
// Scope has a starts with, so normalize that instead
return BrowseOrder.makeSortString(scope.getStartsWith(), null, scope.getBrowseIndex().getDataType());
}
// No focus value on the scope (ie. focus by id), so just return the passed focus value
// This is useful in cases where we have pulled a focus value from the index