Skip to main content.
home | support | download

Back to List Archive

Re: http indexing and image maps

From: Martial Chartoire <chartoir(at)not-real.ipnl.in2p3.fr>
Date: Wed Sep 19 2001 - 06:40:38 GMT
Le 18 Sep, Myke Komarnitsky a ecrit :
> Am I correct in deducing that it is not possible for swish-e to follow 
> links that are in the form of client side image maps?
> 
> In my example, I am trying to index a page with:
> <map name="left_menu">
> <area shape="rect" coords="0,5,124,20" href="page1.html">
> <area shape="rect" coords="0,28,124,44" href="page2.html">
> </map>
> <img src="images/left_menu_0.gif" width="150" height="144" border="0" 
> usemap="#left_menu">
> 
> but indexing using the http method doesn't find those links...
> Myke
> 
> Michael Komarnitsky      Komar Consulting Group
> 303.818.3718             http://consulting.komar.org
> http://climbingboulder.com
> -
> 

 I have posted to this liste a fix to this problem with area map and
 also for indexing url in map on  Thu, 26 Jul 2001.

 I resubmit the solution :

 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 Wed Sep 19 06:43:21 2001