Bug 19398: Format date of birth in circ patron search
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 2 Oct 2017 17:22:27 +0000 (14:22 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 29 Oct 2017 18:49:56 +0000 (19:49 +0100)
When searching for a patron from the circulation tab, the results table
shows the date of birth unformatted.

Test plan:
Apply this patch, search for patrons in the circ tab and confirm that
the date of birth are correctly formatted according to the dateformat
syspref

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 4edfc7900f6132c6771e4cfc820a5a3dc08d3e13)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 7453b2c5d8ed7c570e683b1d71712695d0576dcf)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc

index 8ff24be..29e72a2 100644 (file)
@@ -1,3 +1,4 @@
+[% USE KohaDates %]
 <script type="text/javascript">
     $(document).ready(function() {
         $(".clickable").click(function() {
@@ -32,7 +33,7 @@
                     <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.dateofbirth %]</td>
+                <td>[% borrower.dateofbirth | $KohaDates %]</td>
                 <td>[% Categories.GetName( borrower.categorycode ) %]</td>
                 <td>[% Branches.GetName( borrower.branchcode ) %]</td>
                 <td>[% borrower.address %]</td>