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 | <!-- set page title -->
|
---|
14 | <xsl:template name="pageTitle"><gslib:collectionName/></xsl:template>
|
---|
15 |
|
---|
16 | <!-- set page breadcrumbs -->
|
---|
17 | <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/></xsl:template>
|
---|
18 |
|
---|
19 | <!-- the page content -->
|
---|
20 | <xsl:template match="/page">
|
---|
21 |
|
---|
22 | <!--Display the description text of the current collection,
|
---|
23 | and if some services are available then create a list
|
---|
24 | of links for each service within a <ul id="servicelist"> element.-->
|
---|
25 | <gslib:collectionDescriptionTextAndServicesLinks/>
|
---|
26 |
|
---|
27 | </xsl:template>
|
---|
28 |
|
---|
29 | <!-- override this to include documentList -->
|
---|
30 | <xsl:template match="collection" priority="5">
|
---|
31 | <xsl:value-of select="displayItem[@name='description']" disable-output-escaping="yes"/>
|
---|
32 | <xsl:apply-templates select="serviceList">
|
---|
33 | <xsl:with-param name="collName" select="$collName"/>
|
---|
34 | </xsl:apply-templates>
|
---|
35 | <p/><xsl:apply-templates select="documentList">
|
---|
36 | <xsl:with-param name="collName" select="@name"/>
|
---|
37 | </xsl:apply-templates>
|
---|
38 | </xsl:template>
|
---|
39 |
|
---|
40 | <xsl:template match="documentList">
|
---|
41 | <xsl:param name="collName"/>
|
---|
42 | <ul>
|
---|
43 | <xsl:for-each select="document">
|
---|
44 | <li><a href="{$library_name}?a=xd&sa=toc&sc=full&c={$collName}&d={@name}"><xsl:value-of select="metadataList/metadata[@name='Title']"/></a></li>
|
---|
45 | </xsl:for-each>
|
---|
46 | </ul>
|
---|
47 | </xsl:template>
|
---|
48 |
|
---|
49 | </xsl:stylesheet>
|
---|
50 |
|
---|