From c03a3a0d923f4bdd1c231d774c729ced2885cebf Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 23 Aug 2009 20:21:27 -0400 Subject: [PATCH] bug 2611, 1934 followup - DBrevs 049 and 050 Assigned DBrevs as follows: 049: additional correction per bug 2611 050: OPACSearchForTitleIn system preference Also fixed syntax errors in code for 050. Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 29 ++++++++------------------ kohaversion.pl | 2 +- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 3323e3c8ba..dc7656b56f 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2503,7 +2503,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { print "Upgrade to $DBversion done (added AWSPrivateKey syspref - note that if you use enhanced content from Amazon, this should be set right away.)\n"; } -$DBversion = '3.01.00.XXX'; +$DBversion = '3.01.00.042'; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACFineNoRenewals','99999','Fine Limit above which user canmot renew books via OPAC','','Integer')"); SetVersion ($DBversion); @@ -2567,30 +2567,19 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { print " Upgrade to $DBversion done (bug 2611: fix spelling/capitalization in permission flag descriptions)\n"; } -$DBversion = '3.01.00.XXX'; -if (C4::Context->preference("Version") < TransformToNum($DBversion)) { - $dbh->do("UPDATE userflags SET flagdesc='View Catalog (Librarian Interface)' WHERE bit=2;"); - $dbh->do("UPDATE userflags SET flagdesc='Edit Catalog (Modify bibliographic/holdings data)' WHERE bit=9;"); - $dbh->do("UPDATE userflags SET flagdesc='Allow to edit authorities' WHERE bit=14;"); - $dbh->do("UPDATE userflags SET flagdesc='Allow to access to the reports module' WHERE bit=16;"); - $dbh->do("UPDATE userflags SET flagdesc='Allow to manage serials subscriptions' WHERE bit=15;"); - SetVersion ($DBversion); - print "Upgrade to $DBversion done (fix spelling/capitalization to make things match the standard.)\n"; -} - -$DBversion = '3.01.00.XXX'; +$DBversion = '3.01.00.049'; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("UPDATE permissions SET description = 'Perform inventory (stocktaking) of your catalog' WHERE code = 'inventory';"); SetVersion ($DBversion); - print "Upgrade to $DBversion done (changed catalogue to catalog per the standard)\n"; + print "Upgrade to $DBversion done (bug 2611: changed catalogue to catalog per the standard)\n"; } -$DBversion = '3.01.00.XXX'; - if (C4::Context->preference("Version") < TransformToNum($DBversion)) { - $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACSearchForTitleIn','
  • Other Libraries (WorldCat)
  • \n
  • Other Databases (Google Scholar)
  • \n
  • Online Stores (Bookfinder.com)
  • ','Enter the HTML that will appear in the \'Search for this title in\' box on the detail page in the OPAC. Enter TITLE, AUTHOR, or ISBN in place of their respective variables in the URL. Leave blank to disable \'More Searches\' menu.','70|10','Textarea');"); - SetVersion ($DBversion); - print "Upgrade to $DBversion done (Add OPACSearchForTitleIn syspref)\n"; - } +$DBversion = '3.01.00.050'; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACSearchForTitleIn','
  • \nOther Libraries (WorldCat)
  • \n
  • \nOther Databases (Google Scholar)
  • \n
  • \nOnline Stores (Bookfinder.com)
  • ','Enter the HTML that will appear in the ''Search for this title in'' box on the detail page in the OPAC. Enter TITLE, AUTHOR, or ISBN in place of their respective variables in the URL. Leave blank to disable ''More Searches'' menu.','70|10','Textarea');"); + SetVersion ($DBversion); + print "Upgrade to $DBversion done (bug 1934: Add OPACSearchForTitleIn syspref)\n"; +} =item DropAllForeignKeys($table) diff --git a/kohaversion.pl b/kohaversion.pl index 99051474b9..e9a523039d 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -10,7 +10,7 @@ use strict; sub kohaversion { - our $VERSION = '3.01.00.048'; + our $VERSION = '3.01.00.050'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.5