]> git.koha-community.org Git - koha.git/commit
Bug 35405: Remove noise from MARC::Record in SearchAuthorities
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 27 Nov 2023 15:12:41 +0000 (16:12 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 3 Jan 2024 14:52:40 +0000 (15:52 +0100)
commit30213b67aed36719c20ec28539d90e300601eee5
tree5f723a29745b12433f10c9d5050c93d60eeb9975
parentdf9d4b0f55fa6b4c430a77686d8e00804eed88de
Bug 35405: Remove noise from MARC::Record in SearchAuthorities

We are calling ->field with an undef parameter.
MARC::Record does not like that and says:
  Use of uninitialized value $tag in hash element at /usr/share/perl5/MARC/Record.pm line 202.
For now, a fix at our side.

Test plan:
Run SearchAuthorities without passing an authtypecode.
Without this patch, it results in a warning per hit.
With this patch, the noise should be gone.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit ac02c1d2adc883cc6ff6b749c271cb165d337436)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/AuthoritiesMarc.pm