Changeset 37343
- Timestamp:
- 2023-02-22T22:57:14+13:00 (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/webswing-gli.xsl
r37342 r37343 20 20 <!-- what is this used for??? Can it be deleted? --> 21 21 <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable> 22 22 23 23 <!-- set page title --> 24 24 25 25 <xsl:template name="pageTitle"> 26 <!-- if no collection specified --> 27 <xsl:choose> 28 <xsl:when test="$groupPath != ''"> 29 <gslib:groupName path="{$groupPath}"/> 30 </xsl:when> 31 <xsl:otherwise> 32 <gslib:siteName/> 33 </xsl:otherwise> 34 </xsl:choose> 35 <!-- otherwise --> 36 <!-- 37 <xsl:template name="pageTitle"><gslib:collectionName/></xsl:template> 38 --> 26 WebSwing GLI 39 27 </xsl:template> 40 28 41 42 29 43 30 <!-- set page breadcrumbs --> 44 31 <xsl:template name="breadcrumbs"> 45 <!-- if no collection specified --> 46 <xsl:if test="$groupPath != ''"> 47 <gslib:siteLink/> 48 <xsl:for-each select="/page/pageResponse/pathList/group"> 49 <xsl:sort data-type="number" select="@position"/> 50 <gslib:rightArrow/> 51 <xsl:if test="position() != last()"> 52 <!-- don't want the current group in the breadcrumbs --> 53 <a> 54 <xsl:attribute name="href"><gslib:groupHref path="{@path}"/></xsl:attribute> 55 <xsl:attribute name="title"><gslib:groupName path="{@path}"/></xsl:attribute> 56 <gslib:groupName path="{@path}"/> 57 </a> 58 </xsl:if> 59 </xsl:for-each> 60 </xsl:if> 61 <!-- else --> 62 <!-- 32 <xsl:choose> 33 <xsl:when test="/page/pageRequest/paramList/param[@name='c']/@value != ''"> 34 <gslib:siteLink/> 35 <gslib:rightArrow/> 36 <xsl:if test="$groupPath != ''"> 37 <gslib:groupLinks/> 38 <gslib:rightArrow/> 39 </xsl:if> 40 <a href="{$library_name}/collection/{$collName}/page/about"> 41 <gslib:collectionName/> 42 </a> 43 </xsl:when> 44 <xsl:otherwise> 45 <xsl:choose> 46 <xsl:when test="$groupPath != ''"> 47 <a> 48 <xsl:attribute name="href"><gslib:groupHref path="{$groupPath}"/></xsl:attribute> 49 <xsl:attribute name="title"><gslib:groupName path="{$groupPath}"/></xsl:attribute> 50 <gslib:groupName path="{$groupPath}"/> 51 </a> 52 </xsl:when> 53 <xsl:otherwise> 63 54 <gslib:siteLink/> 64 <gslib:rightArrow/> 65 <gslib:groupLinks/> 66 --> 67 55 </xsl:otherwise> 56 </xsl:choose> 57 58 </xsl:otherwise> 59 </xsl:choose> 68 60 </xsl:template> 69 61 … … 94 86 <xsl:template name="webswing-embed-gli"> 95 87 <link rel="stylesheet" href="/webswing-server/css/style.css" /> 96 97 88 98 89 <div id="webswing-gli" class="webswing-element" data-webswing-instance="webswingInstance0" style="height: 600px;">
Note:
See TracChangeset
for help on using the changeset viewer.