]> git.koha-community.org Git - koha.git/commit
Bug 25189: Don't create authority if results found
authorNick Clemens <nick@bywatersolutions.com>
Tue, 28 Apr 2020 15:34:20 +0000 (15:34 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 10 Jul 2020 15:53:23 +0000 (15:53 +0000)
commite5baeac0fdbc5fc83256effeff304e736c7dc154
tree71feaaadd667e7a7b896e538abd703963a2c8ca6
parent6a395eab2d3ce6c9564b387eaa8f863632518997
Bug 25189: Don't create authority if results found

Automatic authority creation assumes that if we don't match we need a new authority.

Using the Default linker, however, we don't match if there exists more than one match.
This leads to repeatedly generating authorities once there is a duplicate in the system

We shoudl instead only create a new authority if there are no results

To test:
1 - Set Linker Module to 'Default'
2 - Enable  AutoCreateAuthorities  and  BiblioAddsAuthorities and  CatalogModuleRelink and LinkerRelink
3 - Add two copies of a single authority via Z39
4 - Add a heading for that authority to a bib record
5 - Save the record and note a new authority is generated
6 - Repeat and see another is generated
7 - Apply patch
8 - Restart all the things
9 - Save the record again, no new authority created

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 980419ed15cd4e5ae8be552218f939f5faea18c4)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Biblio.pm
C4/Linker/Default.pm