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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 18 Dec 2023 14:21:09 +0000 (15:21 +0100)
commitac02c1d2adc883cc6ff6b749c271cb165d337436
tree56959399199d1196fdc24f9b3472cad0cd53cb12
parentf3bb88505245228d97a4e39612b17a688df64a79
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>
C4/AuthoritiesMarc.pm