[Koha-bugs] [Bug 24254] Add Koha::Items->filter_by_visible_in_opac
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Dec 21 21:40:19 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24254
Tomás Cohen Arazi <tomascohen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Text to go in the|This patch introduces an |This patch introduces an
release notes|efficient way of filtering |efficient way of filtering
|Koha::Items result sets, to |Koha::Items result sets, to
|hide items that |hide items that that
|OpacHiddenItems determines |shouldn't be exposed on
|shouldn't be exposed on |public interfaces.
|public interfaces. |
| |Filtering is governed by
| |the following system
| |preferences. Two helper
| |methods are added to handle
| |each of them:
| |-
| |OpacHiddenItems:
| |Koha::Items->filter_out_opa
| |chiddenitems is added to
| |handle this.
| |-
| |hidelostitems:
| |Koha::Items->filter_out_los
| |t is added to handle this.
| |
| |Some patrons have
| |exceptions so
| |OpacHiddenItems is not
| |enforced on them. That's
| |why the new method [1] has
| |an optional parameter that
| |expects the logged in
| |patron to be passed in the
| |call.
| |
| |[1]
| |Koha::Items->filter_by_visi
| |ble_in_opac
CC| |kyle at bywatersolutions.com
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list