Changeset 14672 for greenstone3/trunk


Ignore:
Timestamp:
2007-10-11T14:43:13+13:00 (14 years ago)
Author:
anna
Message:

Remove expand document button from paged document page.

File:
1 edited

Legend:

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

    r14644 r14672  
    7272      <xsl:otherwise>
    7373       
    74         <xsl:call-template name="documentHeading">
     74    <xsl:call-template name="documentHeading">
    7575      <xsl:with-param name="collName" select="$collName"/>
    7676    </xsl:call-template>
     
    9090 
    9191  <xsl:template name="documentArrows">
    92     <xsl:param name="collName"/>
    93     <xsl:variable name="ed" select="/page/pageRequest/paramList/param[@name='ed']/@value"/>
     92    <xsl:param name="collName"/>   
     93    <xsl:variable name="ed" select="/page/pageRequest/paramList/param[@name='ed']/@value"/>   
    9494    <xsl:variable name="dir"><xsl:call-template name="direction"/></xsl:variable>   
    9595    <xsl:variable name="firstDir"><xsl:choose><xsl:when test="$dir='rtl'">forward</xsl:when><xsl:otherwise>back</xsl:otherwise></xsl:choose></xsl:variable>
    96     <xsl:variable name="secondDir"><xsl:choose><xsl:when test="$dir='rtl'">back</xsl:when><xsl:otherwise>forward</xsl:otherwise></xsl:choose></xsl:variable>
     96    <xsl:variable name="secondDir"><xsl:choose><xsl:when test="$dir='rtl'">back</xsl:when><xsl:otherwise>forward</xsl:otherwise></xsl:choose></xsl:variable>   
    9797   
    9898    <div class="documentarrows">
     
    116116    <xsl:param name="direction"/>
    117117    <xsl:param name="pageDir"/>
    118            
     118       
     119    <xsl:variable name="disp">
     120        <xsl:choose>
     121            <xsl:when test="$direction ='back' and nodeStructureInfo/info[@name='siblingPosition']/@value = -1">n</xsl:when>
     122            <xsl:when test="$direction ='forward' and nodeStructureInfo/info[@name='siblingPosition']/@value = nodeStructureInfo/info[@name='numSiblings']/@value">n</xsl:when>         
     123            <xsl:otherwise>y</xsl:otherwise>
     124        </xsl:choose>
     125    </xsl:variable>
     126
    119127    <xsl:variable name="request-params" select="/page/pageRequest/paramList"/>
    120     <xsl:if test='$request-params/param[@name="dt"]/@value != "simple"'> 
     128    <xsl:if test='$request-params/param[@name="dt"]/@value != "simple" and $disp = "y"'> 
    121129    <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="$collName"/>&amp;d=<xsl:value-of select="@selectedNode"/><xsl:choose><xsl:when test="$direction='back'">.pp</xsl:when><xsl:otherwise>.np</xsl:otherwise></xsl:choose>&amp;sib=1&amp;p.s=<xsl:value-of select='$request-params/param[@name="p.s"]/@value'/>&amp;p.sa=<xsl:value-of select='$request-params/param[@name="p.sa"]/@value'/>&amp;p.a=<xsl:value-of select='$request-params/param[@name="p.a"]/@value'/></xsl:attribute><xsl:choose>
    122130    <xsl:when test="$direction='back'"><img class="lessarrow{$pageDir}" src="interfaces/default/images/less.gif" /></xsl:when><xsl:otherwise><img class="morearrow{$pageDir}" src="interfaces/default/images/more.gif"  /></xsl:otherwise></xsl:choose></a>
     
    184192    <xsl:variable name="p.a" select="/page/pageRequest/paramList/param[@name='p.a']/@value"/>
    185193    <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>
    186    
    187    
     194     
    188195      <!-- expand document -->
    189196      <!-- this doesn't work with MG so comment it out for now -->     
    190       <xsl:if test="@docType = 'hierarchy' or @docType = 'paged'">
     197      <!--<xsl:if test="@docType = 'hierarchy' or @docType = 'paged'">-->
     198      <!-- shouldn't appear for paged document -->
     199      <xsl:if test="@docType = 'hierarchy'">
    191200      <div class="button">
    192201        <span class="button">
Note: See TracChangeset for help on using the changeset viewer.