Bugzilla – Attachment 146405 Details for
Bug 32911
Remove ILL partner_code config from koha-conf.xml and turn it into a system preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32911: atomicupdate file
Bug-32911-atomicupdate-file.patch (text/plain), 1.42 KB, created by
Pedro Amorim
on 2023-02-08 17:07:35 UTC
(
hide
)
Description:
Bug 32911: atomicupdate file
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-02-08 17:07:35 UTC
Size:
1.42 KB
patch
obsolete
>From 0ad6134e3bb78e93f118d25d5e3db04a0d055a4f Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 8 Feb 2023 17:06:56 +0000 >Subject: [PATCH] Bug 32911: atomicupdate file > >--- > .../data/mysql/atomicupdate/bug_32911.pl | 20 +++++++++++++++++++ > 1 file changed, 20 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_32911.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_32911.pl b/installer/data/mysql/atomicupdate/bug_32911.pl >new file mode 100755 >index 0000000000..44176d1a05 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_32911.pl >@@ -0,0 +1,20 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "32911", >+ description => "Remove ILL partner_code config from koha-conf.xml and turn it into a system preference", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ my $xml_config = C4::Context->config("interlibrary_loans"); >+ my $existing_partner_code = $xml_config->{partner_code}; >+ >+ $dbh->do(qq{ >+ INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) >+ VALUES ('ILLPartnerCode', '$existing_partner_code', NULL, 'Patrons from this patron category will be used as partners to place ILL requests with', 'free'); >+ }); >+ >+ say $out "Moved value of partner_code in koha-conf.xml into new system preference 'ILLPartnerCode'"; >+ } >+}; >-- >2.30.2
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 32911
:
146403
|
146404
|
146405
|
147417
|
147418
|
147419
|
150672
|
150673
|
150674
|
150750
|
150751
|
150752
|
150753
|
150768
|
150769
|
151011
|
151012
|
151013
|
151014
|
151015
|
151016
|
155195