followup bug fix 3712
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 20 Oct 2009 09:26:06 +0000 (11:26 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 20 Oct 2009 09:31:52 +0000 (11:31 +0200)
thanks Zeno Tajoli

admin/systempreferences.pl
installer/data/mysql/updatedatabase30.pl
kohaversion.pl

index 904fb4b..55a35e2 100755 (executable)
@@ -116,7 +116,7 @@ $tabsysprefs{Stemming}                    = "Cataloging";
 $tabsysprefs{WeightFields}                = "Cataloging";
 $tabsysprefs{NoZebra}                     = "Cataloging";
 $tabsysprefs{NoZebraIndexes}              = "Cataloging";
-$tabsysprefs{ReceiveBackIssues}           = "Cataloging";
+#$tabsysprefs{ReceiveBackIssues}           = "Cataloging";
 $tabsysprefs{DefaultClassificationSource} = "Cataloging";
 $tabsysprefs{RoutingSerials}              = "Cataloging";
 $tabsysprefs{'item-level_itypes'}         = "Cataloging";
@@ -171,7 +171,7 @@ $tabsysprefs{checkdigit}                   = "Patrons";
 $tabsysprefs{intranetreadinghistory}       = "Patrons";
 $tabsysprefs{NotifyBorrowerDeparture}      = "Patrons";
 $tabsysprefs{memberofinstitution}          = "Patrons";
-$tabsysprefs{ReadingHistory}               = "Patrons";
+#$tabsysprefs{ReadingHistory}               = "Patrons";
 $tabsysprefs{BorrowerMandatoryField}       = "Patrons";
 $tabsysprefs{borrowerRelationship}         = "Patrons";
 $tabsysprefs{BorrowersTitles}              = "Patrons";
@@ -218,6 +218,7 @@ $tabsysprefs{AWSPrivateKey}          = "EnhancedContent";
 $tabsysprefs{AmazonLocale}           = "EnhancedContent";
 $tabsysprefs{AmazonAssocTag}         = "EnhancedContent";
 $tabsysprefs{AmazonSimilarItems}     = "EnhancedContent";
+$tabsysprefs{OPACAmazonCoverImages}  = "EnhancedContent";
 $tabsysprefs{OPACAmazonContent}      = "EnhancedContent";
 $tabsysprefs{OPACAmazonSimilarItems} = "EnhancedContent";
 
index 00fa2e7..6d450a7 100644 (file)
@@ -598,6 +598,23 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     SetVersion ($DBversion);
 }  
 
+$DBversion = "3.00.04.019";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    my $authdisplayhierarchy = C4::Context->preference('AuthDisplayHierarchy');
+    if ($authdisplayhierarchy < 1){
+       $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)VALUES('AuthDisplayHierarchy','0','To display authorities in a hierarchy way. Put ON only if you have a thesaurus. Default is OFF','','YesNo')");
+    };
+
+    my $opacamazon = C4::Context->preference('OPACAmazonCoverImages');
+    if ($opacamazon < 1){
+       $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)VALUES('OPACAmazonCoverImages','0','Display cover images on OPAC from Amazon Web Services. Default is OFF','','YesNo')");
+    };
+
+    print "Upgrade to $DBversion done (new AuthDisplayHierarchy, )\n";
+    SetVersion ($DBversion);
+}  
+
+
 =item DropAllForeignKeys($table)
 
   Drop all foreign keys of the table $table
index cbe5173..62e0770 100644 (file)
@@ -10,7 +10,7 @@
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.00.04.018';
+    our $VERSION = '3.00.04.019';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install