Ignore:
Timestamp:
2012-11-23T00:28:29+13:00 (11 years ago)
Author:
davidb
Message:

If you would like a <gsf:link> to open a new window/tab when clicked, this can now be done by setting a 'target=xxx' in the gsf:link tag.

File:
1 edited

Legend:

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

    r26500 r26504  
    130130            <xsl:when test="@type='query'">
    131131                <a>
     132                        <xsl:if test="@target">
     133                      <xsl:attribute name='target'>
     134                        <xsl:value-of select='@target'/>
     135                      </xsl:attribute>   
     136                    </xsl:if>
     137
    132138                    <xslt:attribute name='href'>
    133139                        <xslt:value-of select='$library_name'/>
     
    151157            <xsl:when test="@type='classifier'">
    152158                <a>
     159                        <xsl:if test="@target">
     160                      <xsl:attribute name='target'>
     161                        <xsl:value-of select='@target'/>
     162                      </xsl:attribute>   
     163                    </xsl:if>
     164
    153165                    <xslt:attribute name='href'>
    154166                        <xslt:value-of select='$library_name'/>
     
    171183            <xsl:when test="@type='source'">
    172184                <a>
     185                        <xsl:if test="@target">
     186                      <xsl:attribute name='target'>
     187                        <xsl:value-of select='@target'/>
     188                      </xsl:attribute>   
     189                    </xsl:if>
     190
    173191                    <xslt:attribute name='href'>
    174192                        <xslt:value-of
     
    188206            <xsl:when test="@type='page'">
    189207                <a>
     208                        <xsl:if test="@target">
     209                      <xsl:attribute name='target'>
     210                        <xsl:value-of select='@target'/>
     211                      </xsl:attribute>   
     212                    </xsl:if>
     213
    190214                    <xslt:attribute name='href'>
    191215                        <xslt:value-of select='$library_name'/>
     
    208232                </xslt:variable>
    209233                <a>
     234                        <xsl:if test="@target">
     235                      <xsl:attribute name='target'>
     236                        <xsl:value-of select='@target'/>
     237                      </xsl:attribute>   
     238                    </xsl:if>
     239
    210240                    <xsl:copy-of select="$opt-title"/>
    211241                    <xslt:attribute name="href">
Note: See TracChangeset for help on using the changeset viewer.