Bug 20516: Show patron's library in pending discharges table
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 4 Apr 2018 12:08:37 +0000 (14:08 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 5 Apr 2018 17:17:36 +0000 (14:17 -0300)
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

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/members/discharges.tt

index 70f727a..bd2e254 100644 (file)
@@ -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 %]