]> git.koha-community.org Git - koha.git/commit
Bug 22454: Add Koha::Item::hidden_in_opac method
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 5 Mar 2019 12:44:59 +0000 (09:44 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 13 Mar 2019 05:31:31 +0000 (05:31 +0000)
commitf5270a792c3f1ae53f050dc7fb861e14f9869afe
tree5023bf3d1b2606edc9893683b003db4e87566608
parenteabd2f0e5464ba4a52f0f638b8af791991c1a7bb
Bug 22454: Add Koha::Item::hidden_in_opac method

This patch adds a hidden_in_opac method that does the same calculation
done in GetHiddenItemnumbers, but for a single item, and doesn't get the
OpacHiddenItems syspref, but expects them to be passed as parameters (to
avoid multiple reads).

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Item.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/Item.pm