[Koha-bugs] [Bug 22455] Add Koha::Biblio::hidden_in_opac method

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 5 15:05:09 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22455

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 86067
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=86067&action=edit
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!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list