From 934332b8b17fc151657a94bbc5b64b2e8548773e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 22 Apr 2008 09:54:02 -0500 Subject: [PATCH] Fix for Bug 2016, navigation bar in moredetail.pl not the same as in detail.pl Signed-off-by: Joshua Ferraro --- catalogue/moredetail.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index 8b06517ad3..8d30c7646b 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -28,6 +28,7 @@ use C4::Branch; use C4::Acquisition; use C4::Output; # contains gettemplate use C4::Auth; +use C4::Serials; use C4::Dates qw/format_date/; use C4::Circulation; # to use itemissues @@ -55,6 +56,9 @@ my $title=$query->param('title'); my $data=GetBiblioData($biblionumber); my $dewey = $data->{'dewey'}; +#coping with subscriptions +my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber); + # FIXME Dewey is a string, not a number, & we should use a function # $dewey =~ s/0+$//; # if ($dewey eq "000.") { $dewey = "";}; @@ -99,7 +103,10 @@ foreach my $item (@items){ $item->{'issue'}= 1; } } -$template->param(count => $data->{'count'}); +$template->param(count => $data->{'count'}, + subscriptionsnumber => $subscriptionsnumber, + subscriptiontitle => $data->{title}, +); $template->param(BIBITEM_DATA => \@results); $template->param(ITEM_DATA => \@items); $template->param(moredetailview => 1); -- 2.39.5