Changeset 31536

Show
Ignore:
Timestamp:
23.03.2017 12:21:01 (2 years ago)
Author:
kjdon
Message:

added expandContractDocumentLinks template

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/gslib.xsl

    r31432 r31536  
    711711    <div><a id="berryFullViewLink" style="display: none;"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'berry.full')"/></a></div> 
    712712    <div id="berryHelpMsg"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'berry.help')"/></div> 
    713         </div> 
     713      </div> 
    714714      
    715715    </xsl:if> 
     
    892892  </xsl:template> 
    893893 
     894  <xsl:template name="expandContractDocumentLinks"> 
     895    <!--<xsl:if test="count(//documentNode) > 1">--> 
     896      <xsl:variable name="doc_url"><xsl:value-of select='$library_name'/>/collection/<xsl:value-of select='/page/pageResponse/collection/@name'/>/document/<xsl:value-of select='/page/pageResponse/document/documentNode/@nodeID'/>?<xsl:if test="/page/pageRequest/paramList/param[@name='p.s']">p.s=<xsl:value-of select="/page/pageRequest/paramList/param[@name='p.s']/@value"/>&amp;</xsl:if></xsl:variable> 
     897      <div id="expandContractLinks"><table style="width:100%; text-align:center;"><tr><td><a href="{$doc_url}ed=1"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc')"/></a></td><td><a href="{$doc_url}ed=0"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.collapse_doc')"/></a></td></tr></table></div> 
     898    <!--</xsl:if>--> 
     899  </xsl:template> 
    894900</xsl:stylesheet>