From bcf7cc64a58ecfef8ddbfaf64dd5cd6523e6f5ba Mon Sep 17 00:00:00 2001 From: Graham Triggs Date: Tue, 18 Sep 2007 16:13:17 +0000 Subject: [PATCH] Fix a 'starts with' browsing bug git-svn-id: http://scm.dspace.org/svn/repo/trunk@2205 9c30dcfa-912a-0410-8fc2-9e0234be79fd --- dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java b/dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java index 97c68d3759..4b92224dde 100644 --- a/dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java +++ b/dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java @@ -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