Bug 21036: Remove odd number of elements warnings from AuthoritiesMarc.pm
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 5 Jul 2018 10:10:26 +0000 (12:10 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 7 May 2019 11:39:24 +0000 (11:39 +0000)
commit88b37330abaee6372ec999c1a81fd216d66a1379
tree3294c7d91328d16f628d8e00fd5fb22936244de2
parent295e9b1054386cf188c5fc1eb4fd590e5c451513
Bug 21036: Remove odd number of elements warnings from AuthoritiesMarc.pm

Like this one (16.11 line number):
Odd number of elements in anonymous hash at C4/AuthoritiesMarc.pm line 1070.

We need to add a scalar to some MARC::Field::subfield calls. In list context
an empty list returned affects the hash built around it.

Test plan:
Could reproduce this warning easily from OPAC authority search.
opac-authorities-home.pl calling BuildSummary.

Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/AuthoritiesMarc.pm