From a87f15ad62ebfc6dedb0380a80f97d7c19380c37 Mon Sep 17 00:00:00 2001 From: Martin Stenberg Date: Mon, 21 Dec 2015 13:34:39 +0100 Subject: [PATCH] Bug 15400: Show patron age in search results Display patron age in search results and checkout details. Test plan ========= 1. Go to checkout page for one patron (cgi-bin/koha/circ/circulation.pl) 2. In the circulation menu to the left, under the patrons name you should see a new field "Age:" showing the patrons age, if a date of birth is available. 3. Enter a search term that will match more than one patron in the checkout search field 4. A new table column "Age" should be visible and display each patrons age 5. In cgi-bin/koha/members/member.pl enter a search filter that will match more than one patron 6. Each patrons age should be visible within parentheses to the right of the patron name --- koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 17 +++++++++++++++++ .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 13 +++++++++++++ .../prog/en/modules/members/tables/members_results.tt | 15 ++++++++++++++- 3 files changed, 44 insertions(+), 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 6393a04..e2a3a8c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -1,4 +1,5 @@ [% USE Koha %] +[% USE date %] [% IF ( borrowernumber ) %]
[% INCLUDE 'patron-title.inc' %]