Bugzilla – Attachment 99986 Details for
Bug 24608
Allow modification of checkout due date
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24608: Add EditDueDates syspref
Bug-24608-Add-EditDueDates-syspref.patch (text/plain), 3.42 KB, created by
PTFS Europe Sandboxes
on 2020-03-03 11:55:43 UTC
(
hide
)
Description:
Bug 24608: Add EditDueDates syspref
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2020-03-03 11:55:43 UTC
Size:
3.42 KB
patch
obsolete
>From 800812789bafaeff4554d6d42108118a70041682 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Thu, 13 Feb 2020 14:11:05 +0000 >Subject: [PATCH] Bug 24608: Add EditDueDates syspref > >This patch adds a EditDueDates syspref which determines whether a button >for editing due dates appears in a patron's checkouts list > >Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> >--- > .../data/mysql/atomicupdate/bug_24083_EditDueDates_syspref.perl | 6 ++++++ > installer/data/mysql/sysprefs.sql | 1 + > .../prog/en/modules/admin/preferences/circulation.pref | 6 ++++++ > 3 files changed, 13 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_24083_EditDueDates_syspref.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_24083_EditDueDates_syspref.perl b/installer/data/mysql/atomicupdate/bug_24083_EditDueDates_syspref.perl >new file mode 100644 >index 0000000000..778696ef30 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_24083_EditDueDates_syspref.perl >@@ -0,0 +1,6 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do( q| INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) VALUES ('EditDueDates', '0', 'If enabled, it is possible to modify due dates in a patron checkout list ', '', 'YesNo'); | ); >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 24083 - Add EditDueDates syspref)\n"; >+} >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 40f7a4740f..8e9ccf0db4 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -164,6 +164,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('DumpTemplateVarsIntranet', '0', NULL , 'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.', 'YesNo'), > ('DumpTemplateVarsOpac', '0', NULL , 'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.', 'YesNo'), > ('EasyAnalyticalRecords','0','','If on, display in the catalogue screens tools to easily setup analytical record relationships','YesNo'), >+('EditDueDates','0','','If on, it is possible to edit due dates within a patron checkouts list','YesNo'), > ('ElasticsearchIndexStatus_authorities', '0', 'Authorities index status', NULL, NULL), > ('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL), > ('ElasticsearchMARCFormat', 'ISO2709', 'ISO2709|ARRAY', 'Elasticsearch MARC format. ISO2709 format is recommended as it is faster and takes less space, whereas array is searchable.', 'Choice'), >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 1683d9f034..442525d48c 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 >@@ -157,6 +157,12 @@ Circulation: > yes: Allow > no: "Don't allow" > - patrons to submit notes about checked out items. >+ - >+ - pref: EditDueDates >+ choices: >+ yes: Allow >+ no: "Don't allow" >+ - editing of due dates in a patron checkouts list > > Checkout Policy: > - >-- >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 24608
:
98902
|
98903
|
98908
|
98909
|
98914
|
98915
|
98931
|
98932
|
99240
|
99880
|
99979
|
99986
|
99987
|
99988
|
99989
|
99990
|
126195
|
126196
|
126197
|
126198
|
126201