bug 9722: DBrev 3.13.00.004 to add OpacShowHoldNotes syspref
authorGalen Charlton <gmc@esilibrary.com>
Thu, 23 May 2013 15:29:24 +0000 (08:29 -0700)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 23 May 2013 15:29:24 +0000 (08:29 -0700)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index 0e6d991..12a0419 100755 (executable)
@@ -6444,16 +6444,6 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
-$DBversion = "3.11.00.XXX";
-if(CheckVersion($DBversion)) {
-    $dbh->do(
-"INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowHoldNotes',0,'Show hold notes on OPAC','','YesNo')"
-    );
-    print "Upgrade to $DBversion done (Bug 9722: Allow users to add notes when placing a hold in OPAC)\n";
-    SetVersion($DBversion);
-}
-
-
 $DBversion = "3.11.00.024";
 if ( CheckVersion($DBversion) ) {
     $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacItemLocation','callnum','Show the shelving location of items in the opac','callnum|ccode|location','Choice');");
@@ -6958,6 +6948,15 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.13.00.004";
+if(CheckVersion($DBversion)) {
+    $dbh->do(
+"INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowHoldNotes',0,'Show hold notes on OPAC','','YesNo')"
+    );
+    print "Upgrade to $DBversion done (Bug 9722: Allow users to add notes when placing a hold in OPAC)\n";
+    SetVersion($DBversion);
+}
+
 =head1 FUNCTIONS
 
 =head2 TableExists($table)
index 27b1013..ac431af 100644 (file)
@@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.13.00.003';
+    our $VERSION = '3.13.00.004';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install