From ec48133f711be97bc87d3f5d52c318736237f291 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Sat, 5 Dec 2009 14:15:33 +0100 Subject: [PATCH] Bug 3863 - Amazon Content Not Working Sysprefs were not sent to templates. --- C4/Auth.pm | 5 ++++- opac/opac-detail.pl | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 608fd9b745..e1f5b9a9b3 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -392,7 +392,10 @@ sub get_template_and_user { LibraryName => "" . C4::Context->preference("LibraryName"), LibraryNameTitle => "" . $LibraryNameTitle, LoginBranchname => C4::Context->userenv?C4::Context->userenv->{"branchname"}:"", - OPACAmazonSimilarItems => "" . C4::Context->preference("OPACAmazonSimilarItems"), + OPACAmazonEnabled => C4::Context->preference("OPACAmazonEnabled"), + OPACAmazonSimilarItems => C4::Context->preference("OPACAmazonSimilarItems"), + OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), + OPACAmazonReviews => C4::Context->preference("OPACAmazonReviews"), OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), OPACItemHolds => C4::Context->preference("OPACItemHolds"), OPACShelfBrowser => "". C4::Context->preference("OPACShelfBrowser"), diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 87b2ac9add..f0a7288445 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -325,11 +325,9 @@ if ( C4::Context->preference("OPACAmazonEnabled") ) { my $amazon_similars = C4::Context->preference("OPACAmazonSimilarItems"); my @services; if ( $amazon_reviews ) { - $template->param( OPACAmazonReviews => 1 ); push( @services, 'EditorialReview', 'Reviews' ); } if ( $amazon_similars ) { - $template->param( OPACAmazonSimilarItems => 1 ); push( @services, 'Similarities' ); } my $amazon_details = &get_amazon_details( $isbn, $record, $marcflavour, \@services ); -- 2.39.5