From 3f02663d31cf16fa2d3e54d61649a1216208e2e4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 14 Jan 2016 15:03:27 +0000 Subject: [PATCH] Bug 15582: DB changes - add new pref OPACFineNoRenewalsBlockAutoRenew Sponsored-by: University of the Arts London Signed-off-by: Jonathan Field Signed-off-by: Janet McGowan Signed-off-by: Nick Clemens --- installer/data/mysql/atomicupdate/bug_15582.sql | 2 ++ installer/data/mysql/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/circulation.pref | 7 +++++++ 3 files changed, 10 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_15582.sql diff --git a/installer/data/mysql/atomicupdate/bug_15582.sql b/installer/data/mysql/atomicupdate/bug_15582.sql new file mode 100644 index 0000000..eef41c6 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_15582.sql @@ -0,0 +1,2 @@ +INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) +VALUES ('OPACFineNoRenewalsBlockAutoRenew','0','','Block/Allow auto renewals if the patron owe more than OPACFineNoRenewals','YesNo') diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 3e0f93b..7244faf 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -256,6 +256,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('maxItemsInSearchResults','20',NULL,'Specify the maximum number of items to display for each result on a page of results','free'), ('MaxOpenSuggestions','',NULL,'Limit the number of open suggestions a patron can have at once','Integer'), ('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'), +('OPACFineNoRenewalsBlockAutoRenew','0','','Block/Allow auto renewals if the patron owe more than OPACFineNoRenewals','YesNo'), ('maxRecordsForFacets','20',NULL,NULL,'Integer'), ('maxreserves','50','','Define maximum number of holds a patron can place','Integer'), ('MaxSearchResultsItemsPerRecordStatusCheck','20','','Max number of items per record for which to check transit and hold status','Integer'), 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 a583f2b..b1aa4a1 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 @@ -452,6 +452,13 @@ Circulation: yes: Block no: Allow - renewing of items. + - + - If patron owe more than the value of OPACFineNoRenewals, + - pref: OPACFineNoRenewalsBlockAutoRenew + choices: + yes: Block + no: Allow + - his/her auto renewals. Checkin Policy: - - pref: BlockReturnOfWithdrawnItems -- 2.1.4