@@ -, +, @@ --- .../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 --- a/installer/data/mysql/atomicupdate/bug_29990_-_add_ShowHeadingUse_syspref.pl +++ a/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') }); + }, +}; --- a/installer/data/mysql/mandatory/sysprefs.sql +++ a/installer/data/mysql/mandatory/sysprefs.sql @@ -616,6 +616,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'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref +++ a/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.
" --