bug 3881: remove unused OpacPrivacy syspref
authorGalen Charlton <gmcharlt@gmail.com>
Fri, 22 Oct 2010 02:17:15 +0000 (22:17 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Fri, 22 Oct 2010 02:21:24 +0000 (22:21 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
admin/systempreferences.pl
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
kohaversion.pl

index 58f8ac7..d7d7413 100755 (executable)
@@ -110,7 +110,6 @@ $tabsysprefs{noOPACUserLogin}       = "Admin";
 $tabsysprefs{'OAI-PMH:ConfFile'}    = "Admin";
 $tabsysprefs{OpacAddMastheadLibraryPulldown}    = "Admin";
 $tabsysprefs{opaclargeimage}        = "Admin";
-$tabsysprefs{OpacPrivacy}           = "Admin";
 $tabsysprefs{OPACXSLTDetailsDisplay}    = "Admin";
 $tabsysprefs{OPACXSLTResultsDisplay}    = "Admin";
 $tabsysprefs{PDFFontType}           = "Admin";
index cf0c407..11f6c5a 100755 (executable)
@@ -4,7 +4,7 @@
 # Database Updater
 # This script checks for required updates to the database.
 
-# Part of the Koha Library Software www.koha.org
+# Part of the Koha Library Software www.koha-community.org
 # Licensed under the GPL.
 
 # Bugs/ToDo:
@@ -3776,6 +3776,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     SetVersion ($DBversion);
 }
 
+$DBversion = "3.02.00.002";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    $dbh->do(q{DELETE FROM systempreferences WHERE variable = 'OpacPrivacy'});
+    print "Upgrade to $DBversion done (bug 3881: remove unused OpacPrivacy system preference)\n";
+    SetVersion ($DBversion);
+}
+
 =item DropAllForeignKeys($table)
 
   Drop all foreign keys of the table $table
index a3b0bf1..c844df4 100644 (file)
@@ -299,10 +299,3 @@ OPAC:
                   yes: Keep
                   no: "Don't keep"
             - patron search history in the OPAC.
-        -
-            - pref: OpacPrivacy
-              default: 0
-              choices:
-                  yes: Allow
-                  no: "Don't allow"
-            - patrons to opt-in/opt-out of saving their reading/circulation history.
index b231acd..0f676dc 100644 (file)
@@ -10,7 +10,7 @@
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.02.00.001';
+    our $VERSION = '3.02.00.002';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install