Ignore:
Timestamp:
2009-08-26T14:50:52+12:00 (15 years ago)
Author:
oranfry
Message:

don't use siteURL, and only show collection name if a collection is selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/oran/transform/util.xsl

    r20378 r20406  
    3535
    3636    <xsl:template name="collectionNameLinked">
    37         <xsl:choose>
    38             <xsl:when test="/page/pageResponse/collection">
    39                 <a>
    40                     <xsl:attribute name="href"><xsl:call-template name="siteURL"/><xsl:value-of select="$library_name"/>?a=p&amp;sa=about&amp;c=<xsl:call-template name="collectionNameShort"/></xsl:attribute>
    41                     <xsl:call-template name="collectionName"/>
    42                 </a>
    43             </xsl:when>
    44             <xsl:otherwise>
    45                 <a>
    46                     <xsl:attribute name="href"><xsl:call-template name="siteURL"/></xsl:attribute>
    47                     All Collections
    48                 </a>
    49             </xsl:otherwise>
    50         </xsl:choose>
     37        <xsl:if test="/page/pageResponse/collection">
     38            <a>
     39                <xsl:attribute name="href">./<xsl:value-of select="$library_name"/>?a=p&amp;sa=about&amp;c=<xsl:call-template name="collectionNameShort"/></xsl:attribute>
     40                <xsl:call-template name="collectionName"/>
     41            </a>
     42        </xsl:if>
    5143    </xsl:template>
    5244
Note: See TracChangeset for help on using the changeset viewer.