]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 4 Jan 2024 20:26:30 +0000 (20:26 +0000)
commit41f9cf7274b2f3bcc6a1850855e128640d00e1ee
tree6706be5740e60e1230bd77dae87cb8213633e658
parent24f067b0cf220c035ba5773956d19e0a80a75044
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>
(cherry picked from commit 30213b67aed36719c20ec28539d90e300601eee5)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/AuthoritiesMarc.pm