[
https://jira.duraspace.org/browse/DS-954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28068#comment-28068
]
Bram Luyten (@mire) commented on DS-954:
----------------------------------------
I think it still persists in some form, currently on 3.1 Demo.
This is what I'm seeing when clicking D in the browse by author list:
http://demo.dspace.org/xmlui/browse?order=ASC&rpp=20&sort_by=-1&etal=-1&offset=2976&type=author
now showing 2977-2995
when clicking next page, it seems to skip 2996 and shows 2997-3013. Also the
number of names shown on the screen seems to change. at the very first page
it's 1-18, but sometimes only 14 names appear etc.
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel