Bugzilla – Attachment 59832 Details for
Bug 17946
Show number of subscriptions on tab in OPAC record details
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17946: Show number of subscriptions on tab in OPAC record details
Bug-17946-Show-number-of-subscriptions-on-tab-in-O.patch (text/plain), 1.94 KB, created by
Aleisha Amohia
on 2017-02-02 22:18:48 UTC
(
hide
)
Description:
Bug 17946: Show number of subscriptions on tab in OPAC record details
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2017-02-02 22:18:48 UTC
Size:
1.94 KB
patch
obsolete
>From 9837e58e1d99e7fe97493b8bd6014a4e147ed99a Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >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 >--- > 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 e4fb61f..218c859 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' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %] >- <a href="#subscriptions">Subscriptions</a> >+ <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber %] )</a> > </li> > [% END %] > >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index a7e643c..4c2ae88 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -854,7 +854,6 @@ if ( C4::Context->preference("OPACISBD") ) { > $template->param( > itemloop => \@itemloop, > otheritemloop => \@otheritemloop, >- subscriptionsnumber => $subscriptionsnumber, > biblionumber => $biblionumber, > subscriptions => \@subs, > subscriptionsnumber => $subscriptionsnumber, >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17946
:
59288
|
59832
|
61326
|
61342