From 77e6f9fa21adf0ab392c89782f0a6a4493cd65c1 Mon Sep 17 00:00:00 2001
From: Julian Maurice <julian.maurice@biblibre.com>
Date: Wed, 4 Apr 2018 14:08:37 +0200
Subject: [PATCH] Bug 20516: Show patron's library in pending discharges table

Test plan:
1. Enable syspref useDischarge
2. Login to OPAC and ask for a discharge (tab on the left)
3. Login to intranet, you should see a message about pending discharges,
   and a link. Click on the link.
4. Confirm that there is a 'Library' column in the table that is
   displaying the patron's library
---
 koha-tmpl/intranet-tmpl/prog/en/modules/members/discharges.tt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharges.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharges.tt
index 70f727a182..bd2e254f17 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharges.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharges.tt
@@ -21,6 +21,7 @@
           <thead>
             <tr>
               <th>Patron</th>
+              <th>Library</th>
               <th>Allow</th>
             </tr>
           </thead>
@@ -28,6 +29,7 @@
             [% FOREACH d IN pending_discharges %]
               <tr>
                 <td><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% d.borrower.borrowernumber %]">[% d.borrower.surname %], [% d.borrower.firstname %]</a></td>
+                <td>[% d.borrower.branchcode.branchname %]</td>
                 <td><a href="/cgi-bin/koha/members/discharges.pl?op=allow&borrowernumber=[% d.borrower.borrowernumber %]">Allow</a></td>
               </tr>
             [% END %]
-- 
2.14.2