Bugzilla – Attachment 142025 Details for
Bug 30250
Configure when to apply framework defaults when cataloguing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30250: Add ApplyFrameworkDefaults system preference
Bug-30250-Add-ApplyFrameworkDefaults-system-prefer.patch (text/plain), 3.82 KB, created by
David Nind
on 2022-10-17 20:03:58 UTC
(
hide
)
Description:
Bug 30250: Add ApplyFrameworkDefaults system preference
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-10-17 20:03:58 UTC
Size:
3.82 KB
patch
obsolete
>From 339b474fdf1be7a05b6e1bb4543ed03da27a4817 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Wed, 9 Mar 2022 01:13:03 +0000 >Subject: [PATCH] Bug 30250: Add ApplyFrameworkDefaults system preference > >(cherry picked from commit 684a04deb6ec7e94ca60f5cb38811176fbb9c230) > >Signed-off-by: David Nind <david@davidnind.com> >--- > ...bug_30250_-_add_ApplyFrameworkDefaults_syspref.pl | 12 ++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/cataloguing.pref | 7 +++++++ > 3 files changed, 20 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_30250_-_add_ApplyFrameworkDefaults_syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_30250_-_add_ApplyFrameworkDefaults_syspref.pl b/installer/data/mysql/atomicupdate/bug_30250_-_add_ApplyFrameworkDefaults_syspref.pl >new file mode 100644 >index 0000000000..50f1c3b310 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_30250_-_add_ApplyFrameworkDefaults_syspref.pl >@@ -0,0 +1,12 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "30250", >+ description => "Add new system preference ApplyFrameworkDefaults", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('ApplyFrameworkDefaults', 'new', "new|duplicate|changed", "Configure when to apply framework default values - when cataloguing a new record, or when editing a record as new (duplicating), or when changing framework", 'multiple') }); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 9f6d066976..bb03bf7419 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -55,6 +55,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('AmazonLocale','US','US|CA|DE|FR|IN|JP|UK','Use to set the Locale of your Amazon.com Web Services','Choice'), > ('AnonSuggestions','0',NULL,'Set to enable Anonymous suggestions to AnonymousPatron borrowernumber','YesNo'), > ('AnonymousPatron','0',NULL,'Set the identifier (borrowernumber) of the anonymous patron. Used for suggestion and checkout history privacy',''), >+('ApplyFrameworkDefaults', 'new', 'new|duplicate|changed', 'Configure when to apply framework default values - when cataloguing a new record, or when editing a record as new (duplicating), or when changing framework', 'multiple'), > ('ArticleRequests', '0', NULL, 'Enables the article request feature', 'YesNo'), > ('ArticleRequestsOpacHostRedirection', '0', NULL, 'Enables redirection from child to host when requesting articles on the Opac', 'YesNo'), > ('ArticleRequestsLinkControl', 'calc', 'always|calc', 'Control display of article request link on search results', 'Choice'), >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 150a13d53f..56698ef149 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 >@@ -177,6 +177,13 @@ Cataloging: > 1: Display > 0: "Don't display" > - OCLC defined values for MARC encoding level in leader value builder for position 17. >+ - >+ - Apply framework default values >+ - pref: ApplyFrameworkDefaults >+ multiple: >+ new: "when cataloguing new records" >+ duplicate: "when editing records as new (duplicating)" >+ changed: "when changing the framework while editing the existing record" > Display: > - > - 'Separate main entry and subdivisions with ' >-- >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 30250
:
131505
|
131506
|
132039
|
132040
|
140238
|
140239
|
140240
|
140241
|
141961
|
141962
|
141963
|
141964
|
141965
|
142024
|
142025
|
142026
|
142027
|
142777
|
142778
|
142779
|
142780