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

(-)a/installer/data/mysql/atomicupdate/bug_13958.perl (+18 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
4
    $dbh->do(q{
5
        INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
6
        SELECT
7
            'SuspensionsCalendar',
8
            IF( value='noFinesWhenClosed', 'noSuspensionsWhenClosed', 'ignoreCalendar'),
9
            'ignoreCalendar|noSuspensionsWhenClosed',
10
            'Specify whether to use the Calendar in calculating suspensions',
11
            'Choice'
12
        FROM systempreferences
13
        WHERE variable='finesCalendar';
14
    });
15
16
    SetVersion( $DBversion );
17
    print "Upgrade to $DBversion done (Bug 13958 - Add a SuspensionsCalendar syspref)\n";
18
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 582-587 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
582
('suggestion','1','','If ON, enables patron suggestions feature in OPAC','YesNo'),
582
('suggestion','1','','If ON, enables patron suggestions feature in OPAC','YesNo'),
583
('SuspendHoldsIntranet','1','Allow holds to be suspended from the intranet.',NULL,'YesNo'),
583
('SuspendHoldsIntranet','1','Allow holds to be suspended from the intranet.',NULL,'YesNo'),
584
('SuspendHoldsOpac','1','Allow holds to be suspended from the OPAC.',NULL,'YesNo'),
584
('SuspendHoldsOpac','1','Allow holds to be suspended from the OPAC.',NULL,'YesNo'),
585
('SuspensionsCalendar','noSuspensionsWhenClosed','ignoreCalendar|noSuspensionsWhenClosed','Specify whether to use the Calendar in calculating suspension expiration','Choice'),
585
('SvcMaxReportRows','10',NULL,'Maximum number of rows to return via the report web service.','Integer'),
586
('SvcMaxReportRows','10',NULL,'Maximum number of rows to return via the report web service.','Integer'),
586
('SwitchOnSiteCheckouts','0',NULL,'Automatically switch an on-site checkout to a normal checkout','YesNo'),
587
('SwitchOnSiteCheckouts','0',NULL,'Automatically switch an on-site checkout to a normal checkout','YesNo'),
587
('SyndeticsAuthorNotes','0','','Display Notes about the Author on OPAC from Syndetics','YesNo'),
588
('SyndeticsAuthorNotes','0','','Display Notes about the Author on OPAC from Syndetics','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-2 / +7 lines)
Lines 835-841 Circulation: Link Here
835
              choices:
835
              choices:
836
                  ignoreCalendar: directly.
836
                  ignoreCalendar: directly.
837
                  noFinesWhenClosed: not including days the library is closed.
837
                  noFinesWhenClosed: not including days the library is closed.
838
            -
838
        -
839
            - Calculate suspension expiration based on days overdue
840
            - pref: SuspensionsCalendar
841
              type: choice
842
              choices:
843
                  ignoreCalendar: directly.
844
                  noSuspensionsWhenClosed: not including days the library is closed.
839
        -
845
        -
840
            - pref: finesMode
846
            - pref: finesMode
841
              type: choice
847
              type: choice
842
- 

Return to bug 13958