[Koha-bugs] [Bug 31061] OPACSuppress behavior with Elasticsearch
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Oct 30 02:58:50 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31061
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david at davidnind.com
--- Comment #8 from David Nind <david at davidnind.com> ---
I had a go at testing using KTD and the sample data.
I couldn't replicate the issue before the patch was applied, and there were no
differences in the expected results with 943$n set to Yes, No and removed.
I've set out what I did below.
Before the patch was applied
============================
Using Elasticsearch, index rebuilt (koha-elasticsearch --rebuild -d -b -a
kohadev)
OpacSuppression = Don't hide: 435 records
OpacSuppression = Hide: 433 records
Records that are suppressed already in the sample data = 2: biblionumber 232
and 234 (used report to find
https://wiki.koha-community.org/wiki/SQL_Reports_Library#Bibs_Suppressed_in_OPAC)
Recorded edited with OpacSuppression = Hide: 126 (Intermediate Perl)
- 942$n = Yes: records = 432 (as expected) (435 - 2 records already hidden - 1
new record)
- 942$n = No: records = 433 (as expected)
- 942$n = removed: records = 433 (as expected)
Tests pass: prove t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t
After the patch is applied
==========================
Using Elasticsearch, index rebuilt (koha-elasticsearch --rebuild -d -b -a
kohadev)
OpacSuppression = Don't hide: 435 records
OpacSuppression = Hide: 433 records
Records that are suppressed already in the sample data = 2: biblionumber 232
and 234 (used report to find
https://wiki.koha-community.org/wiki/SQL_Reports_Library#Bibs_Suppressed_in_OPAC)
Recorded edited with OpacSuppression = Hide: 126 (Intermediate Perl)
- 942$n = Yes: records = 432 (as expected) (435 - 2 records already hidden - 1
new record)
- 942$n = No: records = 433 (as expected)
- 942$n = removed: records = 433 (as expected)
Tests pass: prove t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list