Skip to main content.
home | support | download

Back to List Archive

swishspider

From: Martial Chartoire <chartoir(at)not-real.ipnl.in2p3.fr>
Date: Thu Jul 26 2001 - 07:54:19 GMT
 I have the same problem as reported in bug6 (frameset) plus an other
 with images and map which are not indexed by swish-e.2.0.5

 I have made some modification in sub linkcb of swishspider to solve
 this two problemes :

   - find the url in frame tag
   - find the url in area tag

 Now url in frame and map area are indexed.

 Below the result of a diff -c on the two versions of swishspider

*** swishspider.old Mon Nov 13 20:40:03 2000
--- swishspider  Wed Jul 25 16:19:09 2001
***************
*** 59,68 ****
  
  sub linkcb {
      my($tag, %links) = @_;
!     if (($tag eq "a") && ($links{"href"})) {
!       my $link = $links{"href"};
! 
!       #
        # Remove fragments
        #
        $link =~ s/(.*)#.*/$1/;
--- 59,79 ----
  
  sub linkcb {
      my($tag, %links) = @_;
!     my $link;
!     my($ok) = 0; 
!     
!     if (($tag =~ /^a/) && ($links{"href"}))  {
!     
!       $link = $links{"href"};
!       $ok = 1;
! 
!     } elsif (($tag eq "frame") && ($links{"src"})) {
! 
!       $link = $links{"src"};
!       $ok = 1;
!     }
!     if ($ok == 1) {
!       #
        # Remove fragments
        #
        $link =~ s/(.*)#.*/$1/;



-- 
Martial Chartoire, Service Informatique | E-mail: m.chartoire@ipnl.in2p3.fr
Institut de Physique Nucleaire de Lyon  | phone : +33 472 448 430
43, BD du 11 Novembre 1918              | fax   : +33 472 448 004
F 69622 Villeurbanne Cedex              |
Received on Thu Jul 26 08:01:38 2001