Bug 18307 - Branchname is no longer displayed in subscription tab view
authorMarc Véron <veron@veron.ch>
Tue, 21 Mar 2017 13:52:51 +0000 (14:52 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 31 Mar 2017 13:33:27 +0000 (13:33 +0000)
This patch restores the branchname in OPAC subscription detail view.
Additionally, it adds the subscriptons count to the tab title to make
it consistent with the other tab titles.

To test:
- Search a subscription in OPAC catalog
- Go to Subscriptions tab (see screenshot in initial comment)
- Verify that library name does not display
- Apply patch
- Verify that library name displays properly in Subscriptons tab
- Verify that the tab title displays the subscriptions count
  e.g.: Subscriptions (2)

Signed-off-by: Claire Gravely <claire_gravely@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt

index e4fb61f..7e53638 100644 (file)
                             <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
                             [% FOREACH subscription IN subscriptions %]
                                 [% IF ( subscription.branchcode ) %]
-                                    <h3>At library: [% Branches.GetName( subscription.branchname ) %]</h3>
+                                    <h3>At library: [% Branches.GetName( subscription.branchcode ) %]</h3>
                                 [% ELSE %]
                                     [% IF ( subscription.branchcode ) %]
                                         <h3>At library: [% subscription.branchcode %]</h3>