From 77a546e8e81677e01e57e29d4996f9c0e950a4d3 Mon Sep 17 00:00:00 2001 From: Zeno Tajoli Date: Wed, 2 Mar 2016 13:01:22 +0100 Subject: [PATCH] [BUG 15955] Tuning function 'New child record' for Unimarc Now the sistem tries to insert value of 205$a into 461$a when a child is created from the father record. In UNIMARC 46x tags there is not present a subfield for ediction value (205$a in UNIMARC). To Test: 1)Check to have EasyAnalyticalRecords on 'off' 2)Check to use UNIMARC 3)Create a record with data in 200$a (title), 205$a (ediction), 700 (author) 215$a(Place), 215$d(date) 4)From those record create a child using 'New'->'New child record' 5)See the values in 461 tag: You can see that in 461$a there is the value of 205$a from father This is wrong, you need to have the value of 700 $a and $b from father record. 6)Appy the patch 7)Redo 4-5 8)Now 461 is good --- C4/Biblio.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 10faa83..7b5afb2 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -3668,12 +3668,8 @@ sub prepare_host_field { } } #edition statement - if ( $field = $host->field('205') ) { - my $s = $field->as_string(); - if ($s) { - $sfd{a} = $s; - } - } + #Not present in UNIMARC 4xx structure + #URL if ( $field = $host->field('856') ) { my $s = $field->as_string('u'); -- 2.1.4