From 362f4935a2b176d3982be4457358e9b75afe7427 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Mon, 9 Mar 2026 18:52:27 +0000 Subject: [PATCH] Bug 42044: Add new system preference 'AutoUpdateRecordStatus' --- installer/data/mysql/atomicupdate/bug_42044.pl | 17 +++++++++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 1 + .../modules/admin/preferences/cataloguing.pref | 6 ++++++ 3 files changed, 24 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_42044.pl diff --git a/installer/data/mysql/atomicupdate/bug_42044.pl b/installer/data/mysql/atomicupdate/bug_42044.pl new file mode 100755 index 0000000000..707e5d07e4 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_42044.pl @@ -0,0 +1,17 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); + +return { + bug_number => "42044", + description => "New system preference 'AutoUpdateRecordStatus'", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + $dbh->do( + q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('AutoUpdateRecordStatus','0',NULL,'Automatically update record status (LDR/5) when modifying a record','YesNo')} + ); + + say $out "Added new system preference 'AutoUpdateRecordStatus'"; + }, +}; diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index f1357cd8ce..88d82b5dad 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -114,6 +114,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('AutoSelfCheckPass','',NULL,'Password to be used for automatic web-based self-check. Only applies if AutoSelfCheckAllowed syspref is turned on.','Free'), ('AutoShareWithMana','subscription',NULL,'defines datas automatically shared with mana','multiple'), ('AutoSwitchPatron', '0', NULL, 'Auto switch to patron', 'YesNo'), +('AutoUpdateRecordStatus','0',NULL,'Automatically update record status (LDR/5) when modifying a record','YesNo'), ('Babeltheque','0',NULL,'Turn ON Babeltheque content - See babeltheque.com to subscribe to this service','YesNo'), ('Babeltheque_url_js','',NULL,'Url for Babeltheque javascript (e.g. http://www.babeltheque.com/bw_XX.js)','Free'), ('Babeltheque_url_update','',NULL,'Url for Babeltheque update (E.G. http://www.babeltheque.com/.../file.csv.bz2)','Free'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref index e2831bcb38..a5de8073f3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref @@ -217,6 +217,12 @@ Cataloging: 1: Strip 0: "Don't strip" - leading and trailing whitespace characters (including spaces, tabs, line breaks and carriage returns) and inner newlines from data fields when cataloguing bibliographic and authority records. The leader and control fields will not be affected. + - + - pref: AutoUpdateRecordStatus + choices: + 1: Do + 0: "Don't" + - automatically update record status (LDR/5) when modifying a record. Display: - - 'Separate main entry and subdivisions with ' -- 2.39.5