[Koha-bugs] [Bug 24458] Search results don't use Koha::Filter::MARC::ViewPolicy
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 11 15:22:20 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24458
--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 104697
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104697&action=edit
Bug 24458: Use the ViewPolicy filter on search results
This patch implements the use of the ViewPolicy record processor filter
inside C4::Search::searchResults. The idea is that the $record_processor
is instantiated once and reused inside the loop. This leaves options for
further optimizations I will do on a follow-up bug.
The filter is applied to the MARC data before it is passed to the XSLT
processor.
To test:
1. Apply the regression tests patch
2. Run:
$ kshell
k$ prove t/db_dependent/Search.t
=> FAIL: This is not implemented, tests fail
3. Apply this patch
4. Repeat 2
5. Feel the joy in your body from a long standing bug being solved
6. Sign off :-D
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
https://bugs.koha-community.org/show_bug.cgi?id=25416
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list