DB rev 061: added ShowPatronImageInWebBasedSelfCheck (bug 3436)
authorGalen Charlton <gmcharlt@gmail.com>
Wed, 16 Sep 2009 11:43:18 +0000 (07:43 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 16 Sep 2009 11:44:09 +0000 (07:44 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
admin/systempreferences.pl
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index e8071e9..2ce1874 100755 (executable)
@@ -149,6 +149,7 @@ $tabsysprefs{globalDueDate}                  = "Circulation";
 $tabsysprefs{holdCancelLength}               = "Circulation";
 $tabsysprefs{itemBarcodeInputFilter}         = "Circulation";
 $tabsysprefs{WebBasedSelfCheck}              = "Circulation";
+$tabsysprefs{ShowPatronImageInWebBasedSelfCheck} = "Circulation";
 $tabsysprefs{CircControl}                    = "Circulation";
 $tabsysprefs{finesCalendar}                  = "Circulation";
 $tabsysprefs{previousIssuesDefaultSortOrder} = "Circulation";
index 9987b16..10c3451 100755 (executable)
@@ -2668,6 +2668,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     SetVersion ($DBversion);
 }
 
+$DBversion = '3.01.00.061';
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('ShowPatronImageInWebBasedSelfCheck', '0', 'If ON, displays patron image when a patron uses web-based self-checkout', '', 'YesNo')");
+       print "Upgrade to $DBversion done ( Added ShowPatronImageInWebBasedSelfCheck system preference )\n";
+    SetVersion ($DBversion);
+}
+
 =item DropAllForeignKeys($table)
 
   Drop all foreign keys of the table $table
index d4ddd35..ec5684f 100644 (file)
@@ -10,7 +10,7 @@
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.01.00.060';
+    our $VERSION = '3.01.00.061';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install