From 9eb62ef191ad90fdcb556026c9e8f5d3ca3ddebd Mon Sep 17 00:00:00 2001 From: Lucas Gass 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. Signed-off-by: Sam Lau Signed-off-by: David Cook Signed-off-by: Tomas Cohen Arazi --- 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 ? "" + escape_str($date(data)) + " (" + _("%s years").format($get_age(data)) + ")" : ""; } } [% CASE 'address' %]