[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
Thu Jan 14 13:20:17 CET 2021


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

Martin Renvoize <martin.renvoize at ptfs-europe.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 that        |hide items that that
                   |shouldn't be exposed on     |shouldn't be exposed on
                   |public interfaces.
         |public interfaces.
                   |                            |
                   |Filtering is governed by    |Filtering is governed by
                   |the following system        |the following system
                   |preferences. Two helper     |preferences. A helper
                   |methods are added to handle |method is added to handle
                   |each of them:
              |lost items:
                   |-                           |-
                   |OpacHiddenItems:            |hidelostitems:
                   |Koha::Items->filter_out_opa |Koha::Items->filter_out_los
                   |chiddenitems is added to    |t is added to handle this.
                   |handle this.
               |
                   |-                           |Some patrons have
                   |hidelostitems:              |exceptions so
                   |Koha::Items->filter_out_los |OpacHiddenItems is not
                   |t is added to handle this.
 |enforced on them. That's
                   |                            |why the new method [1] has
                   |Some patrons have           |an optional parameter that
                   |exceptions so               |expects the logged in
                   |OpacHiddenItems is not      |patron to be passed in the
                   |enforced on them. That's    |call.
                   |why the new method [1] has  |
                   |an optional parameter that  |[1]
                   |expects the logged in       |Koha::Items->filter_by_visi
                   |patron to be passed in the  |ble_in_opac
                   |call.
                      |
                   |
                           |
                   |[1]                         |
                   |Koha::Items->filter_by_visi |
                   |ble_in_opac                 |

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


More information about the Koha-bugs mailing list