/[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 504 by dpavlin, Sun Oct 10 17:36:43 2004 UTC revision 520 by dpavlin, Mon Oct 18 20:03:42 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 158  while (my $rec = $webpac->fetch_rec) { Line 158  while (my $rec = $webpac->fetch_rec) {
158          foreach my $ds (@ds) {          foreach my $ds (@ds) {
159                  next if (! $ds->{'index'});                  next if (! $ds->{'index'});
160    
161                  $thes->{$ds->{'tag'}} ||= new WebPAC::Index;                  $thes->{$ds->{'tag'}} ||= new WebPAC::Index( name => $ds->{'tag'} );
162    
163                  foreach my $h (@{$ds->{'index'}}) {                  foreach my $h (@{$ds->{'index'}}) {
164                          $thes->{$ds->{'tag'}}->insert(                          $thes->{$ds->{'tag'}}->insert(

Legend:
Removed from v.504  
changed lines
  Added in v.520

  ViewVC Help
Powered by ViewVC 1.1.26