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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 15 Jan 2024 14:13:04 +0000 (15:13 +0100)
commitfad67e8615ecdd29e7946c4e438022bb045599da
treed6a375d389a2a7850031c45a613c785eeeba56a3
parent703051bbacf5f3ea6c3cafb995267b066aa58cf8
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>
(cherry picked from commit abbacfca5ddc66f66008ebf37cd05fc3eec33929)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc