Bug 38494: Add 'ConsiderHeadingUse' system preference

Add new system preference 'ConsiderHeadingUse' to be able to consider
the intended use of authority records (008/14-16) during cataloging
and linking.

Sponsored-by: Ignatianum University in Cracow
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Janusz Kaczmarek 2024-11-20 13:15:43 +00:00 committed by Katrin Fischer
parent c30559349a
commit 70138465cd
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,17 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "38494",
description => "Add `ConsiderHeadingUse` 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 ('ConsiderHeadingUse', '0', NULL, 'Consider authority heading use (main/added entry, or subject, or series title) in cataloging and linking', 'YesNo')}
);
say_success( $out, "Added system preference 'ConsiderHeadingUse'" );
},
};

View File

@ -173,6 +173,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'),
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
('ConsiderHeadingUse', '0', NULL, 'Consider authority heading use (main/added entry, or subject, or series title) in cataloging and linking', 'YesNo'),
('ConsiderLibraryHoursInCirculation', 'close', 'close|open|ignore', "Take library opening hours into consideration to calculate due date when circulating.", 'Choice'),
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'),

View File

@ -95,6 +95,13 @@ Authorities:
- Display the MARC field/subfields
- pref: AdditionalFieldsInZ3950ResultAuthSearch
- " in the 'Additional fields' column of Z39.50 search results (use comma as delimiter e.g.: \"<code>001, 035$a</code>\")."
-
- pref: ConsiderHeadingUse
default: no
choices:
1: Do
0: "Don't"
- consider the intended use of authority records (008/14-16) during cataloging and linking.
Linker:
-