Bug 21958: Fix bibliographic record field comparison with authority
authorEre Maijala <ere.maijala@helsinki.fi>
Tue, 22 Jan 2019 12:38:32 +0000 (14:38 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 1 Apr 2021 15:13:56 +0000 (17:13 +0200)
commit016bb29b60effec161e71ba34266acb27038afba
treeaba60b2b610d198129d6c7f6160d3fdfeddbc821
parent9f79cdf9925c86856775a28bede9fec0dabfcd99
Bug 21958: Fix bibliographic record field comparison with authority

This makes the comparison between bibliographic field and authority field more robust and per subfield. This makes the comparison not consider the same e.g. the following fields:

$a Test User
$a Test $b User

The actual issue cannot be as easily reproduced with the patches for bug 21826 applied, but here's a test plan anyway:

1. Make sure tests pass (especially t/db_dependent/AuthoritiesMarc*)
2. Make sure authority linking still works properly
3. Make sure authority and biblio frameworks allow subfield i
4. Make sure that even if you add subfield i to 700 in biblio, authority link is kept the same
5. Make sure that even if you add subfield i to the authority record, the authority link is kept the same

Signed-off-by: Frank Hansen <frank.hansen@ub.lu.se>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/AuthoritiesMarc.pm
C4/Biblio.pm
C4/Heading.pm
C4/Heading/MARC21.pm
t/db_dependent/AuthoritiesMarc.t
t/db_dependent/AuthoritiesMarc/MARC21.t [new file with mode: 0755]
t/db_dependent/Biblio.t