Bugzilla – Attachment 80424 Details for
Bug 21511
Don't show acquisition details on subscription detail when there is no acq data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21511: Don't show acquisition details on subscription detail when there is no acq data
Bug-21511-Dont-show-acquisition-details-on-subscri.patch (text/plain), 2.48 KB, created by
Katrin Fischer
on 2018-10-11 20:14:16 UTC
(
hide
)
Description:
Bug 21511: Don't show acquisition details on subscription detail when there is no acq data
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-10-11 20:14:16 UTC
Size:
2.48 KB
patch
obsolete
>From 947ff747e191708cc7dddb2d2d6877c81cfc9cd3 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 9 Oct 2018 17:19:09 +0000 >Subject: [PATCH] Bug 21511: Don't show acquisition details on subscription > detail when there is no acq data > >This patch modifies the subscription detail page so that acquisitions >details section is not shown when there is no acquisitions data. > >The acquisitions details are moved into a new tab similar to how it >appears on the bibliographic details page. A count of orders is now >passed to the template so that the check for existing acquisitions data >will work correctly. > >To test, apply the patch and view the detail page for subscriptions. > >- When viewing a subscription for which there are orders you should see > an "Acquisitions details" tab containing the acquisitions data. >- When viewing a subscription with no orders the tab should not appear. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/serials/subscription-detail.tt | 7 ++++++- > serials/subscription-detail.pl | 1 + > 2 files changed, 7 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt >index 55d4e68..a01fb8b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt >@@ -61,6 +61,11 @@ > <li><a href="#subscription_planning">Planning</a></li> > <li><a href="#subscription_issues">Issues</a></li> > <li><a href="#subscription_summary">Summary</a></li> >+ [% IF order_count %] >+ <li> >+ <a href="#acquisition_details">Acquisition details</a> >+ </li> >+ [% END %] > </ul> > > <div id="subscription_info"> >@@ -335,7 +340,7 @@ > </div> > </div> > >- [% IF orders %] >+ [% IF order_count %] > <div id="acquisition_details"> > <h2>Acquisition details</h2> > <table id="orders"> >diff --git a/serials/subscription-detail.pl b/serials/subscription-detail.pl >index cc7a5d2..4915cb2 100755 >--- a/serials/subscription-detail.pl >+++ b/serials/subscription-detail.pl >@@ -144,6 +144,7 @@ $template->param( > irregular_issues => scalar @irregular_issues, > default_bib_view => $default_bib_view, > orders => $orders, >+ order_count => $orders->count, > (uc(C4::Context->preference("marcflavour"))) => 1, > ); > >-- >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 21511
:
80301
|
80424
|
80438
|
81022