[Koha-patches] [PATCH] Add system preference for maxItemsinSearchResults ( 2/2 )
Michael Hafen
mdhafen at tech.washk12.org
Tue Feb 24 22:32:38 CET 2009
This adds the updatedatabase code to add the system preference on
update.
---
installer/data/mysql/updatedatabase.pl | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl
index 6b4d6ba..261acb8 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -2221,6 +2221,17 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
+$DBversion = '3.01.00.022';
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+ $dbh->do("
+ INSERT INTO `systempreferences`\
+ (variable,value,explanation,options,type) VALUES\
+ ('maxItemsinSearchResult',2,'Specify the maximum number of grouped items to\
+ show per status on the search results pages. Items are grouped by status,\
+ library, location, item type, and call number.',NULL,'Integer')
+ ");
+}
+
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table
--
1.5.6.3
More information about the Koha-patches
mailing list