From 4721a47dce0ecbed5e73e4fd6ed7597701f3e59a Mon Sep 17 00:00:00 2001 From: Andrew Fuerste Henry Date: Tue, 10 Dec 2024 14:01:02 +0000 Subject: [PATCH] Bug 30568: Add classes to name components in OPAC To test: 1- have a patron with values in all parts of name (firstname, preferred name, surname, othername, middlename) 2- log into OPAC as patron, observe where are how name is displayed, lack of classes on component parts 3- apply patch 4- reload OPAC pages, observe name looks the same but now has classes when inspected --- koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc index da530cd645..c506504e6f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc @@ -1,8 +1,8 @@ [%- IF patron.category.category_type == 'I' -%] - [% patron.surname | html %][% IF patron.othernames %] ([% patron.othernames | html %]) [%- END -%] + [% patron.surname | html %][% IF patron.othernames %] ([% patron.othernames | html %]) [%- END -%] [%- ELSE -%] [%- IF patron.title -%] [% patron.title | html %] [%- END -%] - [% patron.preferred_name | html %] [% patron.middle_name | html %] [% patron.surname | html %] + [% patron.preferred_name | html %] [% patron.middle_name | html %] [% patron.surname | html %] [%- END -%] -- 2.39.5