From e63fa9187d5330f63029e86c2dba0717c1c1a604 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 29 Jan 2024 06:51:14 -0500 Subject: [PATCH] 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! --- koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc index d28e1ce4d12..1f251a905fe 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -31,7 +31,9 @@ [% IF patron.has_overdues %]
  • Print overdues
  • [% END %] -
  • Print checkin slip
  • + [% IF patron.privacy < 2 %] +
  • Print checkin slip
  • + [% END %] [% FOREACH notice IN Notices.GetTemplates( 'patron_slip' ) %]
  • Print [% notice.name | html %]
  • [% END %] -- 2.30.2