From 4ec5a186a29f7381abe314cb2f317dd04203ebbc Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 1 Mar 2022 16:30:04 +0000 Subject: [PATCH] Bug 30205: Add subtitle to subscription detail page To test: 1. Make some new serial subscriptions and connect them to biblios that contain subtitles. 2. Do a serial search that will return your newly created subscription. 3. Click on one of those subscription to be taken to the subscription detail page. 4. Look at the main heading (h1) and the "Biblio:" line. Notice there is no subtitle in either place 5. Apply patch, restart_all, and reload the subscription detail page. 6. You should now see the subtitle on both the main heading (h1) and on the 'Biblio:' line. Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- C4/Serials.pm | 1 + .../prog/en/modules/serials/subscription-detail.tt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index ad772fecac..391cdd5b33 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -269,6 +269,7 @@ sub GetSubscription { subscriptionhistory.*, aqbooksellers.name AS aqbooksellername, biblio.title AS bibliotitle, + biblio.subtitle AS bibliosubtitle, subscription.biblionumber as bibnum FROM subscription LEFT JOIN subscriptionhistory ON subscription.subscriptionid=subscriptionhistory.subscriptionid 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 7d9d9bdbd1..b13a2fc215 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 @@ -50,7 +50,7 @@ [% INCLUDE 'serials-toolbar.inc' %] [% INCLUDE 'mana/mana-comment-status.inc' %] -

Subscription for [% bibliotitle | html %] [% IF closed %](closed)[% END %]

+

Subscription for [% bibliotitle | html %] [% bibliosubtitle | html %] [% IF closed %](closed)[% END %]

[% IF ( abouttoexpire ) %] [% UNLESS closed %] @@ -111,7 +111,7 @@
  • Subscription ID: [% subscriptionid | html %]
  • Librarian identity: [% librarian | html %]
  • Vendor: [% aqbooksellername | html %]
  • -
  • Biblio: [% bibliotitle | html %] ([% bibnum | html %])
  • +
  • Biblio: [% bibliotitle | html %] [% bibliosubtitle | html %] ([% bibnum | html %])
  • [% IF ( OPACBaseURL ) %]
  • OPAC view: -- 2.39.5