/[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 560 by dpavlin, Sat Oct 30 23:04:37 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.*$/ #C#/;
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                    return $tmp;
56            }
57  };  };
58    
59  ## remove accented characters  ## remove accented characters
# Line 96  $log->debug("creating WebPAC::jsFind obj Line 105  $log->debug("creating WebPAC::jsFind obj
105    
106  my $index = new WebPAC::jsFind(  my $index = new WebPAC::jsFind(
107          index_path => $index_path,          index_path => $index_path,
108          keys => 10,          keys => 62,
109  ) || die;  ) || die;
110    
111  my $thes;  my $thes;

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

  ViewVC Help
Powered by ViewVC 1.1.26