Bug 31421: Add a limited option to template plugin
authorNick Clemens <nick@bywatersolutions.com>
Thu, 20 Oct 2022 14:13:37 +0000 (14:13 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 28 Oct 2022 17:49:10 +0000 (17:49 +0000)
commite207c09ee303b7b957e3f260531ca1fb22666536
treefe2bcccabef27e438e9f59dffd0ecde17b12e2cc
parentfbde769aec127ab899a52197d9c0b176c54b87c4
Bug 31421: Add a limited option to template plugin

This adds a specific 'limited' routine to the Categories plugin, and uses
it for the new patron dropdowns

To test:
1 - Limit a patron category to some branches
2 - Sign in not at one of those
3 - Confirm the new patron dropdowns don't include the category

Bug 31421: (follow-up) Add POD

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 1fc56e0e47d07d2eadcdb62c6a5740aa9d51c6b2)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Template/Plugin/Categories.pm
koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc