]> git.koha-community.org Git - koha.git/commit
Bug 33557: Add LinkerConsiderThesaurus system preference
authorNick Clemens <nick@bywatersolutions.com>
Tue, 18 Apr 2023 13:13:12 +0000 (13:13 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 16 May 2023 06:32:11 +0000 (07:32 +0100)
commit9019528b6ff470d58ddae27dcfdd47656f243ba7
treef74e1cff54788eacfc622fc6f5644146922ed56b
parente859b6fed59526c44226bf7f555ead340ffedb77
Bug 33557: Add LinkerConsiderThesaurus system preference

Bug 30280 added the ability to use multiple thesauri for authorities in Koha.
This is a large change, and many libraries use authorities in a ess strict manner.
This patch simply adds a preference, disabled by default, to enable this new feature

To test:
1 - Find or create a record with a 650 heading, second indicator 0 (LOC)
2 - Ensure this links to an authority in your system
3 - Disable AutoCreateAuthorities, enable CatalogModuleRelink
4 - Edit the heading to second indicator 2
5 - Save, the heading does not link
6 - Apply patch, updatedatabase, restart all
7 - Edit and save record again
8 - Heading should now link to the LOC authority, despite different second indicator value for source

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit bf7389d6014eb0bb9a9bfcffe875940177f26a01)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Heading.pm
installer/data/mysql/atomicupdate/bug_33557.pl [new file with mode: 0755]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref
t/db_dependent/Heading.t