From 3d85f1804151f071a223d0057d7fd8857ce90fd1 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 3 May 2023 15:23:53 +0000 Subject: [PATCH] Bug 28166: (follow-up) Restore custom fields for biblios To test: 1 - Add "245$a" to AdditionalFieldsInZ3950ResultSearch preference 2 - Cataloging -> new from z3950 3 - Search and see results have 'additional fields' including the title 4 - Apply other patches 5 - Restart all 6 - Repeat Z39 Additional fields are now blank 7 - Apply thi patch, restart all 8 - Repeat Z39 search. Additional fields are restored --- C4/Breeding.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Breeding.pm b/C4/Breeding.pm index f450b023b9..b59f5b8b4d 100644 --- a/C4/Breeding.pm +++ b/C4/Breeding.pm @@ -314,7 +314,8 @@ sub _handle_one_result { $row->{server} = $servhref->{servername}; $row->{breedingid} = $breedingid; $row->{isbn}=_isbn_replace($row->{isbn}); - $row = _add_custom_field_rowdata($row, $marcrecord); + my $pref_newtags = C4::Context->preference('AdditionalFieldsInZ3950ResultSearch'); + $row = _add_custom_field_rowdata($row, $marcrecord, $pref_newtags); } return ( $row, $error ); } -- 2.30.2