From 7253c38b8a24fb066b90dbaa25db9f12f1287d32 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 Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Katrin Fischer --- 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 f1965dd6b5..8b8c867cb4 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.39.5