Changeset 26518 for gs3-extensions

Show
Ignore:
Timestamp:
26.11.2012 10:17:55 (6 years ago)
Author:
davidb
Message:

Added an if statement to check whether a doc URL line obtained has already been processed. This should stop duplicate Expeditee frames being produced.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/html-to-expeditee/trunk/src/src/cgi-bin/html-to-expeditee.pl.in

    r25795 r26518  
    147147              } 
    148148              else if (href.match(docRE)) { 
    149  
     149                if(!visitedURLS[href]){ 
    150150                  var docMatch = docRE.exec(href); 
    151151                  var docOID = docMatch[1]; 
    152152 
    153153                  // console.log("found a new doc line: " + docOID); 
    154  
     154                  visitedURLs[href] = 1; 
    155155                  docOIDs.push(docOID); 
     156              } 
    156157              } 
    157158              }