From 07738adbf08a66fdb91728dedc1362a8a75a3067 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 25 Mar 2024 15:53:10 +0100 Subject: [PATCH] Bug 35599: Fix Pronouns and HidePersonalPatronDetailOnCirculation Bug 10950 adds a pronouns text field to the patron record. Currently it is hidden by system preference 'HidePersonalPatronDetailOnCirculation'. This patch moves pronouns outside this system preference influence. Test plan: 1) Add pronouns to a patron 2) Set system preference 'HidePersonalPatronDetailOnCirculation' to "Don't hide" 3) Check you see pronouns in circulation page /cgi-bin/koha/circ/circulation.pl?borrowernumber=X 4) Set system preference 'HidePersonalPatronDetailOnCirculation' to "Hide" 5) Refresh circulation page => Without patch pronouns are hidden => With patch pronouns are displayed Signed-off-by: Hebah Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 bb12e1bef3..6facc63971 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -57,10 +57,12 @@ [% END %]
    + + [% IF patron.pronouns %] +
  • ([% patron.pronouns | html %])
  • + [% END %] + [% IF !(Koha.Preference('HidePersonalPatronDetailOnCirculation')) %] - [% IF patron.pronouns %] -
  • ([% patron.pronouns | html %])
  • - [% END %] [% PROCESS 'display-address-style' %] -- 2.39.5