/[webpac]/trunk/all2xml.pl
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/all2xml.pl

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

revision 32 by dpavlin, Sun Feb 23 07:53:01 2003 UTC revision 34 by dpavlin, Sun Feb 23 08:06:07 2003 UTC
# Line 80  sub isis2xml { Line 80  sub isis2xml {
80                  my $display_data = "";                  my $display_data = "";
81                  my $line_delimiter = "";                  my $line_delimiter = "";
82    
83                    my ($swish,$display);
84    
85                  foreach my $x (@{$config->{indexer}->{$field}->{isis}}) {                  foreach my $x (@{$config->{indexer}->{$field}->{isis}}) {
86    
87                          my $format = $x->{content};                          my $format = $x->{content};
# Line 101  sub isis2xml { Line 103  sub isis2xml {
103                          ($s,$d,$i) = (0,0,1) if (lc($x->{type}) eq "index");                          ($s,$d,$i) = (0,0,1) if (lc($x->{type}) eq "index");
104  #print STDERR "## s: $s d: $d i: $i ## $format ##\n";    #print STDERR "## s: $s d: $d i: $i ## $format ##\n";  
105    
106                          $display_data .= $line_delimiter if ($display_data && $display_data !~ /$line_delimiter$/);                          if ($x->{append}) {
107                                    $line_delimiter = ' ';
108                            } else {
109                                    $line_delimiter = '<br/>';
110                            }
111    
112                          my ($swish,$display) = (1,1);                          $display_data .= $line_delimiter if ($display_data && $display);
113                            # init vars so that we go into while...
114                            ($swish,$display) = (1,1);
115    
116                          while ($swish || $display) {                          while ($swish || $display) {
117                                  ($swish,$display) = parse_format($format,$row,$isis_i++);                                  ($swish,$display) = parse_format($format,$row,$isis_i++);
# Line 155  sub isis2xml { Line 163  sub isis2xml {
163                                          }                                          }
164                                  }                                  }
165                          }                          }
                         if ($x->{append}) {  
                                 $line_delimiter = ' ';  
                         } else {  
                                 $line_delimiter = '<br/>';  
                         }  
166                  }                  }
167    
168    

Legend:
Removed from v.32  
changed lines
  Added in v.34

  ViewVC Help
Powered by ViewVC 1.1.26