Bugzilla – Attachment 187741 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.96 KB, created by
Andrew Fuerste-Henry
on 2025-10-10 14:53:57 UTC
(
hide
)
Description:
Bug 30568: Add classes to name components in OPAC
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2025-10-10 14:53:57 UTC
Size:
1.96 KB
patch
obsolete
>From 2e1b2dbb4d7a18a8049df6d33db102e8420f5f55 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> > >Signed-off-by: Sam Sowanick <sam.sowanick@corvallisoregon.gov> > >Signed-off-by: Sam Sowanick <sam.sowanick@corvallisoregon.gov> >--- > 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 -%] >+ <span class="surname">[% patron.surname | html %]</span>[% IF patron.othernames %]<span class="othername">([% ' ' _ patron.othernames | html %])</span>[%- END -%] > [%- ELSE -%] > [%- IF patron.title -%] > [%- IF no_html -%] >@@ -8,7 +8,5 @@ > <span class="patron-title"></span> > [%- END -%] > [%- 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 %] </span> > [%- 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