Changeset 25881 for main/trunk


Ignore:
Timestamp:
2012-06-28T15:10:42+12:00 (12 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

File:
1 edited

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/>
Note: See TracChangeset for help on using the changeset viewer.