Re: [Koha-patches] [PATCH] Bug 2920 DB Rev 028 AmazonReviews syspref

2009-04-27 Thread Galen Charlton
Hi Frédéric,

I've pushed your latest 2920 patches.  Please follow up with a patch
to admin/systempreferences.pl to put the new AmazonReviews syspref in
the enhanced content category.

Regards,

Galen

2009/4/27 Frédéric Demians f.demi...@tamil.fr:
 Add AmazonReviews syspref.

 DOCUMENTATION:

  AmazonReviews is OPACAmazonReviews counterpart,
  except that in staff interface Editorial Review
  is displayed alone, without reader reviews.
[snip]

-- 
Galen Charlton
VP, Research  Development, LibLime
galen.charl...@liblime.com
p: 1-888-564-2457 x709
skype: gmcharlt
___
Koha-patches mailing list
Koha-patches@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-patches


Re: [Koha-patches] [PATCH] Bug 2920 DB Rev 028 AmazonReviews syspref

2009-04-27 Thread Frédéric DEMIANS

 I've pushed your latest 2920 patches. Please follow up with a patch to 
 admin/systempreferences.pl to put the new AmazonReviews syspref in the 
 enhanced content category.

I missed that, sorry. You should have ask to modify!

 DOCUMENTATION:

  AmazonReviews is OPACAmazonReviews counterpart,
  except that in staff interface Editorial Review
  is displayed alone, without reader reviews.
 [snip]

Unsure if librarians would be interested by Amazon readers reviews. 
Editorial reviews could make sense for them but readers'...

FYI (documentation), AWS returns editorial review done by Amazon staff 
not publisher reviews which is available on Amazon web site.

-- 
Frédéric DEMIANS
http://www.tamil.fr/u/fdemians.html
___
Koha-patches mailing list
Koha-patches@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-patches


[Koha-patches] [PATCH] Bug 2920 DB Rev 028 AmazonReviews syspref

2009-04-26 Thread Frédéric Demians
Add AmazonReviews syspref.

DOCUMENTATION:

  AmazonReviews is OPACAmazonReviews counterpart,
  except that in staff interface Editorial Review
  is displayed alone, without reader reviews.
---
 installer/data/mysql/en/mandatory/sysprefs.sql |1 +
 .../1-Obligatoire/unimarc_standard_systemprefs.sql |1 +
 installer/data/mysql/updatedatabase.pl |   10 --
 kohaversion.pl |2 +-
 4 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql 
b/installer/data/mysql/en/mandatory/sysprefs.sql
index a15ac5a..d30904b 100644
--- a/installer/data/mysql/en/mandatory/sysprefs.sql
+++ b/installer/data/mysql/en/mandatory/sysprefs.sql
@@ -1,6 +1,7 @@
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('acquisitions','normal','Choose Normal, budget-based acquisitions, or 
Simple bibliographic-data acquisitions','simple|normal','Choice');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('advancedMARCeditor',0,'If ON, the MARC editor won\'t display 
field/subfield descriptions','','YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('AmazonEnabled',0,'Turn ON Amazon Content - You MUST set AWSAccessKeyID 
and AmazonAssocTag if enabled','','YesNo');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('AmazonReviews',0,'Display Amazon review on staff interface - You MUST 
set AWSAccessKeyID and AmazonAssocTag if enabled','','YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('AmazonSimilarItems',0,'Turn ON Amazon Similar Items feature  - You MUST 
set AWSAccessKeyID and AmazonAssocTag if enabled','','YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('OPACAmazonEnabled',0,'Turn ON Amazon Content in the OPAC - You MUST set 
AWSAccessKeyID and AmazonAssocTag if enabled','','YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('OPACAmazonSimilarItems',0,'Turn ON Amazon Similar Items feature  - You 
MUST set AWSAccessKeyID and AmazonAssocTag if enabled','','YesNo');
diff --git 
a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql 
b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
index 55130a1..8d9faa4 100644
--- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
+++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
@@ -1,6 +1,7 @@
 set NAMES 'utf8';
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('advancedMARCeditor', '0', 'Si ce paramètre est mis à 1, l''éditeur MARC 
n''affichera pas les libellés des champs/sous-champs, seulement leur code. 
Devrait être à 0 dans la plupart des cas.', '', '');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('AmazonEnabled', '0', 'Ce paramètre active la récupération des images de 
couverture sur Amazon. Vous DEVEZ positionner AmazonDevKey AmazonAssocTag si 
vous activez cette option', '', 'YesNo');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('AmazonReviews',0,'Affiche dans l''interface pro la description Amazon 
des livres - Vous DEVEZ définir AmazonDevKey et AmazonAssocTag si vous activez 
cette fonction','','YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('AmazonSimilarItems','0','Active ou non les fonctions Amazon ''les 
lecteurs ayant acheté...'' - Vous DEVEZ définir AmazonDevKey et AmazonAssocTag 
si vous activez cette fonction','','YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('OPACAmazonEnabled','0','Active ou non l''affichage du contenu Amazon à 
l''OPAC. - Vous DEVEZ définir AmazonDevKey et AmazonAssocTag si vous activez 
cette fonction','','YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('OPACAmazonSimilarItems','0','Active ou non les fonctions Amazon ''Les 
lecteurs ayant acheté...'' - Vous DEVEZ définir AmazonDevKey et AmazonAssocTag 
si vous activez cette fonction','','YesNo');
diff --git a/installer/data/mysql/updatedatabase.pl 
b/installer/data/mysql/updatedatabase.pl
index 65dd284..ae9af90 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -2319,8 +2319,7 @@ if (C4::Context-preference(Version)  
TransformToNum($DBversion)) {
 $DBversion = 3.01.00.021;
 if (C4::Context-preference(Version)  TransformToNum($DBversion)) {
 my $enable_reviews = C4::Context-preference('OPACAmazonEnabled') ? '1' : 
'0';
-$dbh-do(INSERT INTO systempreferences 
(variable,value,explanation,options,type) VALUES ('OPACAmazonReviews', 
'$enable_reviews', 'Display Amazon readers reviews on OPAC','','YesNo');
-);
+$dbh-do(INSERT INTO