View | Details | Raw Unified | Return to bug 26302
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_26302.perl (-2 / +2 lines)
Lines 2-9 $DBversion = 'XXX'; # will be replaced by the RM Link Here
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q|
3
    $dbh->do(q|
4
        INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES
4
        INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES
5
            ('resultsMaxItems','2','','Maximum number of available items displayed in search results','Integer'),
5
            ('resultsMaxItems','1','','Maximum number of available items displayed in search results','Integer'),
6
            ('resultsMaxItemsUnavailable','1','','Maximum number of unavailable items displayed in search results','Integer')
6
            ('resultsMaxItemsUnavailable','0','','Maximum number of unavailable items displayed in search results','Integer')
7
    |);
7
    |);
8
    NewVersion( $DBversion, 26302, "Add preferences resultsMaxItems and resultsMaxItemsUnavailable");
8
    NewVersion( $DBversion, 26302, "Add preferences resultsMaxItems and resultsMaxItemsUnavailable");
9
}
9
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-3 / +2 lines)
Lines 576-583 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
576
('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'),
576
('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'),
577
('RestrictedPageTitle','',NULL,'Title of the restricted page (breadcrumb and header)','Free'),
577
('RestrictedPageTitle','',NULL,'Title of the restricted page (breadcrumb and header)','Free'),
578
('RestrictionBlockRenewing','0',NULL,'If patron is restricted, should renewal be allowed or blocked','YesNo'),
578
('RestrictionBlockRenewing','0',NULL,'If patron is restricted, should renewal be allowed or blocked','YesNo'),
579
('resultsMaxItems','2','','Maximum number of available items displayed in search results','Integer'),
579
('resultsMaxItems','1','','Maximum number of available items displayed in search results','Integer'),
580
('resultsMaxItemsUnavailable','1','','Maximum number of unavailable items displayed in search results','Integer'),
580
('resultsMaxItemsUnavailable','0','','Maximum number of unavailable items displayed in search results','Integer'),
581
('ReturnBeforeExpiry','0',NULL,'If ON, checkout will be prevented if returndate is after patron card expiry','YesNo'),
581
('ReturnBeforeExpiry','0',NULL,'If ON, checkout will be prevented if returndate is after patron card expiry','YesNo'),
582
('ReturnLog','1',NULL,'If ON, enables the circulation (returns) log','YesNo'),
582
('ReturnLog','1',NULL,'If ON, enables the circulation (returns) log','YesNo'),
583
('ReturnpathDefault','',NULL,'Use this email address as return path or bounce address for undeliverable emails','Free'),
583
('ReturnpathDefault','',NULL,'Use this email address as return path or bounce address for undeliverable emails','Free'),
584
- 

Return to bug 26302