Changeset 26518


Ignore:
Timestamp:
2012-11-26T10:17:55+13:00 (9 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.

File:
1 edited

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              }
Note: See TracChangeset for help on using the changeset viewer.