[ 
https://jira.duraspace.org/browse/DS-954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24354#comment-24354
 ] 

Mark H. Wood commented on DS-954:
---------------------------------

It appears that I don't understand how to reproduce this condition.  I created 
a fresh DSpace 1.7.2 instance and loaded 40 items.  There are 15 pairs of items 
authored alternately by "MacDonald [0-14]" and "Macdonald [0-14]", and 10 items 
authored by "Abel [0-9]".  I browse all items by author, and I see ten Abel N 
and ten Mac[Dd]onald N.  I select Starts With M and the list shifts down by 10 
with Macdonald 0 at the top.  I select Next Page and it shows me the last 10 
Mac[Dd]onald N, exactly those I would expect.  The count remains 40.  Is there 
something else I need to do, to set up the proper environment to exercise the 
bug?
                
> Browse Pagination
> -----------------
>
>                 Key: DS-954
>                 URL: https://jira.duraspace.org/browse/DS-954
>             Project: DSpace
>          Issue Type: Bug
>          Components: DSpace API
>    Affects Versions: 1.7.2
>            Reporter: Dan Ishimitsu
>            Assignee: Mark H. Wood
>
> The problem occurs when using Author or Subject browsing. Clicking on a 
> linked "Starts With" letter at the top acts as expected. But then clicking on 
> Next Page (or Previous Page) afterwards will sometimes return a different 
> result than expect (ie the offset is wrong). You'll notice that the "total" # 
> of authors/subjects changes if the problem exists.
> I think this is caused because the "Starts With" locates its position in the 
> list based on distinct sort_values. But clicking on the Next/Prev passes that 
> position +/- offset, but uses a non-distinct list of sort_values. Ex. 
> MacDonald, John and Macdonald, John will both result in sort_value = 
> macdonald, john. So the distinct list counts it as 1, the non-distinct list 
> counts it as 2, and the offset is off by 1 when going to the next/prev page.
> At the time of this writing, the problem exists on 
> http://demo.dspace.org/xmlui if browsing by Author using starts with "C".
> Changing BrowseEngine.java as follows fixes this issue, but may cause others.
> 412c412
> <             dao.setDistinct(true);
> ---
> >             dao.setDistinct(false); //Removed distinct
> 441c441
> <             int total = getTotalResults(true);
> ---
> >             int total = getTotalResults(false); //Removed distinct

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to