]> git.koha-community.org Git - koha.git/commit
Bug 23583: Handle OpacHiddenItems with yaml_preference
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 6 Apr 2021 14:28:35 +0000 (11:28 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 21 Apr 2021 13:25:07 +0000 (15:25 +0200)
commit58c275e04b11b2f0f54b014f31e4054cd92f5a1f
tree9569b04c1b2ab60ad43fae04e297788410844202
parent1bb9b8b5514f512dfba74ca1ace97ec7fbcb4884
Bug 23583: Handle OpacHiddenItems with yaml_preference

This patch makes all places in Koha that rely on OpacHiddenItems
actually use C4::Context->yaml_preference instead of manually calling
the YAML libraries and handling it.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Items* \
           t/db_dependent/Koha/Item* \
           t/db_dependent/Koha/Filter/EmbedItems.t
=> SUCCESS: Tests pass!
3. Try hiding things with opac-ISBDdetail.pl and opac-search.pl
=> SUCCESS: Things work the same!
4. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Items.pm
Koha/Filter/MARC/EmbedItems.pm
opac/opac-ISBDdetail.pl
opac/opac-search.pl