Bug 38108: Add system preference AlwaysShowHoldingsTableFilters

Signed-off-by: Rebecca Coert <rcoert@arlingtonva.us>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 9a55785c8b)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Lucas Gass 2025-02-24 20:32:47 +00:00 committed by Paul Derscheid
parent 5a2ac2285e
commit e3318f2fec
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "38108",
description => "Add AlwaysShowHoldingsTableFilters system preference",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
VALUES ('AlwaysShowHoldingsTableFilters','0','','Option to always show filters when loading the holdings table','YesNo')
}
);
# sysprefs
say $out "Added new system preference 'AlwaysShowHoldingsTableFilters'";
},
};

View File

@ -56,6 +56,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('AlternateHoldingsField','',NULL,'The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).','free'),
('AlternateHoldingsSeparator','',NULL,'The string to use to separate subfields in alternate holdings displays.','free'),
('AlwaysLoadCheckoutsTable','0','','Option to always load the checkout table','Yes/No'),
('AlwaysShowHoldingsTableFilters','0','','Option to always show filters when loading the holdings table','Yes/No'),
('AmazonAssocTag','','','See: http://aws.amazon.com','free'),
('AmazonCoverImages','0','','Display Cover Images in staff interface from Amazon Web Services','YesNo'),
('AmazonLocale','US','US|CA|DE|FR|IN|JP|UK','Use to set the Locale of your Amazon.com Web Services','Choice'),