[Koha-patches] [PATCH] Fix for Bug 2016, navigation bar in moredetail.pl not the same as in detail.pl
Owen Leonard
oleonard at myacpl.org
Tue Apr 22 16:54:02 CEST 2008
---
catalogue/moredetail.pl | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl
index 8b06517..8d30c76 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);
--
1.5.2.1
More information about the Koha-patches
mailing list