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

(-)a/installer/data/mysql/atomicupdate/bug_26302.perl (+9 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q|
4
        INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES
5
            ('resultsMaxItems','2','','Maximum number of available items displayed in search results','Integer'),
6
            ('resultsMaxItemsUnavailable','1','','Maximum number of unavailable items displayed in search results','Integer')
7
    |);
8
    NewVersion( $DBversion, 26302, "Add preferences resultsMaxItems and resultsMaxItemsUnavailable");
9
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+2 lines)
Lines 576-581 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'),
580
('resultsMaxItemsUnavailable','1','','Maximum number of unavailable items displayed in search results','Integer'),
579
('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'),
580
('ReturnLog','1',NULL,'If ON, enables the circulation (returns) log','YesNo'),
582
('ReturnLog','1',NULL,'If ON, enables the circulation (returns) log','YesNo'),
581
('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'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +7 lines)
Lines 354-359 OPAC: Link Here
354
            - "List the following not for loan statuses as available for reference in OPAC search results:"
354
            - "List the following not for loan statuses as available for reference in OPAC search results:"
355
            - pref: Reference_NFL_Statuses
355
            - pref: Reference_NFL_Statuses
356
            - "(Use | as delimiter.)"
356
            - "(Use | as delimiter.)"
357
        -
358
            - Show no more than
359
            - pref: resultsMaxItems
360
            - (available) individual items on the OPAC XSLT search results, and show no more than
361
            - pref: resultsMaxItemsUnavailable
362
            - "'really unavailable' individual items in categories like Checked out, Damaged, On Hold, etc."
363
357
    Features:
364
    Features:
358
        -
365
        -
359
            - pref: OPACReportProblem
366
            - pref: OPACReportProblem
360
- 

Return to bug 26302