Changeset 31382
- Timestamp:
- 2017-02-02T14:37:40+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/home.xsl
r31167 r31382 8 8 exclude-result-prefixes="java util"> 9 9 10 <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable> 11 12 10 13 <!-- use the 'main' layout --> 11 14 <xsl:include href="layouts/main.xsl"/> 12 15 13 16 <!-- set page title --> 14 <xsl:template name="pageTitle">< gslib:siteName/></xsl:template>17 <xsl:template name="pageTitle"><xsl:choose><xsl:when test="$groupPath"><gslib:groupName path="{$groupPath}"/></xsl:when><xsl:otherwise><gslib:siteName/></xsl:otherwise></xsl:choose></xsl:template> 15 18 16 19 <!-- set page breadcrumbs --> 17 20 <xsl:template name="breadcrumbs"> 18 <xsl:if test=" /page/pageRequest/paramList/param[@name='group']">21 <xsl:if test="$groupPath"> 19 22 <gslib:siteLink/> 20 23 <xsl:for-each select="/page/pageResponse/pathList/group"> 21 24 <xsl:sort data-type="number" select="@position"/> 22 25 <gslib:rightArrow/> 23 <a> 24 <xsl:attribute name="href"> 25 <xsl:value-of select="$library_name"/> 26 <xsl:text>?a=p&sa=home&group=</xsl:text> 27 <xsl:value-of select="@path"></xsl:value-of> 28 </xsl:attribute> 29 30 <xsl:attribute name="title"> 31 <xsl:value-of select="./title"></xsl:value-of> 32 </xsl:attribute> 33 <xsl:value-of select="./title"></xsl:value-of> 34 </a> 26 <xsl:if test="position() != last()"> 27 <!-- don't want the current group in the breadcrumbs --> 28 <a> 29 <xsl:attribute name="href"><gslib:groupHref path="{@path}"/></xsl:attribute> 30 <xsl:attribute name="title"><gslib:groupName path="{@path}"/></xsl:attribute> 31 <gslib:groupName path="{@path}"/> 32 </a> 33 </xsl:if> 35 34 </xsl:for-each> 36 35 </xsl:if> … … 57 56 58 57 <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div> 59 <xsl:variable name="siteDesc">< gslib:siteDescription/></xsl:variable>58 <xsl:variable name="siteDesc"><xsl:choose><xsl:when test="$groupPath"><gslib:groupDescription path="{$groupPath}"/></xsl:when><xsl:otherwise><gslib:siteDescription/></xsl:otherwise></xsl:choose></xsl:variable> 60 59 <xsl:if test="$siteDesc != ''"> 61 60 <xsl:value-of select="$siteDesc"/> … … 75 74 </xsl:template> 76 75 77 <xsl:template name="groupLinks">78 <div id="groupLinks">79 <!-- <xsl:if test="count(groupList/group) = 0">80 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>81 <br/>82 </xsl:if>83 -->84 <xsl:for-each select="groupList/group">85 <gslib:groupLinkWithImage/>86 </xsl:for-each>87 <br class="clear"/>88 </div>89 </xsl:template>90 91 <xsl:template name="collectionLinks">92 <div id="collectionLinks">93 <xsl:if test="count(collectionList/collection) = 0">94 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>95 <br/>96 </xsl:if>97 <xsl:for-each select="collectionList/collection">98 <gslib:collectionLinkWithImage/>99 </xsl:for-each>100 <br class="clear"/>101 </div>102 </xsl:template>103 76 104 77 <xsl:template match="/page/xsltparams">
Note:
See TracChangeset
for help on using the changeset viewer.