- Timestamp:
- 2012-09-18T16:43:05+12:00 (12 years ago)
- Location:
- main/trunk/greenstone3/web/interfaces/default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js
r26203 r26205 345 345 { 346 346 var ajax = gs.functions.ajaxRequest(); 347 347 348 348 var url = gs.xsltParams.library_name + "?a=d&c=" + gs.cgiParams.c + "&excerptid=gs-document"; 349 349 if(gs.cgiParams.d && gs.cgiParams.d.length > 0) … … 364 364 ajax.open("GET", url, true); 365 365 } 366 366 367 ajax.onreadystatechange = function() 367 368 { … … 387 388 else if(ajax.readyState == 4) 388 389 { 389 var targetElem = document.getElementById("gs-document"); 390 targetElem.innerHTML = targetElem.innerHTML + "<br/> <br/> FAILED TO LOAD PAGE"; 390 setTimeout(function(){loadTopLevelPage(callbackFunction, customURL);}, 1000); 391 391 } 392 392 }; … … 434 434 else if(ajax.readyState == 4) 435 435 { 436 var loading = document.getElementById("tocLoadingImage"); 437 loading.parentNode.removeChild(loading); 438 console.log("Error Loading TOC"); 436 setTimeout(retrieveFullTableOfContents, 1000); 439 437 } 440 438 } … … 605 603 else if(ajax.readyState == 4) 606 604 { 607 var loading = document.getElementById("tocLoadingImage"); 608 loading.parentNode.removeChild(loading); 609 console.log("Error Loading TOC"); 605 setTimeout(function(){retrieveTableOfContentsAndTitles();}, 1000); 610 606 } 611 607 } -
main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl
r26200 r26205 314 314 <xsl:choose> 315 315 <!-- NOTE: alb = ajax load bypass --> 316 <!-- 317 If the docType is hierarchy and the we want to bypass the ajax load then do this 318 OR If the docType is hierarchy and we have asked for the expanded document OR we have asked for the top level document then do this 319 --> 316 320 <xsl:when test="/page/pageResponse/document/@docType = 'hierarchy' and (/page/pageRequest/paramList/param[@name = 'alb']/@value = '1' or (string-length(/page/pageRequest/paramList/param[@name = 'd']/@value) > 0 and (/page/pageRequest/paramList/param[@name = 'ed']/@value = '1' or not(util:contains(/page/pageResponse/document/@selectedNode, '.')))))"> 317 321 <div id="gs-document">
Note:
See TracChangeset
for help on using the changeset viewer.