Bug 7088: Add AllowRenewalOnHoldOverride syspref
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Wed, 19 Sep 2018 15:29:19 +0000 (16:29 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 9 May 2019 14:40:49 +0000 (14:40 +0000)
Enables the renewal of on hold items with specified due dates to be turned on/off

Sponsored-by: Cheshire Libraries Shared Services
Sponsored-by: Halton Borough Council
Sponsored-by: Sefton Council

Signed-off-by: Andrew Farthing <Andrew.Farthing@sefton.gov.uk>

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref

diff --git a/installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql b/installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql
new file mode 100644 (file)
index 0000000..e625b0c
--- /dev/null
@@ -0,0 +1,2 @@
+INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES
+('AllowRenewalOnHoldOverride','1','','If on, allow items on hold to be renewed with a specified due date','YesNo');
index eae58f6..7070554 100644 (file)
@@ -38,6 +38,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('AllowPurchaseSuggestionBranchChoice','0','1','Allow user to choose branch when making a purchase suggestion','YesNo'),
 ('AllowRenewalIfOtherItemsAvailable','0',NULL,'If enabled, allow a patron to renew an item with unfilled holds if other available items can fill that hold.','YesNo'),
 ('AllowRenewalLimitOverride','0',NULL,'if ON, allows renewal limits to be overridden on the circulation screen','YesNo'),
+('AllowRenewalOnHoldOverride','1',NULL,'If ON, allow items on hold to be renewed with a specified due date','YesNo'),
 ('AllowReturnToBranch','anywhere','anywhere|homebranch|holdingbranch|homeorholdingbranch','Where an item may be returned','Choice'),
 ('AllowSelfCheckReturns','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
 ('AllowStaffToSetCheckoutsVisibilityForGuarantor','0',NULL,'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.',  'YesNo'),
index 6f8a7c5..a5568f7 100644 (file)
@@ -198,6 +198,12 @@ Circulation:
                   no: "Don't allow"
             - staff to manually override renewal blocks and renew a checkout when it would go over the renewal limit or be premature with respect to the "No renewal before" setting in the circulation policy or has been scheduled for automatic renewal.
         -
+            - pref: AllowRenewalOnHoldOverride
+              choices:
+                  yes: Allow
+                  no: "Don't allow"
+            - staff to renew items that are on hold by manually specifying a due date.
+        -
             - pref: AllowItemsOnHoldCheckout
               choices:
                   yes: Allow