[Koha-bugs] [Bug 17787] Hidden items included in count of search results

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 21 20:29:40 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17787

Gérard Simon Voyer <simon.voyer at collecto.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon.voyer at collecto.ca

--- Comment #4 from Gérard Simon Voyer <simon.voyer at collecto.ca> ---
Bonjour everyone!

I've had my shot at this and broke my logic circuits hard.
At first, I tried complex matching rules to try while opening loops done over
@newresults (from opac/opac-search.pl) to get something. That's when I realized
nothing ever matched. Then I realized that @newresults was already filtered,
which is why I had no match.

So in the end :

my $results_count = scalar @newresults;
...
...
         if ($results_hashref->{$server}->{"hits"}){
            $total = $results_count;
         }
...
...
$template->param(total => $total);

gave me the right count...

I'll have to go document myself on how to propose a fix on this issue, but I
think the explanation above can give anyone looking for an answer the missing
piece.

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


More information about the Koha-bugs mailing list