source: main/trunk/greenstone3/web/interfaces/default/transform/pages/home.xsl@ 33958

Last change on this file since 33958 was 33958, checked in by ak19, 4 years ago

There were other xsl files using the original depositorTitleAndLink template, and so I shouldn't have changed that but introduced a new template in previous commits. It had caused a subtle issue in the top navigation link when on the depositor home page. This time, I've put the name of the original functionality back, and the new template has been named depositorTitleMainLink instead and is to be used where I introduced it for testing with Cher, in home.xsl.

  • Property svn:mime-type set to text/plain
File size: 3.1 KB
RevLine 
[33755]1<?xml version="1.0" encoding="UTF-8"?>
[19856]2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:java="http://xml.apache.org/xslt/java"
5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 xmlns:gslib="http://www.greenstone.org/skinning"
7 extension-element-prefixes="java util"
[31431]8 exclude-result-prefixes="java util xsl gslib">
[19856]9
[31382]10 <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable>
11
12
[19988]13 <!-- use the 'main' layout -->
[19856]14 <xsl:include href="layouts/main.xsl"/>
15
[19988]16 <!-- set page title -->
[31391]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>
[19856]18
[19988]19 <!-- set page breadcrumbs -->
[30540]20 <xsl:template name="breadcrumbs">
[31391]21 <xsl:if test="$groupPath != ''">
[30540]22 <gslib:siteLink/>
[31167]23 <xsl:for-each select="/page/pageResponse/pathList/group">
24 <xsl:sort data-type="number" select="@position"/>
25 <gslib:rightArrow/>
[31382]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>
[31167]34 </xsl:for-each>
[30540]35 </xsl:if>
36 </xsl:template>
[19988]37
38 <!-- the page content -->
[19856]39 <xsl:template match="/page/pageResponse">
40
41 <div id="quickSearch">
42 <gslib:crossCollectionQuickSearchForm/>
43 </div>
44
45 <h2><gslib:selectACollectionTextBar/></h2>
[31600]46 <xsl:call-template name="collectionAndGroupLinks"/>
[19856]47
[29935]48 <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
[31391]49 <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>
[30826]50 <xsl:if test="$siteDesc != ''">
51 <xsl:value-of select="$siteDesc"/>
52 <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
53 </xsl:if>
[19856]54 <gslib:serviceClusterList/>
55
56 <xsl:for-each select="serviceList/service[@type='query']">
57 <gslib:serviceLink/><br/>
58 </xsl:for-each>
[24149]59
60 <xsl:for-each select="serviceList/service[@type='authen']">
[32150]61 <!--<gslib:libraryInterfaceLink/><br/><br/>-->
[25276]62 <gslib:authenticationLink/><br/><br/>
[33958]63 <gslib:depositorTitleMainLink/><br/><br/>
[32457]64 <gslib:registerLink/><br/><br/>
[24149]65 </xsl:for-each>
[19856]66
[32457]67 <gslib:aboutGreenstoneLink/><br/>
[19856]68 </xsl:template>
69
[30478]70
[31600]71 <xsl:template name="collectionAndGroupLinks">
72 <xsl:for-each select="collectionList/collection|groupList/group">
73 <xsl:sort data-type="number" select="@position"/>
74 <xsl:if test="name() = 'collection'">
75 <gslib:collectionLinkWithImage/>
76 </xsl:if>
77 <xsl:if test="name() = 'group'">
78 <gslib:groupLinkWithImage/>
79 </xsl:if>
80 </xsl:for-each>
81
82 </xsl:template>
[30478]83 <xsl:template match="/page/xsltparams">
84 <!-- suppress xsltparam block in page -->
85 </xsl:template>
86
[19856]87</xsl:stylesheet>
88
89
Note: See TracBrowser for help on using the repository browser.