bug 5007: fixing the syspref for IntranetBiblioDefaultView
authorAndrew Chilton <andychilton@gmail.com>
Mon, 19 Jul 2010 04:24:06 +0000 (16:24 +1200)
committerGalen Charlton <gmcharlt@gmail.com>
Mon, 19 Jul 2010 14:29:07 +0000 (10:29 -0400)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref
kohaversion.pl

index 68e7cbc..6560aed 100755 (executable)
@@ -3687,6 +3687,13 @@ if (C4::Context->preference('Version') < TransformToNum($DBversion)){
     SetVersion ($DBversion);
 }
 
+$DBversion = '3.01.00.144';
+if (C4::Context->preference('Version') < TransformToNum($DBversion)){
+    $dbh->do(qq{UPDATE systempreferences SET value='normal' where value='default' and variable='IntranetBiblioDefaultView'});
+    print "Update the 'default' to 'normal' for the IntranetBiblioDefaultView syspref (bug 5007)";
+    SetVersion ($DBversion);
+}
+
 
 =item DropAllForeignKeys($table)
 
index b54f65b..4e06abc 100644 (file)
@@ -98,7 +98,7 @@ Cataloging:
             - By default, display biblio records in
             - pref: IntranetBiblioDefaultView
               choices:
-                  default: normal form.
+                  normal: normal form.
                   marc: MARC form.
                   labeled_marc: Labelled MARC form
                   isbd: ISBD form (see below).
index 37605eb..26ee160 100644 (file)
@@ -11,7 +11,7 @@ use strict;
 
 sub kohaversion {
 
-    our $VERSION = '3.01.00.143';
+    our $VERSION = '3.01.00.144';
 
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL