|
|
Reported:
|
2019-12-17 13:24 UTC by Nick Clemens (kidclamp)
|
Modified:
|
2022-12-12 21:24 UTC
(History)
|
|
9
users
(show)
|
|
See Also:
|
|
Patch complexity:
|
---
|
Documentation contact:
|
|
Documentation submission:
|
|
Text to go in the release notes:
|
This patch introduces an efficient way of filtering Koha::Items result sets, to hide items that shouldn't be exposed on public interfaces.
Filtering is governed by the following system preferences. A helper method is added to handle lost items:
- hidelostitems: Koha::Items->filter_out_lost 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_visible_in_opac
|
Version(s) released in:
|
21.05.00,20.11.02,20.05.09,19.11.15
|
Circulation function:
|
|
|
|