Bug 13958: Add SuspensionsCalendar syspref

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Tomás Cohen Arazi 2019-05-27 11:30:33 -03:00 committed by Martin Renvoize
parent 44424b209c
commit 44c7332470
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
3 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,18 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
SELECT
'SuspensionsCalendar',
IF( value='noFinesWhenClosed', 'noSuspensionsWhenClosed', 'ignoreCalendar'),
'ignoreCalendar|noSuspensionsWhenClosed',
'Specify whether to use the Calendar in calculating suspensions',
'Choice'
FROM systempreferences
WHERE variable='finesCalendar';
});
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 13958 - Add a SuspensionsCalendar syspref)\n";
}

View file

@ -600,6 +600,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('suggestion','1','','If ON, enables patron suggestions feature in OPAC','YesNo'),
('SuspendHoldsIntranet','1','Allow holds to be suspended from the intranet.',NULL,'YesNo'),
('SuspendHoldsOpac','1','Allow holds to be suspended from the OPAC.',NULL,'YesNo'),
('SuspensionsCalendar','noSuspensionsWhenClosed','ignoreCalendar|noSuspensionsWhenClosed','Specify whether to use the Calendar in calculating suspension expiration','Choice'),
('SvcMaxReportRows','10',NULL,'Maximum number of rows to return via the report web service.','Integer'),
('SwitchOnSiteCheckouts','0',NULL,'Automatically switch an on-site checkout to a normal checkout','YesNo'),
('SyndeticsAuthorNotes','0','','Display Notes about the Author on OPAC from Syndetics','YesNo'),

View file

@ -840,7 +840,13 @@ Circulation:
choices:
ignoreCalendar: directly.
noFinesWhenClosed: not including days the library is closed.
-
-
- Calculate suspension expiration based on days overdue
- pref: SuspensionsCalendar
type: choice
choices:
ignoreCalendar: directly.
noSuspensionsWhenClosed: not including days the library is closed.
-
- pref: finesMode
type: choice