Bugzilla – Attachment 106137 Details for
Bug 15400
Display patron age in useful places in the staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15400: (follow-up) Add class to years span
Bug-15400-follow-up-Add-class-to-years-span.patch (text/plain), 2.21 KB, created by
Katrin Fischer
on 2020-06-21 16:42:54 UTC
(
hide
)
Description:
Bug 15400: (follow-up) Add class to years span
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-06-21 16:42:54 UTC
Size:
2.21 KB
patch
obsolete
>From 43cbafd586e89eaf51dfc229036e729b32487898 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Thu, 18 Apr 2019 09:27:30 +0000 >Subject: [PATCH] Bug 15400: (follow-up) Add class to years span > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Michal Denar <black23@gmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >index a4eb4bde8f..f783cd7f92 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >@@ -109,7 +109,7 @@ > } > var itemString = "<a href=\"" + item.link + "\">" + item.surname + ", " + item.firstname + cardnumber + " <small>"; > if( item.dateofbirth ) { >- itemString += item.dateofbirth + " (" + item.age + " " + _("years") + "), "; >+ itemString += item.dateofbirth + "<span class=\"age_years\"> (" + item.age + " " + _("years") + ")</span>, "; > } > itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>"; > return $( "<li></li>" ) >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc >index 4dc3c333f2..adc14161fa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc >@@ -4,6 +4,6 @@ > [%- IF ( patron.dateofbirth ) -%] > [%- patron.dateofbirth | $KohaDates %] > [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%] >- [% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %] >+ <span class='age_years'>[% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]</span> > [%- END -%] > [%- END -%] >-- >2.11.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 15400
:
45882
|
46935
|
81892
|
82714
|
85432
|
85479
|
85494
|
85495
|
85496
|
85497
|
86457
|
86458
|
86459
|
86460
|
88274
|
88275
|
88276
|
88277
|
88278
|
88845
|
88846
|
88977
|
88978
|
88979
|
88980
|
88981
|
100047
|
100048
|
100049
|
100050
|
100051
|
100065
|
100066
|
100067
|
100068
|
100069
|
100118
|
103373
|
106133
|
106134
|
106135
|
106136
| 106137 |
106138
|
106139
|
106140
|
106307