Bugzilla – Attachment 186504 Details for
Bug 30568
Make patron name fields more flexible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30568: Add classes to name components in OPAC
Bug-30568-Add-classes-to-name-components-in-OPAC.patch (text/plain), 1.78 KB, created by
Lucas Gass (lukeg)
on 2025-09-16 17:58:27 UTC
(
hide
)
Description:
Bug 30568: Add classes to name components in OPAC
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-09-16 17:58:27 UTC
Size:
1.78 KB
patch
obsolete
>From 453689d30d9dc28c14dcc4ce13deba4fa72d63d0 Mon Sep 17 00:00:00 2001 >From: Andrew Fuerste Henry <andrew@bywatersolutions.com> >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 <lucas@bywatersolutions.com> >--- > 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 -%] >+ <span class="surname">[% patron.surname | html %]</span>[% IF patron.othernames %] <span class="othername">([% patron.othernames | html %])</span> [%- END -%] > [%- ELSE -%] > [%- IF patron.title -%] > <span class="patron-title">[% patron.title | html %]</span> > [%- END -%] >- [% patron.preferred_name | html %] >- [% patron.middle_name | html %] >- [% patron.surname | html %] >+ <span class="preferred_name">[% patron.preferred_name | html %]</span> <span class="middle_name">[% patron.middle_name | html %]</span> <span class="surname">[% patron.surname | html %] > [%- END -%] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30568
:
175338
|
175351
|
175365
|
175910
|
175911
|
186504
|
186505
|
187420
|
187421
|
187494
|
187495
|
187659
|
187660
|
187704
|
187740
|
187741
|
187742
|
187743
|
187785
|
187786
|
187787
|
187788
|
188391