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:
parent
fbf1c32a6f
commit
505e12970d
2 changed files with 16 additions and 0 deletions
15
installer/data/mysql/atomicupdate/bug_30879_add_biblionumber_sort_option.pl
Executable file
15
installer/data/mysql/atomicupdate/bug_30879_add_biblionumber_sort_option.pl
Executable 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";
|
||||
},
|
||||
};
|
|
@ -289,6 +289,7 @@ Cataloging:
|
|||
acqdate: date added
|
||||
title: title
|
||||
author: author
|
||||
biblionumber: biblionumber
|
||||
- ','
|
||||
- pref: ComponentSortOrder
|
||||
choices:
|
||||
|
|
Loading…
Reference in a new issue