Bugzilla – Attachment 106138 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: Clarify usage of patron-age.inc
Bug-15400-Clarify-usage-of-patron-ageinc.patch (text/plain), 1.39 KB, created by
Katrin Fischer
on 2020-06-21 16:43:01 UTC
(
hide
)
Description:
Bug 15400: Clarify usage of patron-age.inc
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-06-21 16:43:01 UTC
Size:
1.39 KB
patch
obsolete
>From ddd8d9cd3e3aa6661320f2c0a2f1f60d09ef3a8c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 4 Mar 2020 14:51:40 +0100 >Subject: [PATCH] Bug 15400: Clarify usage of patron-age.inc > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >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 adc14161fa..f55a54b0bd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc >@@ -1,9 +1,12 @@ >+[%# The variable patron must be passed, with either a Koha::Patron, or a HASHREF with the 'age' key -%] > [%- USE KohaDates -%] > [%- USE I18N -%] > [%- IF ( patron ) -%] > [%- IF ( patron.dateofbirth ) -%] >- [%- patron.dateofbirth | $KohaDates %] > [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%] >- <span class='age_years'>[% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]</span> >+ [%- IF age %] >+ [%- patron.dateofbirth | $KohaDates %] >+ <span class='age_years'>[% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]</span> >+ [%- END -%] > [%- 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