Bug 21448: Fix copy repeated subfields when linking an authority with 6xx
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 29 Sep 2018 19:04:56 +0000 (16:04 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 1 Oct 2018 23:54:59 +0000 (23:54 +0000)
commit08386cd3f05c5bc4dc6306e3a1d6c4878cce7c86
treeebeac34cf43e81e47bf4499f925bb41fbacd315e
parent11885e75c04fa53cd88daae1ec0dc4a2a8ecd1f7
Bug 21448: Fix copy repeated subfields when linking an authority with 6xx

The reported issue was:
On field 606, if I use an Authority with multiple "x" subfields, it will
add just the first "x"

Error in the logs:
Odd number of elements in anonymous hash at /home/vagrant/kohaclone/authorities/blinddetail-biblio-search.pl line 97.

We should pass a ref (!), caused by
  commit a7df1f9f8eb9ed16246964d94dd8a69b756b6551
  Bug 18904: (follow-up) Retrieve subfield in the order they are stored

Test plan:
Edit an authority and add several $x to 600
Link this authority to a bibliographic record
=> Without this patch only the first subfield is copied
=> With this patch applied they are all copied

Signed-off-by: José Anjos <joseanjos@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
authorities/blinddetail-biblio-search.pl