From 27d7bd41b89023a500626bfe5fe29f43aa0d58da Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Wed, 19 Sep 2018 16:29:19 +0100 Subject: [PATCH] Bug 7088: Add AllowRenewalOnHoldOverride syspref 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 Signed-off-by: Liz Rea --- .../mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql | 2 ++ installer/data/mysql/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/circulation.pref | 6 ++++++ 3 files changed, 9 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql 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 index 0000000000..e625b0cfb0 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql @@ -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'); diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index eae58f687c..7070554b4c 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -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'), 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..a5568f78fe 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 @@ -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 -- 2.11.0