From 5824b1df57a6e750d4e6301394f0fc04703cb641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Mei=C3=9Fner?= Date: Wed, 15 Jul 2015 10:49:41 +0200 Subject: [PATCH] Bug 14395: Add new syspref NoRenewalBeforePrecision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently the 'NoRenwalBefore' setting is based on the exact DateTime of the due date. This patch introduces a new global syspref for choosing if 'NoRenewalBefore' should instead be calculated based on date only. To test: 1) Apply patch, then run installer/data/mysql/updatedatabase.pl 2) Confirm that a new syspref NoRenewalBeforePrecision is available in administration. It should let you choose between 'date' (default) and 'exact time'. Sponsored-by: Hochschule für Gesundheit (hsg), Germany --- .../bug_14395-add-NoRenewalBeforePrecision-syspref.sql | 2 ++ .../prog/en/modules/admin/preferences/circulation.pref | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_14395-add-NoRenewalBeforePrecision-syspref.sql diff --git a/installer/data/mysql/atomicupdate/bug_14395-add-NoRenewalBeforePrecision-syspref.sql b/installer/data/mysql/atomicupdate/bug_14395-add-NoRenewalBeforePrecision-syspref.sql new file mode 100644 index 0000000..0b23b63 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_14395-add-NoRenewalBeforePrecision-syspref.sql @@ -0,0 +1,2 @@ +INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) +VALUES ('NoRenewalBeforePrecision', 'date', 'Calculate "No renewal before" based on date or exact time.', 'date|exact_time', 'Choice'); \ No newline at end of file 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 f9cd822..db00a80 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 @@ -254,6 +254,12 @@ Circulation: Calendar: the calendar to skip all days the library is closed. Datedue: the calendar to push the due date to the next open day - + - Calculate "No renewal before" based on + - pref: NoRenewalBeforePrecision + choices: + date: date. + exact_time: exact time. + - - When renewing checkouts, base the new due date on - pref: RenewalPeriodBase choices: -- 1.7.10.4