Bugzilla – Attachment 175910 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.77 KB, created by
Lucas Gass (lukeg)
on 2024-12-23 14:56:25 UTC
(
hide
)
Description:
Bug 30568: Add classes to name components in OPAC
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-12-23 14:56:25 UTC
Size:
1.77 KB
patch
obsolete
>From 402c4912424750efc3ec13380ef2d72c9e14db79 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 | 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 -%] >+ <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.2
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