[Koha-bugs] [Bug 8462] OpacHiddenItems and hidelostitems hide items, but query result count is off

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 9 08:00:37 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8462

--- Comment #21 from Mason James <mtj at kohaaloha.com> ---
(In reply to comment #1)
> I confirm.
> The Bug 6488 introduced to hide a record with only hidden items.
> This concerns only records managed in result page (depends on offset and
> results per page).
> 
> But this causes several problems :
> - search hints (total number of results) returned by Zebra seems false when
> there are hidden records. That's what reports D Ruth Bavousett.
> - offset and results per page does not correspond to results displayed when
> there are hidden records. There can be only 2 results displayed in first
> page with a 20 results per page and clicking on next page will be offset=20.
> - when there is only one result and this one is hidden, leads to a 404 error
> page. (Because test is based on zebra total hints).
> 
> Note that hiding records in OPAC can be managed with OpacSuppress syspref.
> In this case Zebra does not return hidden records, so everything is correct.
> 
> So can we keep this feature ?
> I seems very difficult to correct.
> 


i did a patch for this issue 1.5 years ago, but i never committed it

the method i used, was to fetch more records than needed from zebra
(like 40 bibs, not 20)

its obviously not a perfect solution, there is a chance that all 40 bibs
fetched might be hidden, and you would still end up with 0 bibs displayed

^^despite that, in real life this patch worked well

the only other solution, afaik, is to keep doing zebra queries until one page
of non-hidden bibs is accumulated

i'll upload my patch soon...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list