From 29ab92d261d80521f76591de2f9a7d0a7b8655ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Fri, 24 Apr 2009 07:15:42 +0200 Subject: [PATCH] Bugfix #3155 Disabling Amazon Reviews Disable Amazon reviews without disabling Amazon book cover. Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl | 6 +++++- opac/opac-detail.pl | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 5146c0de3f..5e9019e9dd 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -281,7 +281,7 @@
  • #editions">Editions
  • -
  • #amazonreviews">Amazon Reviews
  • +
  • #amazonreviews">Amazon Reviews
  • #babeltheque">Babelthèque
  • @@ -409,6 +409,7 @@
    +

    From :

    @@ -416,6 +417,7 @@ + @@ -651,6 +653,7 @@
    +
    @@ -672,6 +675,7 @@
    +
    diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index dd21abebc0..07632db9e0 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -267,6 +267,7 @@ if (C4::Context->preference("OPACFRBRizeEditions")==1) { # Amazon.com Stuff if ( C4::Context->preference("OPACAmazonEnabled") ) { $template->param( AmazonTld => get_amazon_tld() ); + $template->param( OPACAmazonReviews => C4::Context->preference("OPACAmazonReviews") ); } if ( C4::Context->preference("OPACAmazonEnabled") && C4::Context->preference("OPACAmazonSimilarItems") ) { my $similar_products_exist; -- 2.39.5