From 3a29a06955ab247a306d356ab107e10738fcace8 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 23 May 2013 08:29:24 -0700 Subject: [PATCH] bug 9722: DBrev 3.13.00.004 to add OpacShowHoldNotes syspref Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 19 +++++++++---------- kohaversion.pl | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 0e6d9914de..12a0419ef4 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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) diff --git a/kohaversion.pl b/kohaversion.pl index 27b10134f1..ac431af627 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -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 -- 2.20.1