Bugzilla – Attachment 90118 Details for
Bug 13958
Add a suspensionsCalendar syspref
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13958: Add SuspensionsCalendar syspref
Bug-13958-Add-SuspensionsCalendar-syspref.patch (text/plain), 3.50 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-05-27 15:20:51 UTC
(
hide
)
Description:
Bug 13958: Add SuspensionsCalendar syspref
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-05-27 15:20:51 UTC
Size:
3.50 KB
patch
obsolete
>From 9edc0cd0ff8e60ac018c78245a43cbead5f3ded0 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 27 May 2019 11:30:33 -0300 >Subject: [PATCH] Bug 13958: Add SuspensionsCalendar syspref >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Sponsored-by: Universidad Nacional de Córdoba >--- > .../data/mysql/atomicupdate/bug_13958.perl | 18 ++++++++++++++++++ > installer/data/mysql/sysprefs.sql | 1 + > .../modules/admin/preferences/circulation.pref | 8 +++++++- > 3 files changed, 26 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_13958.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_13958.perl b/installer/data/mysql/atomicupdate/bug_13958.perl >new file mode 100644 >index 0000000000..3c3abec8cd >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_13958.perl >@@ -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"; >+} >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index c8086043c9..5fae468c46 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -582,6 +582,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'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >index ee0193a6f8..3b09e75987 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >@@ -835,7 +835,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 >-- >2.21.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13958
:
90118
|
90119
|
95131
|
95132