/[webpac2]/trunk/lib/WebPAC/Normalize.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/WebPAC/Normalize.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 251 by dpavlin, Mon Dec 5 17:48:08 2005 UTC revision 252 by dpavlin, Thu Dec 15 17:01:04 2005 UTC
# Line 117  sub new { Line 117  sub new {
117    
118          $log->warn("no prefix defined. please check that!") unless ($self->{'prefix'});          $log->warn("no prefix defined. please check that!") unless ($self->{'prefix'});
119    
120            $log->debug("using lookup regex: ", $self->{lookup_regex}) if ($r && $l);
121    
122          $self ? return $self : return undef;          $self ? return $self : return undef;
123  }  }
124    
# Line 213  sub data_structure { Line 215  sub data_structure {
215    
216                          foreach my $type (@types) {                          foreach my $type (@types) {
217                                  # append to previous line?                                  # append to previous line?
218                                  $log->debug("type: $type ",sub { join(" ",@v) }, $row->{'append'} || 'no append');                                  $log->debug("type: $type ",sub { join(" ",@v) }, " ", $row->{'append'} || 'no append');
219                                  if ($tag->{'append'}) {                                  if ($tag->{'append'}) {
220    
221                                          # I will delimit appended part with                                          # I will delimit appended part with
# Line 461  sub fill_in { Line 463  sub fill_in {
463                  # do we have lookups?                  # do we have lookups?
464                  if ($self->{'lookup'}) {                  if ($self->{'lookup'}) {
465                          if ($self->{'lookup'}->can('lookup')) {                          if ($self->{'lookup'}->can('lookup')) {
466                                  return $self->{'lookup'}->lookup($format);                                  my @lookup = $self->{lookup}->lookup($format);
467                                    $log->debug('lookup $format', join(", ", @lookup));
468                                    return @lookup;
469                          } else {                          } else {
470                                  $log->warn("Have lookup object but can't invoke lookup method");                                  $log->warn("Have lookup object but can't invoke lookup method");
471                          }                          }

Legend:
Removed from v.251  
changed lines
  Added in v.252

  ViewVC Help
Powered by ViewVC 1.1.26