/[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 550 by dpavlin, Tue Oct 26 21:44:57 2004 UTC revision 562 by dpavlin, Sat Oct 30 23:56:57 2004 UTC
# Line 36  my $result = GetOptions( Line 36  my $result = GetOptions(
36  my $filter = {  my $filter = {
37          'CROVOC' => sub {          'CROVOC' => sub {
38                  my $tmp = shift || return;                  my $tmp = shift || return;
39                  return undef unless ($tmp =~ s/\s*CROVOC.*$/ */);                  return undef unless ($tmp =~ s/\s*CROVOC.*$/ #C#/);
40                    # remove repeating stars
41                    # FIXME this should be fixed at right place, not here!
42                    $tmp =~ s/(\s*#C#)+/ #C#/g;
43                  return $tmp;                  return $tmp;
44          },          },
45          'CROVOC_tree' => sub {          'CROVOC_tree' => sub {
46                  my $tmp = shift || return;                  my $tmp = shift || return;
47                  $tmp =~ s/\s*CROVOC.*$/ */;                  $tmp =~ s/\s*CROVOC.*$/ <img src="img\/crovoc.png" border="0">/;
48                  $tmp =~ s/\s*EUROVOC.*//;                  $tmp =~ s/\s*EUROVOC.*//;
49                  return $tmp;                  return $tmp;
50          },          },
51            # TT filter
52            'CROVOC_img' => sub {
53                    my $tmp = shift;
54                    $tmp =~ s/\s*#C#\s*/ <img src="..\/img\/crovoc.png" border="0">/gis;
55                    $tmp =~ s/"img\/crovoc.png"/"..\/img\/crovoc.png"/gis;
56                    return $tmp;
57            }
58  };  };
59    
60  ## remove accented characters  ## remove accented characters
# Line 96  $log->debug("creating WebPAC::jsFind obj Line 106  $log->debug("creating WebPAC::jsFind obj
106    
107  my $index = new WebPAC::jsFind(  my $index = new WebPAC::jsFind(
108          index_path => $index_path,          index_path => $index_path,
109          keys => 10,          keys => 62,
110  ) || die;  ) || die;
111    
112  my $thes;  my $thes;

Legend:
Removed from v.550  
changed lines
  Added in v.562

  ViewVC Help
Powered by ViewVC 1.1.26