- Timestamp:
- 2013-01-21T19:07:55+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/html-to-expeditee/trunk/src/src/cgi-bin/html-to-expeditee.pl.in
r26753 r26767 355 355 356 356 var docRE = new RegExp("(?:\\\\/)document\\\\/(.*?)(?:\$)"); 357 357 var clRE = new RegExp("(\\\\/)browse\\\\/" + cl + "(\\\\/\\\\d+)+(\$)"); 358 358 359 359 for(var i = 0; i < gsContentChildren.length; i++){ … … 383 383 if(fn !== null && fn!== undefined){ 384 384 var frameName = collect + fn; 385 386 //aElemChild.setAttribute("link",frameName); 387 //console.log(aElemChild.getAttribute('link')); 388 //console.log(aElemChild.link); 385 aElemChild.setAttribute("link",frameName); 389 386 } 390 387 } 391 388 392 }else{ 393 //TODO: Check if the link is a CL link. 394 //TODO: Make a hashmap for storing CL page frame numbers? 389 }else if(aElemSrc.match(clRE)){ //link the item to one of the other CL browsing frameset pages 390 391 var clMatch = clRE.exec(aElemSrc); 392 var clPage = clMatch[2].substring(1); 393 console.log(clPage); 394 aElem.setAttribute("link",clPage); 395 395 } 396 396 } 397 397 } 398 398 399 400 //TODO: Need to change htmlToExpeditee code to account for links401 402 403 399 var expFrameTree = htmlToExpeditee(gsContent); 404 400 var expFrame = JSON.stringify(expFrameTree);
Note:
See TracChangeset
for help on using the changeset viewer.