Bug 38729: Add new systempreference 'LinkerConsiderDiacritics'
Signed-off-by: Thomas Klausner <domm@plix.at> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
f69aab3735
commit
a224711e77
|
|
@ -0,0 +1,17 @@
|
|||
use Modern::Perl;
|
||||
use Koha::Installer::Output qw(say_warning say_success say_info);
|
||||
|
||||
return {
|
||||
bug_number => "38729",
|
||||
description => "Linker should consider diacritics",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
|
||||
$dbh->do(
|
||||
q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('LinkerConsiderDiacritics', '0', NULL, 'Linker should consider diacritics', 'YesNo')}
|
||||
);
|
||||
|
||||
say_success( $out, "Added new system preference 'LinkerConsiderDiacritics'" );
|
||||
},
|
||||
};
|
||||
|
|
@ -376,6 +376,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
|
|||
('LibraryThingForLibrariesTabbedView','0','','Put LibraryThingForLibraries Content in Tabs.','YesNo'),
|
||||
('LibrisKey', '', 'This key must be obtained at http://api.libris.kb.se/. It is unique for the IP of the server.', NULL, 'Free'),
|
||||
('LibrisURL', 'http://api.libris.kb.se/bibspell/', 'This it the base URL for the Libris spellchecking API.',NULL,'Free'),
|
||||
('LinkerConsiderDiacritics', '0', NULL, 'Linker should consider diacritics', 'YesNo'),
|
||||
('LinkerConsiderThesaurus','0',NULL,'If ON the authority linker will only search for 6XX authorities from the same source as the heading','YesNo'),
|
||||
('LinkerKeepStale','0',NULL,'If ON the authority linker will keep existing authority links for headings where it is unable to find a match.','YesNo'),
|
||||
('LinkerModule','Default','Default|FirstMatch|LastMatch','Chooses which linker module to use (see documentation).','Choice'),
|
||||
|
|
|
|||
|
|
@ -154,3 +154,10 @@ Authorities:
|
|||
1: Do
|
||||
0: "Don't"
|
||||
- compare the source for 6XX headings to the thesaurus source for authority records when linking. Enabling this preference may require a reindex, and may generate new authority records if AutoCreateAuthorities is enabled.
|
||||
-
|
||||
- pref: LinkerConsiderDiacritics
|
||||
default: no
|
||||
choices:
|
||||
1: Do
|
||||
0: "Don't"
|
||||
- consider diacritics when linking, i.e. distinguish between 'A', 'Å', 'Ä', etc. Enabling this preference may generate new authority records if AutoCreateAuthorities is enabled.
|
||||
|
|
|
|||
Loading…
Reference in New Issue