From 001d396412d1bf07e21cb8b3a13f5e68452d3074 Mon Sep 17 00:00:00 2001 From: rangi Date: Sat, 17 Jun 2006 03:42:56 +0000 Subject: [PATCH] Passing through reviewson value, and fixing syntax error --- opac/opac-detail.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 46f0de1a0a..369a2b0ee4 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -11,6 +11,7 @@ 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", @@ -58,7 +59,7 @@ if ($dat->{'additional'}){ $authorpush{author} =$addauthor->[0]->{'author'}; push @author, \%authorpush } - +my @title; foreach my $word (split(" ", $dat->{'title'})){ unless (length($word) == 4){ $word =~s/\%//g @@ -138,6 +139,7 @@ $template->param(BIBLIO_RESULTS => $resultsarray, virtualshelves => C4::Context->preference("virtualshelves"), titlewords => $titlewords, authorwords => $authorwords, + reviewson => C4::Context->preference("marc"), ); ## Amazon.com stuff #not used unless preference set -- 2.39.5