]> git.koha-community.org Git - koha.git/commit
Bug 37349: Use cache for authority types and remove extra fetch
authorNick Clemens <nick@bywatersolutions.com>
Fri, 12 Jul 2024 15:56:45 +0000 (15:56 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 27 Aug 2024 10:14:21 +0000 (12:14 +0200)
commitb124cab0b7b63bb0dcc8dbbc8f1098c6b1651e25
tree06b9296e0b262e100e92751845d09f16f6367547
parente2538b5e8312c4a8b4a0f1ce279423371770cbf8
Bug 37349: Use cache for authority types and remove extra fetch

This patch caches the authority types when fetched during linking to avoid grabbing the same type more than once.
Additionally it removes a second call to fetch the same type in some scenarios

To test:
1 - Apply patch
2 - Enable linking during cataloging/updating records
3 - Edit a record and confirm it is linked ocrrectly
4 - Run the authority linking cron and confirm it works as expected

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/Biblio.pm