From 48f9afbc202ef6b9e1d51eae4316cd2c77aff931 Mon Sep 17 00:00:00 2001 From: rangi Date: Sat, 3 Sep 2005 00:10:36 +0000 Subject: [PATCH] Now fetches the number of reviews, and passes it through to the template to be displayed --- opac/opac-detail.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index d8a4715fff..9dc6c0bd6b 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -10,6 +10,8 @@ use HTML::Template; use C4::Biblio; use C4::SearchMarc; use C4::Amazon; +use C4::Review; + my $query=new CGI; my ($template, $borrowernumber, $cookie) = get_template_and_user({template_name => "opac-detail.tmpl", @@ -88,13 +90,11 @@ if (C4::Boolean::true_p($marc)) { # $template->param(MARCSUBJCTS => $marcsubjctsarray); } -my @results = ($dat,); - - - - - +# get the number of reviews +my $reviewcount=numberofreviews($biblionumber); +$dat->{'reviews'}=$reviewcount; +my @results = ($dat,); my $resultsarray=\@results; my $itemsarray=\@items; my $webarray=\@webbiblioitems; -- 2.39.5