From 505e12970d81fe30436a6a86189c17c9c242a729 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 22 Jun 2022 14:55:03 +0000 Subject: [PATCH] Bug 30879: Add option to syspref and update display To test: 1 - Update ComponentSortField system preference and verify biblionumber is an option 2 - Repeat test plan from 30327 and confirm sorting with biblionumber works Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../bug_30879_add_biblionumber_sort_option.pl | 15 +++++++++++++++ .../en/modules/admin/preferences/cataloguing.pref | 1 + 2 files changed, 16 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_30879_add_biblionumber_sort_option.pl diff --git a/installer/data/mysql/atomicupdate/bug_30879_add_biblionumber_sort_option.pl b/installer/data/mysql/atomicupdate/bug_30879_add_biblionumber_sort_option.pl new file mode 100755 index 0000000000..dbf058cbce --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_30879_add_biblionumber_sort_option.pl @@ -0,0 +1,15 @@ +use Modern::Perl; + +return { + bug_number => "30327", + description => "Add biblionumber to ComponentSortField", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + $dbh->do(q{ + UPDATE systempreferences set options="call_number|pubdate|acqdate|title|author|biblionumber" + WHERE variable = 'ComponentSortField' + }); + say $out "Added biblionumber option to ComponentSortField"; + }, +}; 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 6f66761c37..4aad6fc775 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 @@ -289,6 +289,7 @@ Cataloging: acqdate: date added title: title author: author + biblionumber: biblionumber - ',' - pref: ComponentSortOrder choices: -- 2.39.5