From 4927671b15d6d1f95a84257ef293872e1c0c9665 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 27 Oct 2017 10:43:03 +0000 Subject: [PATCH] Bug 19537: Correct addition of source subfield from authorities To test: 1 - Find or create a subject authority 2 - Define 008/11 as 's' or 'r' 3 - Add 2nd indicator '7' to main heading 4 - Open or create a bibliographic record 5 - Link to the authority created above 6 - Subfield $2 is not set 7 - Apply patch 8 - Repeat linking, subfield $2 should be set Signed-off-by: Josef Moravec Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- authorities/blinddetail-biblio-search.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authorities/blinddetail-biblio-search.pl b/authorities/blinddetail-biblio-search.pl index 33b7ef0666..838e4bad67 100755 --- a/authorities/blinddetail-biblio-search.pl +++ b/authorities/blinddetail-biblio-search.pl @@ -122,9 +122,9 @@ if ($authid) { $indicator2 = defined $thes_mapping{$thes_008_11} ? $thes_mapping{$thes_008_11} : $thes_008_11; if ($indicator2 eq '7') { if ($thes_008_11 eq 'r') { - $subfields{'2'} = ['aat']; + push @subfield_loop, { marc_subfield => '2', marc_values => ('aat') }; } elsif ($thes_008_11 eq 's') { - $subfields{'2'} = ['sears']; + push @subfield_loop, { marc_subfield => '2', marc_values => ('sears') }; } } } -- 2.39.5