Bug 13745: Fix serial collection page to always show branch name
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sat, 21 Feb 2015 21:24:03 +0000 (22:24 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 2 Mar 2015 14:25:47 +0000 (15:25 +0100)
The serial collection page shows 2 tables, one for the subscriptions
and a second for the issues. Both show the branch, but the first
showed the code while the second showed the name.
With this patch both tables show the name.

To test:
- Search for a subscription or create one
- Navigate to the serial collection page (navigation on left side)
- Check both tables on the page show the branch name with
  the patch applied

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt

index 0114e1e..0092324 100644 (file)
@@ -120,7 +120,7 @@ $(document).ready(function() {
         <td><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]"># [% subscription.subscriptionid %]</a> </td>
         <td>[% subscription.frequency.description %]</td>
         <td>[% subscription.numberpattern.label %]</td>
-        <td> [% subscription.branchcode %]</td>
+        <td>[% IF subscription.branchcode %][% Branches.GetName( subscription.branchcode ) %][% END %]</td>
         <td> [% subscription.callnumber %]</td>
         <td> [% subscription.notes %]
             [% UNLESS subscription.closed %]