Bugzilla – Attachment 134269 Details for
Bug 13412
Allow configuration of auto-created authorities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13142: (QA follow-up) Convert database update to current format
Bug-13142-QA-follow-up-Convert-database-update-to-.patch (text/plain), 2.71 KB, created by
Katrin Fischer
on 2022-04-28 14:03:26 UTC
(
hide
)
Description:
Bug 13142: (QA follow-up) Convert database update to current format
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-04-28 14:03:26 UTC
Size:
2.71 KB
patch
obsolete
>From e31104097100ccee13dcea55cc1d986e956b9575 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Thu, 28 Apr 2022 14:01:52 +0000 >Subject: [PATCH] Bug 13142: (QA follow-up) Convert database update to current > format > >https://bugs.koha-community.org/show_bug.cgi?id=13412 >--- > ...g_13412-add_GenerateAuthorityField_syspref.pl | 16 ++++++++++++++++ > ..._13412-add_GenerateAuthorityField_syspref.sql | 3 --- > 2 files changed, 16 insertions(+), 3 deletions(-) > create mode 100755 installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.pl > delete mode 100644 installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.sql > >diff --git a/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.pl b/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.pl >new file mode 100755 >index 0000000000..49e37e6aa2 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.pl >@@ -0,0 +1,16 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "13412", >+ description => "Add GenerateAuthorityField667 and GenerateAuthorityField670 system preferences", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ( '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' ) >+ }); >+ }, >+}; >diff --git a/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.sql b/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.sql >deleted file mode 100644 >index f4c5ec7588..0000000000 >--- a/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.sql >+++ /dev/null >@@ -1,3 +0,0 @@ >-INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >-( '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' ) >-- >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 13412
:
72031
|
99710
|
133607
|
134266
|
134267
|
134268
| 134269