From 14814bc9a6986ed33da41767afcbf63084e73c9c Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 19 Jan 2017 21:54:12 +0000 Subject: [PATCH] Bug 17946: Show number of subscriptions on tab in OPAC record details This patch removes some duplicate code. To test: 1) Edit at least one subscription (or add a new one) to have a record 2) Find that record on the OPAC 3) Confirm that the Subscriptions tab reads the correct number of subscriptions attached to the record Sponsored-by: Catalyst IT Signed-off-by: JMBroust Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- opac/opac-detail.pl | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 7e5363879a..4e0a5e77af 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -576,7 +576,7 @@ [% IF ( subscriptionsnumber ) %] [% IF ( defaulttab == 'subscriptions' ) %]
  • [% ELSE %]
  • [% END %] - Subscriptions + Subscriptions ( [% subscriptionsnumber %] )
  • [% END %] diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 52deec61b3..1336ae1905 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -856,7 +856,6 @@ if ( C4::Context->preference("OPACISBD") ) { $template->param( itemloop => \@itemloop, otheritemloop => \@otheritemloop, - subscriptionsnumber => $subscriptionsnumber, biblionumber => $biblionumber, subscriptions => \@subs, subscriptionsnumber => $subscriptionsnumber,