/[webpac]/trunk2/all2all.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 /trunk2/all2all.pl

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

revision 511 by dpavlin, Sun Oct 17 17:35:32 2004 UTC revision 530 by dpavlin, Tue Oct 19 17:43:52 2004 UTC
# Line 139  while (my $rec = $webpac->fetch_rec) { Line 139  while (my $rec = $webpac->fetch_rec) {
139                  $words =~ s/\W+$//;                  $words =~ s/\W+$//;
140    
141                  # first try to generate headline for this entry from index                  # first try to generate headline for this entry from index
142                  my $h = shift @{$ds->{'index'}};                  my $h = $ds->{'index'}->[0];
143                  # then, from display                  # then, from display
144                  $h ||= shift @{$ds->{'display'}};                  $h ||= $ds->{'display'}->[0];
145                  # and as last resport, fallback to headline                  # and as last resport, fallback to headline
146                  $h ||= $headline;                  $h ||= $headline;
147    
# Line 201  if (0 && $log->is_debug) { Line 201  if (0 && $log->is_debug) {
201    
202  } # XXX if(0)  } # XXX if(0)
203    
204  $log->debug("lookup hash: ",Dump($webpac->{'lookup'}));  #$log->debug("lookup hash: ",Dump($webpac->{'lookup'}));
205    
206  $log->info("creating tree");  $log->info("creating tree");
207    
# Line 310  my @tree = ({ Line 310  my @tree = ({
310  });  });
311    
312  my $tree = new WebPAC::Tree(  my $tree = new WebPAC::Tree(
313          dir => './out',          tree => \@tree,
314          html => 'browse.html',  );
315    
316    $tree->output(
317            dir => './out',
318            html => 'browse.html',
319          template => './output_template/tree.tt',          template => './output_template/tree.tt',
320          js => 'tree-ids.js',          js => 'tree-ids.js',
         tree => \@tree,  
321  );  );
322    
323    $tree->output(
324            dir => './eurovoc',
325            html => 'hijerarhija.html',
326            template => './output_template/hijerarhija.tt',
327            js => 'tree-ids.js',
328    );
329    
330    
331  $log->info("closing index");  $log->info("closing index");
332  $index->close;  $index->close;
333    

Legend:
Removed from v.511  
changed lines
  Added in v.530

  ViewVC Help
Powered by ViewVC 1.1.26