Bugzilla – Attachment 89380 Details for
Bug 15260
Option for extended loan with useDaysMode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15260: Add new useDaysMode option "Dayweek"
Bug-15260-Add-new-useDaysMode-option-Dayweek.patch (text/plain), 4.02 KB, created by
Liz Rea
on 2019-05-06 17:44:53 UTC
(
hide
)
Description:
Bug 15260: Add new useDaysMode option "Dayweek"
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2019-05-06 17:44:53 UTC
Size:
4.02 KB
patch
obsolete
>From 38bbc1c4a8c849b25b935d8db6ff356a3c4bf257 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Thu, 31 Jan 2019 15:36:52 +0000 >Subject: [PATCH] Bug 15260: Add new useDaysMode option "Dayweek" > >This patch adds a new "Dayweek" option to the useDaysMode syspref, it >has the description: "the calendar to push the due date to the next open >day on the same weekday". > >Sponsored-by: Cheshire West and Chester and Cheshire East Councils >Sponsored-by: Newcastle City Council >Sponsored-by: Sefton Council > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >--- > .../bug_15260-add_Dayweek_option_to_useDaysMode_syspref.perl | 8 ++++++++ > installer/data/mysql/sysprefs.sql | 2 +- > .../prog/en/modules/admin/preferences/circulation.pref | 1 + > 3 files changed, 10 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_15260-add_Dayweek_option_to_useDaysMode_syspref.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_15260-add_Dayweek_option_to_useDaysMode_syspref.perl b/installer/data/mysql/atomicupdate/bug_15260-add_Dayweek_option_to_useDaysMode_syspref.perl >new file mode 100644 >index 0000000000..fd585025f2 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_15260-add_Dayweek_option_to_useDaysMode_syspref.perl >@@ -0,0 +1,8 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do( 'UPDATE systempreferences SET options = "Calendar|Days|Datedue|Dayweek", explanation = "Choose the method for calculating due date: select Calendar, Datedue or Dayweek to use the holidays module, and Days to ignore the holidays module" WHERE variable = "useDaysMode"' ); >+ >+ # Always end with this (adjust the bug info) >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug XXXXX - description)\n"; >+} >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index eae58f687c..be633c71cc 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -639,7 +639,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('UseBranchTransferLimits','0','','If ON, Koha will will use the rules defined in branch_transfer_limits to decide if an item transfer should be allowed.','YesNo'), > ('UseControlNumber','0','','If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','YesNo'), > ('UseCourseReserves','0',NULL,'Enable the course reserves feature.','YesNo'), >-('useDaysMode','Calendar','Calendar|Days|Datedue','Choose the method for calculating due date: select Calendar to use the holidays module, and Days to ignore the holidays module','Choice'), >+('useDaysMode','Calendar','Calendar|Days|Datedue|Dayweek','Choose the method for calculating due date: select Calendar, Datedue or Dayweek to use the holidays module, and Days to ignore the holidays module','Choice'), > ('useDefaultReplacementCost', '0', NULL, 'default replacement cost defined in item type', 'YesNo'), > ('useDischarge','','','Allows librarians to discharge borrowers and borrowers to request a discharge','YesNo'), > ('UseEmailReceipts','0','','Send email receipts for payments and write-offs','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 6f8a7c5dc7..e8043b7b38 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 >@@ -282,6 +282,7 @@ Circulation: > Days: circulation rules only. > Calendar: the calendar to skip all days the library is closed. > Datedue: the calendar to push the due date to the next open day >+ Dayweek: the calendar to push the due date to the next open day on the same weekday > - > - Calculate "No renewal before" based on > - pref: NoRenewalBeforePrecision >-- >2.11.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 15260
:
87906
|
88052
|
88053
|
88054
|
88055
|
88056
|
88057
|
88059
|
88607
|
88608
|
88609
|
88610
|
88611
|
88612
|
88613
|
89178
|
89380
|
89381
|
89382
|
89383
|
89384
|
89385
|
89386
|
89387
|
89388
|
89885
|
94880
|
94881
|
94882
|
94883
|
94884
|
94885
|
94886
|
94887
|
94888
|
94889