SF patch #1544829 fixes SF bug #1544807 Browse-by-Subject/Author paging mechanism broken

git-svn-id: http://scm.dspace.org/svn/repo/trunk@1572 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Claudia Juergen
2006-08-24 14:46:42 +00:00
parent e7a44bb1f3
commit 1b944606f6

View File

@@ -1191,12 +1191,12 @@ public class Browse
*/
if ((browseType == AUTHORS_BROWSE) && !isCount)
{
sqlb.append(",author");
sqlb.append(",sort_author");
}
if ((browseType == SUBJECTS_BROWSE) && !isCount)
{
sqlb.append(",subject");
sqlb.append(",sort_subject");
}
sqlb.append(isCount ? ")" : "");
@@ -1419,9 +1419,9 @@ public class Browse
int browseType = scope.getBrowseType();
if (browseType == AUTHORS_BROWSE)
return "distinct sort_author";
return "distinct author";
else if (browseType == SUBJECTS_BROWSE)
return "distinct sort_subject";
return "distinct subject";
else
return "*";
}