]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 10 May 2023 18:26:26 +0000 (15:26 -0300)
commitbf7389d6014eb0bb9a9bfcffe875940177f26a01
tree0399508c015944c789687449cc96061bcea9f318
parent09c92afd25f3fd58a159b0252dd73172e8fea1a3
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>
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