From 2982d3e2150f94cd749773dd27b0965d1b422476 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 MaxOutstandingBlockAutoRenew Sponsored-by: University of the Arts London --- installer/data/mysql/atomicupdate/bug_YYYY.sql | 3 +++ installer/data/mysql/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/circulation.pref | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_YYYY.sql diff --git a/installer/data/mysql/atomicupdate/bug_YYYY.sql b/installer/data/mysql/atomicupdate/bug_YYYY.sql new file mode 100644 index 0000000..931a6bd --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_YYYY.sql @@ -0,0 +1,3 @@ +INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) +VALUES ('MaxOutstandingBlockAutoRenew','0','','Block/Allow auto renewals if the patron owe more than maxoutstanding','YesNo') + diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index aa53139..1065cef 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -222,6 +222,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('MaxItemsForBatch','1000',NULL,'Max number of items record to process in a batch (modification or deletion)','Integer'), ('maxItemsInSearchResults','20',NULL,'Specify the maximum number of items to display for each result on a page of results','free'), ('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'), +('MaxOutstandingBlockAutoRenew','0','','Block/Allow auto renewals if the patron owe more than maxoutstanding','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 d9c7e25..7f802a1 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 @@ -408,6 +408,13 @@ Circulation: yes: Block no: Allow - renewing of items. + - + - If patron owe more than the value of maxoutstanding, + - pref: MaxOutstandingBlockAutoRenew + choices: + yes: Block + no: Allow + - his/her auto renewals. Checkin Policy: - - pref: BlockReturnOfWithdrawnItems -- 2.1.0