From 266bc6b300df2fec514ffb4d5084b861007c7978 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 NOTE: rebased to handle conflict with 13931, but I'm not sure this is fully needed, as 13931 adds date of birth. --- .../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 | 19 ++++++++++++++++--- 3 files changed, 46 insertions(+), 3 deletions(-) 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 f545afa..a27ff70 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' %]