Bug 18989: (QA follow-up) Make Koha::Biblio->hidden_in_opac aware of OpacHiddenItemsH...
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Apr 2021 18:30:03 +0000 (15:30 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 12 May 2021 12:12:07 +0000 (14:12 +0200)
commit98263bf00973e58ffba50d02b74f2301b80d6649
tree7327945286b8ef361df560f7528ef9fac6c837f1
parent7998536866e8be46033507e0dd53f7085b3e4585
Bug 18989: (QA follow-up) Make Koha::Biblio->hidden_in_opac aware of OpacHiddenItemsHidesRecord

This patch makes the method aware of the new syspref. It will only eval
the rules against items if the OpacHiddenItemsHidesRecord syspref is
set.

Tests are added to reflect this.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Biblio.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Biblio.pm
t/db_dependent/Koha/Biblio.t