Bugzilla – Attachment 151953 Details for
Bug 33882
member.tt Date of birth column makes it difficult to hide the age hint
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33882: Add spans in dateofbirth column on member.tt
Bug-33882-Add-spans-in-dateofbirth-column-on-membe.patch (text/plain), 1.65 KB, created by
Lucas Gass
on 2023-06-01 20:07:05 UTC
(
hide
)
Description:
Bug 33882: Add spans in dateofbirth column on member.tt
Filename:
MIME Type:
Creator:
Lucas Gass
Created:
2023-06-01 20:07:05 UTC
Size:
1.65 KB
patch
obsolete
>From 8e743137965a617d15ff90834561364f69f22e6b Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 1 Jun 2023 20:03:53 +0000 >Subject: [PATCH] Bug 33882: Add spans in dateofbirth column on member.tt > >To test: >1 Apply patch >2 Do a patron search that will return multiple patrons. >3 Look at the date of birth column and notice the text is now wrapped in a class called 'dateofbirth' >4. Notice that the age hint is wrapped in a class called 'agehint'. >5. Add '.agehint { display: none }' to intranetusercss. >6. Now notice the date of birth still displays but no age information. >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index 6ae5ebb9e2..8cc465eead 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -428,7 +428,7 @@ > "searchable": true, > "orderable": true, > "render": function( data, type, row, meta ) { >- return data ? escape_str($date(data) + " (" + _("%s years").format($get_age(data)) + ")") : ""; >+ return data ? "<span class=\"dateofbirth\">" + escape_str($date(data)) + "<span class=\"agehint\"> (" + _("%s years").format($get_age(data)) + ")</span></span>" : ""; > } > } > [% CASE 'address' %] >-- >2.30.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 33882
:
151953
|
151954
|
152034