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 / +2 lines)
Lines 663-667 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
663
('XSLTListsDisplay','default','','Enable XSLT stylesheet control over lists pages display on intranet','Free'),
663
('XSLTListsDisplay','default','','Enable XSLT stylesheet control over lists pages display on intranet','Free'),
664
('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'),
664
('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'),
665
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
665
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
666
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo')
666
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
667
('OPACFineNoRenewalsIncludeCredits','1',NULL,'If enabled the value specified in OPACFineNoRenewals should include any unapplied account credits in the calculation','YesNo')
667
;
668
;
(-)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