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 600-605 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
600
('suggestion','1','','If ON, enables patron suggestions feature in OPAC','YesNo'),
600
('suggestion','1','','If ON, enables patron suggestions feature in OPAC','YesNo'),
601
('SuspendHoldsIntranet','1','Allow holds to be suspended from the intranet.',NULL,'YesNo'),
601
('SuspendHoldsIntranet','1','Allow holds to be suspended from the intranet.',NULL,'YesNo'),
602
('SuspendHoldsOpac','1','Allow holds to be suspended from the OPAC.',NULL,'YesNo'),
602
('SuspendHoldsOpac','1','Allow holds to be suspended from the OPAC.',NULL,'YesNo'),
603
('SuspensionsCalendar','noSuspensionsWhenClosed','ignoreCalendar|noSuspensionsWhenClosed','Specify whether to use the Calendar in calculating suspension expiration','Choice'),
603
('SvcMaxReportRows','10',NULL,'Maximum number of rows to return via the report web service.','Integer'),
604
('SvcMaxReportRows','10',NULL,'Maximum number of rows to return via the report web service.','Integer'),
604
('SwitchOnSiteCheckouts','0',NULL,'Automatically switch an on-site checkout to a normal checkout','YesNo'),
605
('SwitchOnSiteCheckouts','0',NULL,'Automatically switch an on-site checkout to a normal checkout','YesNo'),
605
('SyndeticsAuthorNotes','0','','Display Notes about the Author on OPAC from Syndetics','YesNo'),
606
('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 840-846 Circulation: Link Here
840
              choices:
840
              choices:
841
                  ignoreCalendar: directly.
841
                  ignoreCalendar: directly.
842
                  noFinesWhenClosed: not including days the library is closed.
842
                  noFinesWhenClosed: not including days the library is closed.
843
            -
843
        -
844
            - Calculate suspension expiration based on days overdue
845
            - pref: SuspensionsCalendar
846
              type: choice
847
              choices:
848
                  ignoreCalendar: directly.
849
                  noSuspensionsWhenClosed: not including days the library is closed.
844
        -
850
        -
845
            - pref: finesMode
851
            - pref: finesMode
846
              type: choice
852
              type: choice
847
- 

Return to bug 13958