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 <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2022-06-22 14:55:03 +00:00 committed by Tomas Cohen Arazi
parent fbf1c32a6f
commit 505e12970d
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 16 additions and 0 deletions

View file

@ -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";
},
};

View file

@ -289,6 +289,7 @@ Cataloging:
acqdate: date added
title: title
author: author
biblionumber: biblionumber
- ','
- pref: ComponentSortOrder
choices: