From bceac94f0a64b826413baecc82a690fca58a46f8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 19 Jan 2015 11:47:46 +0100 Subject: [PATCH] Bug 13021: Reintroduce the name column for guarantor search Previous patch removed the name column, it's a regression. This patch reintroduces it. Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/members/tables/guarantor_search.tt | 2 ++ members/guarantor_search.pl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt index 0a375f8a42..dab1f23cf3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt @@ -9,6 +9,8 @@ { "dt_cardnumber": "[% data.cardnumber %]", + "dt_name": + "[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = data.firstname surname = data.surname othernames = data.othernames cardnumber = data.cardnumber invert_name = 1%]", "dt_dateofbirth": "[% data.dateofbirth | $KohaDates %]", "dt_address": diff --git a/members/guarantor_search.pl b/members/guarantor_search.pl index 49bd57dfce..6e4e6ab282 100755 --- a/members/guarantor_search.pl +++ b/members/guarantor_search.pl @@ -44,7 +44,7 @@ my $referer = $input->referer(); $template->param( view => ( $input->request_method() eq "GET" ) ? "show_form" : "show_results", - columns => ['cardnumber', 'dateofbirth', 'address', 'action' ], + columns => ['cardnumber', 'name', 'dateofbirth', 'address', 'action' ], json_template => 'members/tables/guarantor_search.tt', selection_type => 'select', ); -- 2.39.5