]> git.koha-community.org Git - koha.git/commit
Bug 35517: Choose correct default header search tab according to permissions
authorOwen Leonard <oleonard@myacpl.org>
Thu, 7 Dec 2023 18:17:55 +0000 (18:17 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 11 Jan 2024 14:44:41 +0000 (15:44 +0100)
commitabbacfca5ddc66f66008ebf37cd05fc3eec33929
tree5c35895db82871454a8a8c2a1ab183098090ff4b
parent78b4fac242f2e4dd940aff0811abccf4aa093b1e
Bug 35517: Choose correct default header search tab according to permissions

This patch adds some additional template logic to the header search form
for the staff interface home page so that users with different
permissions will see the correct tab in the header search form.

To test, apply the patch and view the staff interface home page using a
user with different permissions:

- 'catalogue' and 'circulate'
  - Header should show circulation search
- 'catalogue' and 'borrowers'
  - Header should show patron search
- 'catalogue' only
  - Header should show catalog search

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc