Bug 16596: Display library and patron category descriptions instead of their code
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 26 May 2016 09:55:09 +0000 (10:55 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 10 Jun 2016 16:51:26 +0000 (16:51 +0000)
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 <bgkriegel@gmail.com>
On top of Bug 13336
Works as described, now descriptions instead of codes.
No errors

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
https://bugs.koha-community.org/show_bug.cgi?id=16455

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt

index c60395b..cdd377c 100644 (file)
@@ -31,8 +31,8 @@
                     <td><a href="/cgi-bin/koha/reserve/request.pl?borrowernumber=[% borrower.borrowernumber %]&amp;biblionumber=[% biblionumber %]">[% borrower.surname %], [% borrower.firstname %]</a></td>
             [% END %]
                 <td>[% borrower.cardnumber %]</td>
-                <td>[% borrower.categorycode %]</td>
-                <td>[% borrower.branchcode %]</td>
+                <td>[% Categories.GetName( borrower.categorycode ) %]</td>
+                <td>[% Branches.GetName( borrower.branchcode ) %]</td>
                 <td>[% borrower.address %]</td>
             </tr>
         [% END %]
index 2cd368f..f8666bd 100644 (file)
@@ -1,6 +1,7 @@
 [% USE Koha %]
 [% USE Branches %]
 [% USE KohaDates %]
+[% USE Categories %]
 [% USE ColumnsSettings %]
 [% USE ItemTypes %]
 [% USE Price %]
index c2365b3..1f01a69 100644 (file)
@@ -1,5 +1,7 @@
 [% USE Koha %]
 [% USE KohaDates %]
+[% USE Branches %]
+[% USE Categories %]
 [% USE ItemTypes %]
 [% INCLUDE 'doc-head-open.inc' %]
 [% UNLESS ( multi_hold ) %]