From bb94dec902cf972d6b4458bd4db5bd0c96ad8e19 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 Signed-off-by: Sam Sowanick --- 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 9a67aea33f2..3d753311888 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc @@ -1,5 +1,5 @@ [%- 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 -%] [%- IF no_html -%] @@ -8,7 +8,5 @@ [%- END -%] [%- 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