From 62bdc282cdeb708d275616d1e56ce6e26375cab6 Mon Sep 17 00:00:00 2001
From: Owen Leonard <oleonard@myacpl.org>
Date: Mon, 4 Dec 2023 14:21:08 +0000
Subject: [PATCH] Bug 35474: Add icon for protected patrons

This patch adds a "protected" icon (fa-lock) to the patron information
in the sidebar of patron-related pages in the staff interface.

To test, apply the patch and perform a patron search in the staff
interface.

- Edit a patron and go to the "Library management" section.
- Set "Protected" to "Yes."
- Save the record and view the information in the sidebar. You should
  see the lock icon by the patron's name.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
---
 koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
index ead8c18fbef..a3bd5c9af55 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
@@ -23,6 +23,9 @@
         [% IF ( patron_is_superlibrarian ) %]
             <i class="fa fa-bolt fa-fw" title="Superlibrarian patron"></i>
         [% END %]
+        [% IF ( patron.protected ) %]
+            <i class="fa fa-lock fa-fw" title="Protected patron"></i>
+        [% END %]
         [% INCLUDE 'patron-title.inc' %]
     </h5>
 [% IF Koha.Preference('showLastPatron') %]
-- 
2.30.2