Fix for Bug 2016, navigation bar in moredetail.pl not the same as in detail.pl
authorOwen Leonard <oleonard@myacpl.org>
Tue, 22 Apr 2008 14:54:02 +0000 (09:54 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 22 Apr 2008 22:40:04 +0000 (17:40 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
catalogue/moredetail.pl

index 8b06517..8d30c76 100755 (executable)
@@ -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);