Hi Nina

This is a bug and here is the fix.

Good luck

Clive


Subsequently Stuart David Lewis pointed out that sort by title and sort by
date were not working properly on our installation. Birong Ho kindly
posted the following solution on the Tech List:

Stop tomcat and as user dspace edit the following file:

pico /home/dspace/dspace-1.4-source/src/org/dspace/browse/Browse.java

Change the || to && on line 922 of the code:

private static void sortResults(BrowseScope scope, List results)
{
// Currently we only sort ItemsByAuthor, Advisor, Subjects browses
// Modified by Clive on 16th August 2006 || changed to &&
if ((scope.getBrowseType() != ITEMS_BY_AUTHOR_BROWSE)
&& (scope.getBrowseType() != ITEMS_BY_SUBJECT_BROWSE))
{
return;
}

Save the file, rebuild, copy over the wars and restart tomcat and all is
well :-)





> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 9 Mar 2007 12:00:25 -0800 (PST)
> From: nina joseph <[EMAIL PROTECTED]>
> Subject: [Dspace-tech] Browse by Author: sort by date/title not
>       working in      dspace1.4
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi All,
>   When you try to browse items by author, the files are not sorted by
> title. Then if you click browse by date, that also not seem to work.
>
>   Is it a known bug? If so is there any fixes? I greatly appreciate your
> suggestion.
>
>   Thank you
>   Nina
>
>
> ---------------------------------
>  Get your own web address.
>  Have a HUGE year through Yahoo! Small Business.
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ------------------------------
>
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
> End of DSpace-tech Digest, Vol 11, Issue 26
> *******************************************
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to