1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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:import 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">
|
---|
19 | <gslib:siteLink/>
|
---|
20 | <gslib:rightArrow/>
|
---|
21 | <gslib:groupLinks/>
|
---|
22 | </xsl:template>
|
---|
23 |
|
---|
24 | <!-- the page content -->
|
---|
25 | <xsl:template match="/page">
|
---|
26 |
|
---|
27 | <xsl:choose>
|
---|
28 | <xsl:when test="$this-element/displayItemList/displayItem[@name='icon']">
|
---|
29 | <img border="0">
|
---|
30 | <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>
|
---|
31 | <xsl:attribute name="alt">
|
---|
32 | <xsl:value-of select="$this-element/displayItemList/displayItem[@name='name']"/>
|
---|
33 | </xsl:attribute>
|
---|
34 | <xsl:attribute name="title">
|
---|
35 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/>
|
---|
36 | </xsl:attribute>
|
---|
37 | </img>
|
---|
38 | </xsl:when>
|
---|
39 | </xsl:choose>
|
---|
40 |
|
---|
41 | <!--Display the description text of the current collection,
|
---|
42 | and if some services are available then create a list
|
---|
43 | of links for each service within a <ul id="servicelist"> element.-->
|
---|
44 | <xsl:call-template name="coll-description"/>
|
---|
45 | </xsl:template>
|
---|
46 |
|
---|
47 | <xsl:template name="coll-description">
|
---|
48 | <gslib:collectionDescriptionTextAndServicesLinks/>
|
---|
49 | </xsl:template>
|
---|
50 |
|
---|
51 | </xsl:stylesheet>
|
---|
52 |
|
---|