Bugzilla – Attachment 179932 Details for
Bug 38729
Linker should consider diacritics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38729: Add new systempreference 'LinkerConsiderDiacritics'
Bug-38729-Add-new-systempreference-LinkerConsiderD.patch (text/plain), 3.69 KB, created by
Janusz Kaczmarek
on 2025-03-31 09:19:51 UTC
(
hide
)
Description:
Bug 38729: Add new systempreference 'LinkerConsiderDiacritics'
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2025-03-31 09:19:51 UTC
Size:
3.69 KB
patch
obsolete
>From 0c408ec5675dd86647ef840c329959114d3d04c6 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Mon, 31 Mar 2025 08:41:12 +0000 >Subject: [PATCH] Bug 38729: Add new systempreference > 'LinkerConsiderDiacritics' > >--- > ...ug_38729_LinkerConsiderDiacritics_syspref.pl | 17 +++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../modules/admin/preferences/authorities.pref | 7 +++++++ > 3 files changed, 25 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_38729_LinkerConsiderDiacritics_syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_38729_LinkerConsiderDiacritics_syspref.pl b/installer/data/mysql/atomicupdate/bug_38729_LinkerConsiderDiacritics_syspref.pl >new file mode 100755 >index 0000000000..3ac46dff14 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_38729_LinkerConsiderDiacritics_syspref.pl >@@ -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'" ); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 2bf9d0b648..f5e7a9d7d3 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -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'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref >index 1ab804518c..39b044b30c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref >@@ -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. >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38729
:
175626
|
175627
|
175640
|
175644
|
175645
|
179929
|
179930
|
179931
|
179932
|
179933
|
179934
|
180007
|
180008
|
180009