1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
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"
|
---|
8 | exclude-result-prefixes="java util">
|
---|
9 |
|
---|
10 | <!-- use the 'main' layout -->
|
---|
11 | <xsl:include href="layouts/main.xsl"/>
|
---|
12 |
|
---|
13 | <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable>
|
---|
14 | <!-- set page title -->
|
---|
15 | <xsl:template name="pageTitle"><gslib:collectionName/></xsl:template>
|
---|
16 |
|
---|
17 | <!-- set page breadcrumbs -->
|
---|
18 | <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/>
|
---|
19 | <xsl:if test="$groupPath != ''">
|
---|
20 | <xsl:for-each select="/page/pageResponse/pathList/group">
|
---|
21 | <xsl:sort data-type="number" select="@position"/>
|
---|
22 | <a>
|
---|
23 | <xsl:attribute name="href"><gslib:groupHref path="{@path}"/></xsl:attribute>
|
---|
24 | <xsl:attribute name="title"><gslib:groupName path="{@path}"/></xsl:attribute>
|
---|
25 | <gslib:groupName path="{@path}"/>
|
---|
26 | </a>
|
---|
27 | <gslib:rightArrow/>
|
---|
28 | </xsl:for-each>
|
---|
29 | </xsl:if>
|
---|
30 | </xsl:template>
|
---|
31 |
|
---|
32 | <!-- the page content -->
|
---|
33 | <xsl:template match="/page">
|
---|
34 |
|
---|
35 | <xsl:choose>
|
---|
36 | <xsl:when test="$this-element/displayItemList/displayItem[@name='icon']">
|
---|
37 | <img border="0">
|
---|
38 | <xsl:attribute name="src"><xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItemList/displayItem[@name='icon']"/></xsl:attribute>
|
---|
39 | <xsl:attribute name="alt">
|
---|
40 | <xsl:value-of select="$this-element/displayItemList/displayItem[@name='name']"/>
|
---|
41 | </xsl:attribute>
|
---|
42 | <xsl:attribute name="title">
|
---|
43 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/>
|
---|
44 | </xsl:attribute>
|
---|
45 | </img>
|
---|
46 | </xsl:when>
|
---|
47 | </xsl:choose>
|
---|
48 |
|
---|
49 | <!--Display the description text of the current collection,
|
---|
50 | and if some services are available then create a list
|
---|
51 | of links for each service within a <ul id="servicelist"> element.-->
|
---|
52 | <xsl:call-template name="coll-description"/>
|
---|
53 | </xsl:template>
|
---|
54 |
|
---|
55 | <xsl:template name="coll-description">
|
---|
56 | <gslib:collectionDescriptionTextAndServicesLinks/>
|
---|
57 | </xsl:template>
|
---|
58 |
|
---|
59 | </xsl:stylesheet>
|
---|
60 |
|
---|