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>
This commit is contained in:
Kyle Hall 2024-01-29 06:51:14 -05:00 committed by Katrin Fischer
parent 5511482951
commit 7253c38b8a
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -30,7 +30,9 @@
[% IF patron.has_overdues %]
<li><a id="print_overdues" href="#">Print overdues</a></li>
[% END %]
<li><a class="printslip" data-code="checkinslip" href="#">Print checkin slip</a></li>
[% IF patron.privacy < 2 %]
<li><a class="printslip" data-code="checkinslip" href="#">Print checkin slip</a></li>
[% END %]
[% FOREACH notice IN Notices.GetTemplates( 'patron_slip' ) %]
<li><a class="printslip" data-code="[% notice.code | html %]" href="#">Print [% notice.name | html %]</a></li>
[% END %]