From d7dc3c1b5b6c11aae86c63567db3482fd64f7b85 Mon Sep 17 00:00:00 2001 From: Owen Leonard 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 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Katrin Fischer (cherry picked from commit 272056791fdb10a6ca1b4fe1aad4933a385ead03) Signed-off-by: Fridolin Somers --- 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 6b1f791101..f183253d9f 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 ) %] [% END %] + [% IF ( patron.protected ) %] + + [% END %] [% INCLUDE 'patron-title.inc' %] [% IF Koha.Preference('showLastPatron') %] -- 2.39.5