Ignore:
Timestamp:
2017-04-03T10:34:37+12:00 (7 years ago)
Author:
kjdon
Message:

tidied up default templates for classifiers. added a new template classifierNodeLink to handle the logic of choosing which type or link the bookshelf should use - static, which opens a new page for that bookshelf, or javascript - uses the toggleSection method to open/close the section inplace. we are leaving bookshelves as static links to allow google to traverse the classifier and index all the documents

File:
1 edited

Legend:

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

    r31537 r31563  
    231231                    </xsl:if>
    232232
    233                     <xslt:attribute name='href'>
    234                         <xslt:value-of select='$library_name'/>
    235                         <xsl:text>/collection/</xsl:text>
    236                         <xslt:value-of select='/page/pageResponse/collection/@name'/>
    237                         <xsl:text>/browse/</xsl:text>
    238                         <xsl:choose>
    239                             <xsl:when test="@nodeID">
    240                                 <xsl:value-of select="@nodeID"/>
    241                             </xsl:when>
    242                             <xsl:otherwise>
    243                                 <xslt:value-of select='util:replace(@nodeID, ".", "/")'/>
    244                             </xsl:otherwise>
    245                         </xsl:choose>
     233                    <xslt:attribute name='href'><xslt:call-template name="classifierNodeLink"><xsl:if test="@style"><xslt:with-param name="link-type"><xsl:value-of select="@style"/></xslt:with-param></xsl:if><xsl:if test="@nodeID"><xslt:with-param name="node-id" select="@nodeID"/></xsl:if></xslt:call-template>
    246234                    </xslt:attribute>
    247235                    <xsl:copy-of select="$opt-title"/>
Note: See TracChangeset for help on using the changeset viewer.