From c415744a405cd4103d21da30637969a38fad37bb Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Fri, 30 Oct 2009 15:54:37 +0100 Subject: [PATCH] followup TransformhtmltoXML --- C4/Biblio.pm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index d754be7fad..e2043f5423 100755 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1812,7 +1812,18 @@ sub TransformHtmlToXml { } } else { # @$tags[$i] eq $prevtag - if ( @$values[$i] eq "" ) { + my $indicator1=eval{substr( @$indicator[$j], 0, 1 )}; + my $indicator2=eval{substr( @$indicator[$j], 1, 1 )}; + my $ind1 = _default_ind_to_space($indicator1); + my $ind2; + if ( @$indicator[$j] ) { + $ind2 = _default_ind_to_space($indicator2); + } + else { + warn "Indicator in @$tags[$i] is empty"; + $ind2 = " "; + } + if ( @$values[$i] eq "" ) { } else { if ($first) { -- 2.39.5