Ignore:
Timestamp:
2012-05-23T17:00:28+12:00 (12 years ago)
Author:
sjm84
Message:

Some fixes for document views that use an href instead of a docid, also removing the use of modes in document.xsl, also split document.xsl up and took the TOC parts of it out

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/js/document_scripts.js

    r25641 r25660  
    2020    template +=       '<xsl:call-template name="sectionImage"/>';
    2121    template +=       '<div id="text' + sectionID + '">';
    22     template +=         '<xsl:apply-templates select="." mode="document"/>';
     22    template +=         '<xsl:call-template name="documentNodeContent"/>';
    2323    template +=       '</div>';
    2424    template +=     '</xsl:for-each>';
     
    334334    else if(gs.cgiParams.href && gs.cgiParams.href.length > 0)
    335335    {
    336         url += "&d=&lb=1&rl=1&href=" + gs.cgiParams.href;
     336        url += "&d=&alb=1&rl=1&href=" + gs.cgiParams.href;
    337337    }
    338338   
     
    378378    else if(gs.cgiParams.href && gs.cgiParams.href.length > 0)
    379379    {
    380         url += "&a=d&d=&lb=1&rl=1&href=" + gs.cgiParams.href;
     380        url += "&a=d&d=&alb=1&rl=1&href=" + gs.cgiParams.href;
    381381    }
    382382   
     
    566566    var ilt = "";
    567567    ilt += '<xsl:template match="/">';
    568     ilt +=   '<xsl:apply-templates select="/page/pageResponse/document/documentNode" mode="TOC"/>';
     568    ilt +=   '<xsl:for-each select="/page/pageResponse/document/documentNode">';
     569    ilt +=     '<xsl:call-template name="documentNodeTOC"/>';
     570    ilt +=   '</xsl:for-each>';
    569571    ilt += '</xsl:template>';
    570572
Note: See TracChangeset for help on using the changeset viewer.