Bugzilla – Attachment 195137 Details for
Bug 42044
Automatically update record status (LDR/5) for modified records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 42044: Add new system preference 'AutoUpdateRecordStatus'
Bug-42044-Add-new-system-preference-AutoUpdateReco.patch (text/plain), 3.49 KB, created by
Janusz Kaczmarek
on 2026-03-11 20:42:01 UTC
(
hide
)
Description:
Bug 42044: Add new system preference 'AutoUpdateRecordStatus'
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2026-03-11 20:42:01 UTC
Size:
3.49 KB
patch
obsolete
>From 362f4935a2b176d3982be4457358e9b75afe7427 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 42044
: 195137 |
195138
|
195139