From b068dbcf3bdfdf6a15894fcb3b63b8b6d4e8aee7 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! Signed-off-by: Andrew Fuerste Henry --- 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 dcf3eab648d..1ccab7c802f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -30,7 +30,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