From f6138634f5b53b4121a7731cc518fd4313ceceaa Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 1 Feb 2022 00:11:11 +1300 Subject: [PATCH] Bug 29990: Add ShowHeadingUse system preference Signed-off-by: Nick Clemens Signed-off-by: Fridolin Somers --- .../bug_29990_-_add_ShowHeadingUse_syspref.pl | 12 ++++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/searching.pref | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_29990_-_add_ShowHeadingUse_syspref.pl diff --git a/installer/data/mysql/atomicupdate/bug_29990_-_add_ShowHeadingUse_syspref.pl b/installer/data/mysql/atomicupdate/bug_29990_-_add_ShowHeadingUse_syspref.pl new file mode 100644 index 0000000000..bc9cff31a8 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_29990_-_add_ShowHeadingUse_syspref.pl @@ -0,0 +1,12 @@ +use Modern::Perl; + +return { + bug_number => "29990", + description => "Add new system preference ShowHeadingUse", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + + $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('ShowHeadingUse', '0', NULL, 'Show whether authority record contains an established heading that conforms to descriptive cataloguing rules, and can therefore be used as a main/added entry, or subject, or series title', 'YesNo') }); + }, +}; diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index 724e3e41c2..9b77307ecb 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -617,6 +617,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('ShowAllCheckins', '0', '', 'Show all checkins', 'YesNo'), ('ShowComponentRecords', 'nowhere', 'nowhere|staff|opac|both','In which record detail pages to show list of the component records, as linked via 773','Choice'), ('MaxComponentRecords', '300', '','Max number of component records to display','Integer'), +('ShowHeadingUse', '0', NULL, 'Show whether authority record contains an established heading that conforms to descriptive cataloguing rules, and can therefore be used as a main/added entry, or subject, or series title', 'YesNo' ('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'), ('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'), ('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref index a0d7ec430d..701ca3b29e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref @@ -282,6 +282,12 @@ Searching: 1: Do 0: "Don't" - "make item MARC tags available to XSLT stylesheets. Default is \"Don't\", items are displayed using other methods." + - + - pref: ShowHeadingUse + choices: + 1: Show + 0: "Don't show" + - "whether an authority record contains an established heading that conforms to descriptive cataloguing rules, and can therefore be used as a main/added entry, or subject, or series title." Did you mean/spell checking: - - "Swedish service for spellchecking.
" -- 2.39.5