Bugzilla – Attachment 190671 Details for
Bug 40435
Allow CanBookBeRenewed to consider future holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40435: Database revision
9db47a7.patch (text/plain), 3.00 KB, created by
Martin Renvoize (ashimema)
on 2025-12-22 14:07:34 UTC
(
hide
)
Description:
Bug 40435: Database revision
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-12-22 14:07:34 UTC
Size:
3.00 KB
patch
obsolete
>From 9db47a7c562dd06d0e98145fd1bcc3d8f0434932 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 11 Dec 2025 16:27:01 +0100 >Subject: [PATCH] Bug 40435: Database revision > >Test plan: >[1] Run install or upgrade (updatedatabase.pl). Verify that pref was added to database. >* perl -MC4::Context -e'print C4::Context->preference('FutureHoldsBlockRenewals'),"\n"' >* You should see a zero printed. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> >--- > installer/data/mysql/atomicupdate/bug_40435.pl | 18 ++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > 2 files changed, 19 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_40435.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_40435.pl b/installer/data/mysql/atomicupdate/bug_40435.pl >new file mode 100755 >index 00000000000..968736acc58 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_40435.pl >@@ -0,0 +1,18 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => 40435, >+ description => "Add preference FutureHoldsBlockRenewals", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) >+ VALUES ('FutureHoldsBlockRenewals', 0, NULL, 'Allow future holds to block renewals', 'Integer' )} >+ ); >+ >+ say $out "Added new system preference 'FutureHoldsBlockRenewals'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 35a5d15dd8f..69a69b7cc8e 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -297,6 +297,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('ForceLibrarySelection','0',NULL,'Force staff to select a library when logging into the staff interface.','YesNo'), > ('ForcePasswordResetWhenSetByStaff','0',NULL,'Force a staff created patron account to reset its password after its first OPAC login.','YesNo'), > ('FRBRizeEditions','0','','If ON, Koha will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','YesNo'), >+('FutureHoldsBlockRenewals', 0, NULL, 'Allow future holds to block renewals', 'Integer' ), > ('GenerateAuthorityField667', 'Machine generated authority record', NULL, 'When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 667$a field of MARC21 records', 'free'), > ('GenerateAuthorityField670', 'Work cat.', NULL, 'When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 670$a field of MARC21 records', 'free'), > ('GoogleJackets','0',NULL,'if ON, displays jacket covers from Google Books API','YesNo'), >-- >2.52.0 >
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 40435
:
190449
|
190450
|
190451
|
190452
|
190453
|
190520
|
190521
|
190522
|
190523
|
190524
| 190671 |
190672
|
190673
|
190674
|
190675
|
190676
|
190677