[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 18:39:02 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24458
Victor Grousset/tuxayo <victor at tuxayo.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #104697|0 |1
is obsolete| |
--- Comment #5 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 104708
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104708&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
https://bugs.koha-community.org/show_bug.cgi?id=25416
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list