From 8de824115e553f1a1b02333223972f79bc717b62 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 4 Apr 2017 23:51:16 +0000 Subject: [PATCH] Bug 18184: Show frequency and numbering pattern info when viewing all subs attached to a biblio To test: 1) Go to Serials, find a serial with more than one subscription 2) Click Serial collection 3) Notice how Frequency and Numbering pattern are filled out correctly 4) Click 'see any sub attached to this biblio' 5) Notice how Frequency and Numbering pattern are now missing info 6) Apply patch and refresh page 7) Confirm Frequency and Numbering pattern now show as expected Sponsored-by: Catalyst IT Signed-off-by: sonia BOUIS Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- serials/serials-collection.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/serials/serials-collection.pl b/serials/serials-collection.pl index 5182cbda61..e9cb3fd8b8 100755 --- a/serials/serials-collection.pl +++ b/serials/serials-collection.pl @@ -134,7 +134,13 @@ if (@subscriptionid){ $subscriptions=PrepareSerialsData(\@subscriptioninformation); $subscriptioncount = CountSubscriptionFromBiblionumber($subscriptiondescs->[0]{'biblionumber'}); } else { - $subscriptiondescs = GetSubscriptionsFromBiblionumber($biblionumber) ; + $subscriptiondescs = GetSubscriptionsFromBiblionumber($biblionumber); + foreach my $s (@$subscriptiondescs) { + my $frequency = C4::Serials::Frequency::GetSubscriptionFrequency($s->{periodicity}); + my $numberpattern = C4::Serials::Numberpattern::GetSubscriptionNumberpattern($s->{numberpattern}); + $s->{frequency} = $frequency; + $s->{numberpattern} = $numberpattern; + } my $subscriptioninformation = GetFullSubscriptionsFromBiblionumber($biblionumber); $subscriptions=PrepareSerialsData($subscriptioninformation); } -- 2.39.5