]> git.koha-community.org Git - koha.git/commit
Bug 22455: Add Koha::Biblio::hidden_in_opac method
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 5 Mar 2019 14:00:44 +0000 (11:00 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 13 Mar 2019 05:31:32 +0000 (05:31 +0000)
commit40d0a77a01be40b21f1190b195f47ae88c889b5b
tree0aacb6218341cd286647ced9b85114fbaf5604c5
parent5c2f3d236aa97ece1cdcfb1addc33bb46544326e
Bug 22455: Add Koha::Biblio::hidden_in_opac method

This patch adds a hidden_in_opac method that does the same calculation
done in places like opac-tags.pl. The condition that is checked is that
all items belonging to the biblio are hidden. This is the current
behaviour in the code.

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Biblio.t
=> SUCCESS: Tests pass!

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Biblio.pm