Changeset 25881

Show
Ignore:
Timestamp:
28.06.2012 15:10:42 (7 years ago)
Author:
kjdon
Message:

added a placeholder to add in optional arguments for document links. currently used to add in p.s=TextQuery? which is needed for search term highlighting

Files:
1 modified

Legend:

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

    r25823 r25881  
    101101                        <xsl:text>/document/</xsl:text> 
    102102                        <xslt:value-of select='@nodeID'/> 
    103                         <xslt:if test="$bookswitch = 'on' or $bookswitch = 'flashxml'"> 
     103        <xslt:choose> 
     104                        <xslt:when test="$bookswitch = 'on' or $bookswitch = 'flashxml'"> 
    104105                            <xsl:text>?book=on</xsl:text> 
    105                         </xslt:if> 
     106                        </xslt:when> 
     107          <xslt:otherwise> 
     108<xslt:if test="$opt-doc-link-args">?<xslt:value-of select="$opt-doc-link-args"/></xslt:if></xslt:otherwise> 
     109</xslt:choose> 
    106110                    </xslt:attribute> 
    107111                    <xsl:apply-templates/>