From d6bcbc0dfc63bcc6440a20e906a34577516d5e11 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Wed, 18 Aug 2010 14:43:49 +0200 Subject: [PATCH] [followup](bug #4263) fix non-db linked fields edition this fix the construction of marc record for non-koha2marc mapped fields. --- C4/Items.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 25b284f683..c271962aac 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1626,7 +1626,11 @@ sub GetMarcItem { if (defined $unlinked_item_subfields and $#$unlinked_item_subfields > -1) { my @fields = $itemmarc->fields(); if ($#fields > -1) { - $fields[0]->add_subfields(@$unlinked_item_subfields); + if( $fields[0]->tag() == 100 ){ + $fields[1]->add_subfields(@$unlinked_item_subfields); + }else{ + $fields[0]->add_subfields(@$unlinked_item_subfields); + } } } -- 2.39.5