bugfix : when modifying a biblio, on a repeated field with many subfields, the test...
authortipaul <tipaul>
Thu, 23 Dec 2004 08:43:43 +0000 (08:43 +0000)
committertipaul <tipaul>
Thu, 23 Dec 2004 08:43:43 +0000 (08:43 +0000)
Example :
606 has $a$x$z

1st is 606$a (so $x$z empty)
2nd is 606$a$x

The marc editor in the 2nd field showed before this fix :
606 $a a_value
   $x another_value
   $x
   $z
(the 2nd $x being useless

acqui.simple/addbiblio.pl

index 8329185..f736192 100755 (executable)
@@ -240,7 +240,7 @@ sub build_tabs ($$$$) {
                                                next if (length $subfield !=1);
                                                next if ($tagslib->{$tag}->{$subfield}->{tab} ne $tabloop);
                                                next if ($tag<10);
-                                               next if (defined($record->field($tag)->subfield($subfield)));
+                                               next if (defined($field->subfield($subfield)));
                                                push(@subfields_data, &create_input($tag,$subfield,'',$i,$tabloop,$record,$authorised_values_sth));
                                                $i++;
                                        }