Bug 35924: Hide the print checkins button on the patron screens for patron's who...
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 29 Jan 2024 11:51:14 +0000 (06:51 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 11 Mar 2024 10:20:57 +0000 (11:20 +0100)
commit8ab2cc89606c66dd58c50e361c414af18c32216f
tree188eb01a44ca367111069a8362618c9f4e73712c
parente70bc2d20feabd3c52ae9017f66818d36e573cdc
Bug 35924: Hide the print checkins button on the patron screens for patron's who always anonymize

If a patron anonymizes their checkins, the checkin slip cannot retrieve any info to print the checkin slip. We should not show the button in this scenario

Test Plan:
1) Set a patron's privacy to "Never"
2) Note the "Print checkin slip" option in the Print button on the
   patrons toolbar displays
3) Apply this patch
4) Reload the page
5) Note the option is now missing
6) Set the patron's privacy to "Forever" or "Default"
7) Reload the page
8) Note the print checkins option is back!

Signed-off-by: Andrew Fuerste Henry <andrewfh@dubcolib.org>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 7253c38b8a24fb066b90dbaa25db9f12f1287d32)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc