Changeset 26296
- Timestamp:
- 2012-10-09T11:52:53+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl
r26218 r26296 315 315 <!-- NOTE: alb = ajax load bypass --> 316 316 <!-- 317 If the docType is hierarchy and thewe want to bypass the ajax load then do this317 If the docType is hierarchy and we want to bypass the ajax load then do this 318 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 319 --> … … 338 338 $(window).load(function() 339 339 { 340 var url = gs.xsltParams.library_name + "?a=d&c=" + gs.cgiParams.c + "&excerptid=gs-document&dt=hierarchy&d=" + gs.cgiParams.d.replace(/([^.]*)\..*/, "$1"); 341 loadTopLevelPage(null, url); 340 var sectionID = gs.cgiParams.d; 341 var callbackFunction = null; 342 if(sectionID.indexOf("\\.") == -1) 343 { 344 callbackFunction = function() 345 { 346 focusSection(sectionID); 347 }; 348 } 349 350 var docID = sectionID.replace(/([^.]*)\..*/, "$1"); 351 var url = gs.xsltParams.library_name + "?a=d&c=" + gs.cgiParams.c + "&excerptid=gs-document&dt=hierarchy&d=" + docID; 352 loadTopLevelPage(callbackFunction, url); 342 353 }); 343 354 </xsl:text>
Note:
See TracChangeset
for help on using the changeset viewer.