/[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 373 by dpavlin, Sun Jun 20 15:49:09 2004 UTC revision 374 by dpavlin, Sun Jun 20 16:57:52 2004 UTC
# Line 32  my $maxmfn = $webpac->open_isis( Line 32  my $maxmfn = $webpac->open_isis(
32  #       { 'eval '=> '"v901^a" eq "Mikrotezaurus"', 'key' => 'a:v561^4:v562^4:v461^1', 'val' => 'v900' },  #       { 'eval '=> '"v901^a" eq "Mikrotezaurus"', 'key' => 'a:v561^4:v562^4:v461^1', 'val' => 'v900' },
33  #       { 'eval' => '"v901^a" eq "Deskriptor"', 'key' => 'a:v561^4:v562^4:v461^1', 'val' => 'v900' },  #       { 'eval' => '"v901^a" eq "Deskriptor"', 'key' => 'a:v561^4:v562^4:v461^1', 'val' => 'v900' },
34          { 'key' => 'a:v561^4:v562^4:v461^1', 'val' => 'v900' },          { 'key' => 'a:v561^4:v562^4:v461^1', 'val' => 'v900' },
35            { 'key' => '900_mfn:v900', 'val' => 'v000' },
36          ],          ],
37  );  );
38    
# Line 48  while (my $rec = $webpac->fetch_rec) { Line 49  while (my $rec = $webpac->fetch_rec) {
49                  $log->debug("ds = ",Dumper(\@ds));                  $log->debug("ds = ",Dumper(\@ds));
50          }          }
51    
52          print $webpac->output(          next if (! @ds);
53                  template => 'text.tt',  
54                  data => \@ds,          my $filename = $webpac->{'current_filename'};
55          ) if (@ds);  
56            if ($filename) {
57                    open(OUT,"> $filename") || $log->logdie("can't open output '$filename': $!");
58                    print OUT $webpac->output(
59                            template => 'html.tt',
60                            data => \@ds,
61                    );
62                    close(OUT);
63            } else {
64                    print $webpac->output(
65                            template => 'text.tt',
66                            data => \@ds,
67                    );
68            }
69    
70  }  }
71    

Legend:
Removed from v.373  
changed lines
  Added in v.374

  ViewVC Help
Powered by ViewVC 1.1.26