From c11cd989fbb67d6b893fd32b23397d1121ffaaa3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 17 Oct 2017 10:54:33 -0300 Subject: [PATCH] Bug 12363: Add new pref MarkLostItemsAsReturned --- installer/data/mysql/atomicupdate/bug_12363.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_12363.sql diff --git a/installer/data/mysql/atomicupdate/bug_12363.sql b/installer/data/mysql/atomicupdate/bug_12363.sql new file mode 100644 index 0000000000..65abfc486c --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_12363.sql @@ -0,0 +1,2 @@ +INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES +('MarkLostItemsAsReturned','1','','Mark items as returned when flagged as lost','YesNo'); diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 1cb1ae10c0..818eb4b817 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -255,6 +255,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('MARCAuthorityControlField008','|| aca||aabn | a|a d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'), ('MarcFieldsToOrder','',NULL,'Set the mapping values for a new order line created from a MARC record in a staged file. In a YAML format.','textarea'), ('MarcItemFieldsToOrder','',NULL,'Set the mapping values for new item records created from a MARC record in a staged file. In a YAML format.','textarea'), +('MarkLostItemsAsReturned','1','','Mark items as returned when flagged as lost','YesNo'), ('MARCOrgCode','OSt','','Define MARC Organization Code for MARC21 records - http://www.loc.gov/marc/organizations/orgshome.html','free'), ('MaxFine',NULL,'','Maximum fine a patron can have for all late returns at one moment. Single item caps are specified in the circulation rules matrix.','Integer'), ('MaxItemsToDisplayForBatchDel','1000',NULL,'Display up to a given number of items in a single item deletionbatch.','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 738bd5f07c..30b39921da 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 @@ -406,6 +406,12 @@ Circulation: nothing : "do nothing" - . - + - pref: MarkLostItemsAsReturned + choices: + yes: "Mark" + no: "Do not mark" + - "items as returned when flagged as lost" + - - pref: AllowMultipleIssuesOnABiblio choices: yes: Allow -- 2.11.0