test and fix join_subfields_with
[Biblio-Isis] / lib / Biblio / Isis.pm
index e4de0f6..54523df 100644 (file)
@@ -544,7 +544,7 @@ have original record subfield order and index to that subfield like this:
 =item join_subfields_with
 
 Define delimiter which will be used to join repeatable subfields. You can
-specify option here instead in L</new> if you want to have per-record controll.
+specify option here instead in L</new> if you want to have per-record control.
 
 =back
 
@@ -567,8 +567,8 @@ sub to_hash {
 
        my $row = $self->fetch($mfn) || return;
 
-       my $j_rs = $arg->{join_repeatable_subfields};
-       $j_rs = $self->{join_repeatable_subfields} unless(defined($j_rs));
+       my $j_rs = $arg->{join_subfields_with};
+       $j_rs = $self->{join_subfields_with} unless(defined($j_rs));
        my $i_sf = $arg->{include_subfields};
 
        foreach my $f_nr (keys %{$row}) {