Bugzilla – Attachment 182281 Details for
Bug 39576
'Last patron' results should display preferred name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39576: Show preferred_name for hiddenborrowername
Bug-39576-Show-preferredname-for-hiddenborrowernam.patch (text/plain), 1.96 KB, created by
Martin Renvoize (ashimema)
on 2025-05-12 14:06:09 UTC
(
hide
)
Description:
Bug 39576: Show preferred_name for hiddenborrowername
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-05-12 14:06:09 UTC
Size:
1.96 KB
patch
obsolete
>From b980f56e2970b5914623a83117b8a64a8f5dd484 Mon Sep 17 00:00:00 2001 >From: Andrew Fuerste Henry <andrew@bywatersolutions.com> >Date: Tue, 8 Apr 2025 12:32:04 +0000 >Subject: [PATCH] Bug 39576: Show preferred_name for hiddenborrowername >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >The last patron menu uses the value "hiddenborrowername." I've made that use preferred_name instead of firstname. When a patron's preferred_name is not manually set/edited, it automatically takes the value of firstname, so we don't need an IF in the template toolkit here. > >To test: >1 - have a patron with a preferred_name and one without >2 - get both patrons in the Last Patron dropdown, confirm they both show firstname >3 - apply patch, restart services, clear cache, reload page >4 - get your patrons in Last Patron again, confirm now one shows preferred name and the other firstname > >Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com> >Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >index f913c07c36c..9eb64327123 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >@@ -27,7 +27,7 @@ > > [% IF Koha.Preference('showLastPatron') %] > <input type="hidden" id="hiddenborrowernumber" value="[% patron.borrowernumber | html %]" /> >- <input type="hidden" id="hiddenborrowername" value="[% patron.surname | html %] [% patron.firstname | html %]" /> >+ <input type="hidden" id="hiddenborrowername" value="[% patron.surname | html %] [% patron.preferred_name | html %]" /> > <input type="hidden" id="hiddenborrowercard" value="[% patron.cardnumber | html %]" /> > [% END %] > >-- >2.49.0
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 39576
:
180717
|
180982
| 182281