From 453689d30d9dc28c14dcc4ce13deba4fa72d63d0 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 Signed-off-by: Lucas Gass --- koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 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 76efdbf8594..c506504e6fe 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc @@ -1,10 +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