From 04e5c2630c6e3b2962498b932bd8967478c940e5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 26 May 2016 10:55:09 +0100 Subject: [PATCH] Bug 16596: Display library and patron category descriptions instead of their code Test plan: On circ/circulation-home.pl and reserve/request.pl, search for patrons The descriptions for the libraries and patron categories should be displayed. Signed-off-by: Bernardo Gonzalez Kriegel On top of Bug 13336 Works as described, now descriptions instead of codes. No errors Signed-off-by: Nick Clemens https://bugs.koha-community.org/show_bug.cgi?id=16455 Signed-off-by: Kyle M Hall --- .../prog/en/includes/circ-patron-search-results.inc | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc index c60395bd55..cdd377c62b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc @@ -31,8 +31,8 @@ [% borrower.surname %], [% borrower.firstname %] [% END %] [% borrower.cardnumber %] - [% borrower.categorycode %] - [% borrower.branchcode %] + [% Categories.GetName( borrower.categorycode ) %] + [% Branches.GetName( borrower.branchcode ) %] [% borrower.address %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 2cd368f71c..f8666bd759 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -1,6 +1,7 @@ [% USE Koha %] [% USE Branches %] [% USE KohaDates %] +[% USE Categories %] [% USE ColumnsSettings %] [% USE ItemTypes %] [% USE Price %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index c2365b30cb..1f01a69027 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1,5 +1,7 @@ [% USE Koha %] [% USE KohaDates %] +[% USE Branches %] +[% USE Categories %] [% USE ItemTypes %] [% INCLUDE 'doc-head-open.inc' %] [% UNLESS ( multi_hold ) %] -- 2.39.5