In OPAC opac-detail.pl page (same in intranet) AmazonSimilarItems is
not used to control if Amazon web service is called or not.
It means that even if AmazonSimilarItems is disabled, requests are
sent to Amazon to retrieve reader reviews and similar items. It's
a waste of resources.
---
 catalogue/detail.pl |    2 +-
 opac/opac-detail.pl |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/catalogue/detail.pl b/catalogue/detail.pl
index 19b8dd9..e96b32c 100755
--- a/catalogue/detail.pl
+++ b/catalogue/detail.pl
@@ -199,7 +199,7 @@ if (C4::Context->preference("FRBRizeEditions")==1) {
     };
     if ($@) { warn "XISBN Failed $@"; }
 }
-if ( C4::Context->preference("AmazonContent") == 1 ) {
+if ( C4::Context->preference("AmazonSimilarItems") == 1 ) {
     my $similar_products_exist;
     my $amazon_details = &get_amazon_details( $xisbn, $record, $marcflavour );
     my $item_attributes = 
\%{$amazon_details->{Items}->{Item}->{ItemAttributes}};
diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl
index de61ce3..6f0476b 100755
--- a/opac/opac-detail.pl
+++ b/opac/opac-detail.pl
@@ -263,7 +263,7 @@ if (C4::Context->preference("OPACFRBRizeEditions")==1) {
     if ($@) { warn "XISBN Failed $@"; }
 }
 # Amazon.com Stuff
-if ( C4::Context->preference("OPACAmazonContent") == 1 ) {
+if ( C4::Context->preference("OPACAmazonSimilarItems") == 1 ) {
     my $similar_products_exist;
     my $amazon_details = &get_amazon_details( $xisbn, $record, $marcflavour );
     my $item_attributes = 
\%{$amazon_details->{Items}->{Item}->{ItemAttributes}};
-- 
1.5.5.GIT

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to