Changeset 14644


Ignore:
Timestamp:
2007-10-10T17:53:08+13:00 (16 years ago)
Author:
anna
Message:

Fixed broken links in GotoForm in paged navigation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/classic/transform/document.xsl

    r14577 r14644  
    157157        <xsl:with-param name="collName" select="$collName"/>
    158158      </xsl:call-template></div>-->
    159 
     159 
    160160    <xsl:if test="string($doTOC) != 'false'">
    161161       <div id="toc">
     
    418418    <xsl:variable name="length" select="nodeStructureInfo/info[@name='numSiblings']/@value"/>
    419419    <xsl:variable name="children" select="nodeStructureInfo/info[@name='numChildren']/@value"/>
    420       <xsl:choose>
     420    <!-- parameters for the bookicon to work properly -->
     421    <xsl:variable name="p.s" select="/page/pageRequest/paramList/param[@name='p.s']/@value"/>
     422    <xsl:variable name="p.sa" select="/page/pageRequest/paramList/param[@name='p.sa']/@value"/>
     423    <xsl:variable name="p.a" select="/page/pageRequest/paramList/param[@name='p.a']/@value"/>
     424    <xsl:variable name="p.c"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='p.c']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.c']/@value"/></xsl:when><xsl:otherwise><xsl:value-of select="$collName"/></xsl:otherwise></xsl:choose></xsl:variable>
     425
     426    <xsl:choose>
    421427    <xsl:when test="$pos=-1"><!-- a doc -->
    422428      <tr valign="top">
     
    427433          </center></td>
    428434        <td align="right">
    429           <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.fc"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a>
     435          <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.fc&amp;p.s={$p.s}&amp;p.sa={$p.sa}&amp;p.a={$p.a}&amp;p.c={$p.c}"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a>
    430436        </td>
    431437      </tr>
     
    436442        <td align="left">
    437443          <xsl:if test=" not ( $pos = 1 )">
    438         <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.ps"><img src="interfaces/default/images/less.gif" border="0" align="absbottom" /></a>
     444        <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.ps&amp;p.s={$p.s}&amp;p.sa={$p.sa}&amp;p.a={$p.a}&amp;p.c={$p.c}"><img src="interfaces/default/images/less.gif" border="0" align="absbottom" /></a>
    439445          </xsl:if>
    440446        </td>
     
    444450        <td align="right">
    445451          <xsl:if test=" not($pos = $length)">
    446         <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.ns"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a>
     452        <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.ns&amp;p.s={$p.s}&amp;p.sa={$p.sa}&amp;p.a={$p.a}&amp;p.c={$p.c}"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a>
    447453          </xsl:if>
    448454        </td>
     
    455461        <input type='hidden' name='a' value='d'/>
    456462        <input type='hidden' name='c' value='{$collName}'/>
    457         <input type='hidden' name='d' value='{@selectedNode}'/>
     463        <!--<input type='hidden' name='d' value='{@selectedNode}'/>-->
     464        <input type='hidden' name='d'>
     465            <xsl:attribute name='value'>
     466                <xsl:if test="contains(@selectedNode, '.')"><xsl:value-of select="@selectedNode"/></xsl:if>
     467                <xsl:if test="not(contains(@selectedNode, '.'))"><xsl:value-of select="@selectedNode"/>.0</xsl:if>
     468            </xsl:attribute>
     469        </input>               
     470       
     471        <input type='hidden' name='p.s' value='{$p.s}'/>
     472        <input type='hidden' name='p.sa' value='{$p.sa}'/>
     473        <input type='hidden' name='p.a' value='{$p.a}'/>
     474        <input type='hidden' name='p.c' value='{$p.c}'/>   
     475       
    458476        <input type="text" name="gp" size="3" maxlength="4"/>
    459477        <input type="submit"><xsl:attribute name='value'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'document.gotopage')"/></xsl:attribute></input>
Note: See TracChangeset for help on using the changeset viewer.