--- trunk/lib/WebPAC/Normalize.pm 2005/12/05 17:48:08 219 +++ trunk/lib/WebPAC/Normalize.pm 2005/12/15 17:01:04 252 @@ -117,6 +117,8 @@ $log->warn("no prefix defined. please check that!") unless ($self->{'prefix'}); + $log->debug("using lookup regex: ", $self->{lookup_regex}) if ($r && $l); + $self ? return $self : return undef; } @@ -213,7 +215,7 @@ foreach my $type (@types) { # append to previous line? - $log->debug("type: $type ",sub { join(" ",@v) }, $row->{'append'} || 'no append'); + $log->debug("type: $type ",sub { join(" ",@v) }, " ", $row->{'append'} || 'no append'); if ($tag->{'append'}) { # I will delimit appended part with @@ -461,7 +463,9 @@ # do we have lookups? if ($self->{'lookup'}) { if ($self->{'lookup'}->can('lookup')) { - return $self->{'lookup'}->lookup($format); + my @lookup = $self->{lookup}->lookup($format); + $log->debug('lookup $format', join(", ", @lookup)); + return @lookup; } else { $log->warn("Have lookup object but can't invoke lookup method"); }