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

(-)a/installer/data/mysql/atomicupdate/bug_23293.perl (+11 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
            ('OPACFineNoRenewalsIncludeCredits','1',NULL,'If enabled the value specified in OPACFineNoRenewals should include any unapplied account credits in the calculation','YesNo')
6
    });
7
8
    # Always end with this (adjust the bug info)
9
    SetVersion( $DBversion );
10
    print "Upgrade to $DBversion done (Bug 23293 - Add 'OPACFineNoRenewalsIncludeCredits' system preference)\n";
11
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 448-453 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
448
('OpenURLResolverURL', '', NULL, 'URL of OpenURL Resolver', 'Free'),
448
('OpenURLResolverURL', '', NULL, 'URL of OpenURL Resolver', 'Free'),
449
('OpenURLText', '', NULL, 'Text of OpenURL links (or image title if OpenURLImageLocation is defined)', 'Free'),
449
('OpenURLText', '', NULL, 'Text of OpenURL links (or image title if OpenURLImageLocation is defined)', 'Free'),
450
('OpenURLImageLocation', '', NULL, 'Location of image for OpenURL links', 'Free'),
450
('OpenURLImageLocation', '', NULL, 'Location of image for OpenURL links', 'Free'),
451
('OPACFineNoRenewalsIncludeCredits','1',NULL,'If enabled the value specified in OPACFineNoRenewals should include any unapplied account credits in the calculation','YesNo'),
451
('OPACShowOpenURL', '', NULL, 'Enable display of OpenURL links in OPAC search results and detail page', 'YesNo'),
452
('OPACShowOpenURL', '', NULL, 'Enable display of OpenURL links in OPAC search results and detail page', 'YesNo'),
452
('OPACOpenURLItemTypes', '', NULL, 'Show the OpenURL link only for these item types', 'Free'),
453
('OPACOpenURLItemTypes', '', NULL, 'Show the OpenURL link only for these item types', 'Free'),
453
('OrderPdfFormat','pdfformat::layout3pages','Controls what script is used for printing (basketgroups)','','free'),
454
('OrderPdfFormat','pdfformat::layout3pages','Controls what script is used for printing (basketgroups)','','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +6 lines)
Lines 602-607 OPAC: Link Here
602
            - pref: OPACFineNoRenewals
602
            - pref: OPACFineNoRenewals
603
              class: currency
603
              class: currency
604
            - '[% local_currency %] in fines (leave blank to disable).'
604
            - '[% local_currency %] in fines (leave blank to disable).'
605
        -
606
            - pref: OPACFineNoRenewalsIncludeCredits
607
              choices:
608
                  yes: Include
609
                  no: "Don't include"
610
            - outstanding/unapplied credits when applying the OPACFineNoRenewals rule to users
605
        -
611
        -
606
            - pref: OPACViewOthersSuggestions
612
            - pref: OPACViewOthersSuggestions
607
              choices:
613
              choices:
608
- 

Return to bug 23293