Bugfix #2920 Avoid doing unecessary calls to Amazon Web Services
authorFrédéric Demians <f.demians@tamil.fr>
Sat, 25 Apr 2009 07:24:54 +0000 (09:24 +0200)
committerGalen Charlton <galen.charlton@liblime.com>
Sun, 26 Apr 2009 15:36:14 +0000 (10:36 -0500)
commit199ec1473afa49ade9a5466d340a3361b60244cd
treeae41761e8a564c87ac6c85dff6feb794b2787911
parentc101ea2379f4d4bdcd0e26bb8ecbd3705bb22afe
Bugfix #2920 Avoid doing unecessary calls to Amazon Web Services

This patch modifies how AWS is called. AWS is now called
depending on syspref. It works completly for OPAC; it
has to be refined for intranet.

For OPAC:

  * If OPACAmazonReviews is set, AWS EditorialReview and
    Reviews (users) are grabed.
  * If OPACAmazonSimilarItems is set, AWS Similarities info
    are grabed.
  * If nothing is asked, AWS is not called anymore,
    sparing server bandwidth.

For intranet:

  It works as it used to work. AWS is called if AmazonEnabled
  is set whatever how other syspref are set.

  TODO:

    * Add a AmazonReviews syspref
    * Request Amazon content depending on AmazonSimilarities
      and AmazonReviews syspref

DOCUMENTATION:

  It should be explained that Amazon services related syspref
  have two levels:

  * AmazonEnable / OPACAmazonEnable
  * Other: OPACAmazonReviews (new), OPACAmazonSimilarProduct,
    OPACAmazonCover

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/External/Amazon.pm
catalogue/detail.pl
opac/opac-detail.pl